145 std::vector<double>
pt;
152 std::vector<double>
p;
153 std::vector<double>
d0;
154 std::vector<double>
dz;
242 if (!tracks->empty())
v_ntrk.push_back(tracks->size());
245 for(TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1)
247 pt .push_back(itTrack1->pt());
248 charge .push_back(itTrack1->charge());
249 chi2 .push_back(itTrack1->chi2());
250 chi2_ndof .push_back(itTrack1->normalizedChi2());
251 eta .push_back(itTrack1->eta());
252 theta .push_back(itTrack1->theta());
253 phi .push_back(itTrack1->phi());
254 p .push_back(itTrack1->p());
255 d0 .push_back(itTrack1->d0());
256 dz .push_back(itTrack1->dz());
257 nvh .push_back(itTrack1->numberOfValidHits());
266 int nhitinTECminus= 0;
267 int nhitinTECplus = 0;
268 int nhitinTIDminus= 0;
269 int nhitinTIDplus = 0;
275 const DetId detId1((*iHit1)->geographicalId());
276 const int subdetId1 = detId1.
subdetId();
277 if (!(*iHit1)->isValid())
continue;
284 ++nhitinBPIX; ++nhitinPIXEL;
292 ++nhitinFPIX; ++nhitinPIXEL;
374 for (
unsigned int i=0;
i<muonsT0.size();
i++)
477 desc.
setComment(
"Create tuple with all variables required to calculate cosmic event and track rates.");
480 descriptions.
add(
"cosmicRateAnalyzer", desc);
static const std::string kSharedResource
std::vector< double > theta
int number_of_tracks_BPIX
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Timestamp const & endTime() const
int number_of_tracks_TECM
edm::EDGetTokenT< reco::TrackCollection > trackTags_
std::vector< double > eta
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< double > charge
std::vector< Track > TrackCollection
collection of Tracks
edm::RunNumber_t lastrunnum
T * make(const Args &...args) const
make new ROOT object
Run const & getRun() const
unsigned int microsecondOffset() const
Microseconds offset within second.
void analyze(const edm::Event &, const edm::EventSetup &) override
CosmicRateAnalyzer(const edm::ParameterSet &)
bool tecIsZMinusSide(const DetId &id) const
std::vector< Muon > MuonCollection
collection of Muon objects
int number_of_tracks_TIDM
void beginRun(edm::Run const &, edm::EventSetup const &) override
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
bool tidIsZMinusSide(const DetId &id) const
int number_of_tracks_TECP
void setComment(std::string const &value)
std::vector< double > DTtime
std::vector< double > nvh
edm::EDGetTokenT< reco::MuonCollection > muonTags_
unsigned int unixTime() const
Time in seconds since January 1, 1970.
std::vector< double > phi
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< double > chi2
std::vector< int > v_ntrk
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int number_of_tracks_FPIX
Timestamp const & beginTime() const
edm::Service< TFileService > fs
void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > chi2_ndof
static double stampToReal(edm::Timestamp time)
~CosmicRateAnalyzer() override
int number_of_tracks_TIDP
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_