95 virtual void endJob()
override;
150 std::vector<double>
pt;
157 std::vector<double>
p;
158 std::vector<double>
d0;
159 std::vector<double>
dz;
244 if (tracks->size()>0)
v_ntrk.push_back(tracks->size());
247 for(TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1)
249 pt .push_back(itTrack1->pt());
250 charge .push_back(itTrack1->charge());
251 chi2 .push_back(itTrack1->chi2());
252 chi2_ndof .push_back(itTrack1->normalizedChi2());
253 eta .push_back(itTrack1->eta());
254 theta .push_back(itTrack1->theta());
255 phi .push_back(itTrack1->phi());
256 p .push_back(itTrack1->p());
257 d0 .push_back(itTrack1->d0());
258 dz .push_back(itTrack1->dz());
259 nvh .push_back(itTrack1->numberOfValidHits());
268 int nhitinTECminus= 0;
269 int nhitinTECplus = 0;
270 int nhitinTIDminus= 0;
271 int nhitinTIDplus = 0;
277 const DetId detId1((*iHit1)->geographicalId());
278 const int subdetId1 = detId1.
subdetId();
279 if (!(*iHit1)->isValid())
continue;
286 ++nhitinBPIX; ++nhitinPIXEL;
294 ++nhitinFPIX; ++nhitinPIXEL;
378 for (
unsigned int i=0;
i<muonsT0.size();
i++)
481 desc.
setComment(
"Create tuple with all variables required to calculate cosmic event and track rates.");
484 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
virtual void endJob() override
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.
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
CosmicRateAnalyzer(const edm::ParameterSet &)
std::vector< Muon > MuonCollection
collection of Muon objects
int number_of_tracks_TIDM
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
int number_of_tracks_TECP
void setComment(std::string const &value)
bool isZMinusSide() const
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
bool isZMinusSide() const
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
virtual void beginJob() override
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > chi2_ndof
static double stampToReal(edm::Timestamp time)
int number_of_tracks_TIDP
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection