CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
CosmicRateAnalyzer Class Reference

#include <CosmicTrackTool/CosmicRateAnalyzer/plugins/CosmicRateAnalyzer.cc>

Inheritance diagram for CosmicRateAnalyzer:
edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 CosmicRateAnalyzer (const edm::ParameterSet &)
 
 ~CosmicRateAnalyzer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void ClearInEndRun ()
 
void ClearInEventLoop ()
 
void endJob () override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 

Static Private Member Functions

static double stampToReal (edm::Timestamp time)
 

Private Attributes

std::vector< double > charge
 
std::vector< double > chi2
 
std::vector< double > chi2_ndof
 
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
 
std::vector< double > d0
 
unsigned int DetectorID
 
std::vector< double > DTtime
 
std::vector< double > dz
 
std::vector< double > eta
 
int events
 
edm::Service< TFileServicefs
 
edm::RunNumber_t lastrunnum
 
double lastruntime
 
edm::EDGetTokenT< reco::MuonCollectionmuonTags_
 
int ntrk
 
int ntrk_runnum
 
int number_of_events
 
int number_of_tracks
 
int number_of_tracks_BPIX
 
int number_of_tracks_FPIX
 
int number_of_tracks_PIX
 
int number_of_tracks_TEC
 
int number_of_tracks_TECM
 
int number_of_tracks_TECP
 
int number_of_tracks_TIB
 
int number_of_tracks_TID
 
int number_of_tracks_TIDM
 
int number_of_tracks_TIDP
 
int number_of_tracks_TOB
 
std::vector< double > nvh
 
std::vector< double > p
 
std::vector< double > phi
 
std::vector< double > pt
 
double run_time
 
edm::RunNumber_t runnum
 
std::vector< double > theta
 
int track_BPIX
 
int track_FPIX
 
int track_PIXEL
 
int track_TEC
 
int track_TECM
 
int track_TECP
 
int track_TIB
 
int track_TID
 
int track_TIDM
 
int track_TIDP
 
int track_TOB
 
edm::EDGetTokenT< reco::TrackCollectiontrackTags_
 
TTree * treeCluster
 
TTree * treeEvent
 
TTree * treeRun
 
std::vector< int > v_ntrk
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description : This Analyzer creates tuple, having necessary infromation for cosmic track and event rate calculations. Tuple created by this analyzer also have some kinematical information. This tuple is input of some offline macros that make rate plots and kinematical plots.

Implementation : Documentation for running this tool is described in twiki : https://twiki.cern.ch/twiki/bin/view/CMS/TkAlCosmicsRateMonitoring

Definition at line 76 of file CosmicRateAnalyzer.cc.

Constructor & Destructor Documentation

◆ CosmicRateAnalyzer()

CosmicRateAnalyzer::CosmicRateAnalyzer ( const edm::ParameterSet iConfig)
explicit

Definition at line 164 of file CosmicRateAnalyzer.cc.

165  : trackTags_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksInputTag"))),
168  muonTags_(consumes<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("muonsInputTag"))) {
169  //now do what ever initialization is needed
170  //
171  usesResource(TFileService::kSharedResource);
172  treeEvent = fs->make<TTree>("Event", "");
173  treeRun = fs->make<TTree>("Run", "");
174  treeCluster = fs->make<TTree>("Cluster", "");
175 }

References fs, TFileService::kSharedResource, TFileService::make(), treeCluster, treeEvent, and treeRun.

◆ ~CosmicRateAnalyzer()

CosmicRateAnalyzer::~CosmicRateAnalyzer ( )
override

Definition at line 177 of file CosmicRateAnalyzer.cc.

177  {
178  // do anything here that needs to be done at desctruction time
179  // (e.g. close files, deallocate resources etc.)
180 }

Member Function Documentation

◆ analyze()

void CosmicRateAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 201 of file CosmicRateAnalyzer.cc.

201  {
202  using namespace edm;
203 
204  using reco::TrackCollection;
206  iEvent.getByToken(trackTags_, tracks);
207 
210 
212  iSetup.get<TrackerTopologyRcd>().get(tTopo);
213 
214  edm::Timestamp ts_begin = iEvent.getRun().beginTime();
215  double t_begin = stampToReal(ts_begin);
216  edm::Timestamp ts_end = iEvent.getRun().endTime();
217  double t_end = stampToReal(ts_end);
218 
219  lastruntime = t_end - t_begin;
220  lastrunnum = iEvent.getRun().run();
221 
223  iSetup.get<SiStripLatencyRcd>().get(apvlat);
224 
225  if (!tracks->empty())
226  v_ntrk.push_back(tracks->size());
227 
228  ntrk = 0;
229  for (TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1) {
230  pt.push_back(itTrack1->pt());
231  charge.push_back(itTrack1->charge());
232  chi2.push_back(itTrack1->chi2());
233  chi2_ndof.push_back(itTrack1->normalizedChi2());
234  eta.push_back(itTrack1->eta());
235  theta.push_back(itTrack1->theta());
236  phi.push_back(itTrack1->phi());
237  p.push_back(itTrack1->p());
238  d0.push_back(itTrack1->d0());
239  dz.push_back(itTrack1->dz());
240  nvh.push_back(itTrack1->numberOfValidHits());
241 
242  int nhitinBPIX = 0;
243  int nhitinFPIX = 0;
244  int nhitinPIXEL = 0;
245  int nhitinTEC = 0;
246  int nhitinTOB = 0;
247  int nhitinTIB = 0;
248  int nhitinTID = 0;
249  int nhitinTECminus = 0;
250  int nhitinTECplus = 0;
251  int nhitinTIDminus = 0;
252  int nhitinTIDplus = 0;
253  int countHit = 0;
254 
255  for (auto const& hit1 : itTrack1->recHits()) {
256  const DetId detId1(hit1->geographicalId());
257  const int subdetId1 = detId1.subdetId();
258  if (!hit1->isValid())
259  continue; // only real hits count as in itTrack1->numberOfValidHits()
260 
262  // Hit information in PixelBarrel //
264  if (PixelSubdetector::PixelBarrel == subdetId1) {
265  ++nhitinBPIX;
266  ++nhitinPIXEL;
267  PixelBarrelName pxbId1(detId1);
268  }
270  // Hit information in PixelEndcap //
272  else if (PixelSubdetector::PixelEndcap == subdetId1) {
273  ++nhitinFPIX;
274  ++nhitinPIXEL;
275  }
277  // Hit information in TEC //
279  else if (SiStripDetId::TEC == subdetId1) {
280  ++nhitinTEC;
281 
282  if (tTopo->tecIsZMinusSide(detId1)) {
283  ++nhitinTECminus;
284  } else {
285  ++nhitinTECplus;
286  }
287  }
289  // Hit information in TOB //
291  else if (SiStripDetId::TOB == subdetId1) {
292  ++nhitinTOB;
293  }
295  // Hit information in TIB //
297  else if (SiStripDetId::TIB == subdetId1) {
298  ++nhitinTIB;
299  }
301  // Hit information in TID //
303  else if (SiStripDetId::TID == subdetId1) {
304  ++nhitinTID;
305 
306  if (tTopo->tidIsZMinusSide(detId1)) {
307  ++nhitinTIDminus;
308  } else {
309  ++nhitinTIDplus;
310  }
311  }
312 
313  countHit++;
314  } // for Loop over Hits
315 
316  if (nhitinBPIX > 0) {
317  track_BPIX++;
318  }
319  if (nhitinFPIX > 0) {
320  track_FPIX++;
321  }
322  if (nhitinPIXEL > 0) {
323  track_PIXEL++;
324  }
325  if (nhitinTEC > 0) {
326  track_TEC++;
327  }
328  if (nhitinTECminus > 0) {
329  track_TECM++;
330  }
331  if (nhitinTECplus > 0) {
332  track_TECP++;
333  }
334  if (nhitinTOB > 0) {
335  track_TOB++;
336  }
337  if (nhitinTIB > 0) {
338  track_TIB++;
339  }
340  if (nhitinTID > 0) {
341  track_TID++;
342  }
343  if (nhitinTIDminus > 0) {
344  track_TIDM++;
345  }
346  if (nhitinTIDplus > 0) {
347  track_TIDP++;
348  }
349 
350  ntrk++;
351  ntrk_runnum++;
352  } // for Loop over TrackCollection
353  events++;
354 
356  iEvent.getByToken(clustercollectionToken_, cluster);
357 
358  for (edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin(); det != cluster->end(); ++det) {
359  DetectorID = (det->detId());
360  treeCluster->Fill();
361  }
362 
364  iEvent.getByToken(muonTags_, muH);
365  const reco::MuonCollection& muonsT0 = *(muH.product());
366  float time = -9999.;
367  for (unsigned int i = 0; i < muonsT0.size(); i++) {
368  //DT time
369  reco::MuonTime mt0 = muonsT0[i].time();
370  time = mt0.timeAtIpInOut;
371  DTtime.push_back(time);
372  }
373  treeEvent->Fill();
375 
376 } //Event Loop

References charge, chi2, chi2_ndof, ClearInEventLoop(), clustercollectionToken_, d0, DetectorID, DTtime, dz, eta, events, edm::EventSetup::get(), get, mps_fire::i, iEvent, lastrunnum, lastruntime, volumeBasedMagneticField_160812_cfi::magfield, muonTags_, ntrk, ntrk_runnum, nvh, p, phi, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::Handle< T >::product(), pt, stampToReal(), DetId::subdetId(), SiStripDetId::TEC, TrackerTopology::tecIsZMinusSide(), theta, SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidIsZMinusSide(), ntuplemaker::time, reco::MuonTime::timeAtIpInOut, SiStripDetId::TOB, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, track_TOB, PDWG_EXOHSCP_cff::tracks, trackTags_, treeCluster, treeEvent, and v_ntrk.

◆ beginJob()

void CosmicRateAnalyzer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 379 of file CosmicRateAnalyzer.cc.

379  {
380  treeEvent->Branch("pt", &pt);
381  treeEvent->Branch("charge", &charge);
382  treeEvent->Branch("chi2", &chi2);
383  treeEvent->Branch("chi2_ndof", &chi2_ndof);
384  treeEvent->Branch("eta", &eta);
385  treeEvent->Branch("theta", &theta);
386  treeEvent->Branch("phi", &phi);
387  treeEvent->Branch("p", &p);
388  treeEvent->Branch("d0", &d0);
389  treeEvent->Branch("dz", &dz);
390  treeEvent->Branch("nvh", &nvh);
391  treeEvent->Branch("ntrk", &ntrk);
392  treeEvent->Branch("DTtime", &DTtime);
393  treeRun->Branch("run_time", &run_time);
394  treeRun->Branch("runnum", &runnum);
395  treeRun->Branch("number_of_events", &number_of_events);
396  treeRun->Branch("number_of_tracks", &number_of_tracks);
397  treeRun->Branch("number_of_tracks_PIX", &number_of_tracks_PIX);
398  treeRun->Branch("number_of_tracks_FPIX", &number_of_tracks_FPIX);
399  treeRun->Branch("number_of_tracks_BPIX", &number_of_tracks_BPIX);
400  treeRun->Branch("number_of_tracks_TID", &number_of_tracks_TID);
401  treeRun->Branch("number_of_tracks_TIDM", &number_of_tracks_TIDM);
402  treeRun->Branch("number_of_tracks_TIDP", &number_of_tracks_TIDP);
403  treeRun->Branch("number_of_tracks_TIB", &number_of_tracks_TIB);
404  treeRun->Branch("number_of_tracks_TEC", &number_of_tracks_TEC);
405  treeRun->Branch("number_of_tracks_TECP", &number_of_tracks_TECP);
406  treeRun->Branch("number_of_tracks_TECM", &number_of_tracks_TECM);
407  treeRun->Branch("number_of_tracks_TOB", &number_of_tracks_TOB);
408  treeCluster->Branch("DetID", &DetectorID);
409 }

References charge, chi2, chi2_ndof, d0, DetectorID, DTtime, dz, eta, ntrk, number_of_events, number_of_tracks, number_of_tracks_BPIX, number_of_tracks_FPIX, number_of_tracks_PIX, number_of_tracks_TEC, number_of_tracks_TECM, number_of_tracks_TECP, number_of_tracks_TIB, number_of_tracks_TID, number_of_tracks_TIDM, number_of_tracks_TIDP, number_of_tracks_TOB, nvh, p, phi, pt, run_time, runnum, theta, treeCluster, treeEvent, and treeRun.

◆ beginRun()

void CosmicRateAnalyzer::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivate

Definition at line 415 of file CosmicRateAnalyzer.cc.

415  {
416  lastruntime = 0.0;
417  lastrunnum = 0.0;
418  ntrk_runnum = 0.0;
419  events = 0.0;
420  track_BPIX = 0.0;
421  track_FPIX = 0.0;
422  track_PIXEL = 0.0;
423  track_TEC = 0.0;
424  track_TECM = 0.0;
425  track_TECP = 0.0;
426  track_TOB = 0.0;
427  track_TIB = 0.0;
428  track_TID = 0.0;
429  track_TIDM = 0.0;
430  track_TIDP = 0.0;
431 }

References events, lastrunnum, lastruntime, ntrk_runnum, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, and track_TOB.

◆ ClearInEndRun()

void CosmicRateAnalyzer::ClearInEndRun ( )
private

◆ ClearInEventLoop()

void CosmicRateAnalyzer::ClearInEventLoop ( )
private

Definition at line 185 of file CosmicRateAnalyzer.cc.

185  {
186  pt.clear();
187  charge.clear();
188  chi2.clear();
189  chi2_ndof.clear();
190  eta.clear();
191  theta.clear();
192  phi.clear();
193  p.clear();
194  d0.clear();
195  dz.clear();
196  nvh.clear();
197  DTtime.clear();
198 }

References charge, chi2, chi2_ndof, d0, DTtime, dz, eta, nvh, p, phi, pt, and theta.

Referenced by analyze().

◆ endJob()

void CosmicRateAnalyzer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 412 of file CosmicRateAnalyzer.cc.

412 {}

Referenced by o2olib.O2ORunMgr::executeJob().

◆ endRun()

void CosmicRateAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivate

◆ fillDescriptions()

void CosmicRateAnalyzer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 455 of file CosmicRateAnalyzer.cc.

455  {
457  desc.setComment("Create tuple with all variables required to calculate cosmic event and track rates.");
458  desc.add<edm::InputTag>("tracksInputTag", edm::InputTag("ALCARECOTkAlCosmicsCTF0T"));
459  desc.add<edm::InputTag>("muonsInputTag", edm::InputTag("muons1Leg"));
460  descriptions.add("cosmicRateAnalyzer", desc);
461 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_2018_cff::InputTag, and edm::ParameterSetDescription::setComment().

◆ stampToReal()

static double CosmicRateAnalyzer::stampToReal ( edm::Timestamp  time)
inlinestaticprivate

Definition at line 91 of file CosmicRateAnalyzer.cc.

91 { return time.unixTime() + time.microsecondOffset() * 1e-6; }

References MillePedeFileConverter_cfg::e, and ntuplemaker::time.

Referenced by analyze().

Member Data Documentation

◆ charge

std::vector<double> CosmicRateAnalyzer::charge
private

Definition at line 140 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and ClearInEventLoop().

◆ chi2

std::vector<double> CosmicRateAnalyzer::chi2
private

Definition at line 141 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and ClearInEventLoop().

◆ chi2_ndof

std::vector<double> CosmicRateAnalyzer::chi2_ndof
private

Definition at line 142 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and ClearInEventLoop().

◆ clustercollectionToken_

edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > CosmicRateAnalyzer::clustercollectionToken_
private

Definition at line 96 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ d0

std::vector<double> CosmicRateAnalyzer::d0
private

Definition at line 147 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and ClearInEventLoop().

◆ DetectorID

unsigned int CosmicRateAnalyzer::DetectorID
private

Definition at line 102 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ DTtime

std::vector<double> CosmicRateAnalyzer::DTtime
private

Definition at line 150 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and ClearInEventLoop().

◆ dz

std::vector<double> CosmicRateAnalyzer::dz
private

◆ eta

std::vector<double> CosmicRateAnalyzer::eta
private

◆ events

int CosmicRateAnalyzer::events
private

◆ fs

edm::Service<TFileService> CosmicRateAnalyzer::fs
private

Definition at line 100 of file CosmicRateAnalyzer.cc.

Referenced by CosmicRateAnalyzer().

◆ lastrunnum

edm::RunNumber_t CosmicRateAnalyzer::lastrunnum
private

Definition at line 98 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ lastruntime

double CosmicRateAnalyzer::lastruntime
private

Definition at line 99 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ muonTags_

edm::EDGetTokenT<reco::MuonCollection> CosmicRateAnalyzer::muonTags_
private

Definition at line 97 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ ntrk

int CosmicRateAnalyzer::ntrk
private

Definition at line 121 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ntrk_runnum

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 122 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ number_of_events

int CosmicRateAnalyzer::number_of_events
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 124 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_BPIX

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_FPIX

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 126 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_PIX

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 125 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TEC

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TECM

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 130 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TECP

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 129 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIB

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TID

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 133 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIDM

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIDP

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 134 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TOB

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 131 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ nvh

std::vector<double> CosmicRateAnalyzer::nvh
private

Definition at line 149 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and ClearInEventLoop().

◆ p

std::vector<double> CosmicRateAnalyzer::p
private

◆ phi

std::vector<double> CosmicRateAnalyzer::phi
private

◆ pt

std::vector<double> CosmicRateAnalyzer::pt
private

◆ run_time

double CosmicRateAnalyzer::run_time
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ runnum

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ theta

std::vector<double> CosmicRateAnalyzer::theta
private

Definition at line 144 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), ClearInEventLoop(), and Tau.Tau::zImpact().

◆ track_BPIX

int CosmicRateAnalyzer::track_BPIX
private

Definition at line 108 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_FPIX

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 109 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_PIXEL

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 110 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TEC

int CosmicRateAnalyzer::track_TEC
private

Definition at line 111 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TECM

int CosmicRateAnalyzer::track_TECM
private

Definition at line 112 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TECP

int CosmicRateAnalyzer::track_TECP
private

Definition at line 113 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TIB

int CosmicRateAnalyzer::track_TIB
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TID

int CosmicRateAnalyzer::track_TID
private

Definition at line 116 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TIDM

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 117 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TIDP

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 118 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ track_TOB

int CosmicRateAnalyzer::track_TOB
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginRun(), and endRun().

◆ trackTags_

edm::EDGetTokenT<reco::TrackCollection> CosmicRateAnalyzer::trackTags_
private

Definition at line 95 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ treeCluster

TTree* CosmicRateAnalyzer::treeCluster
private

Definition at line 105 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and CosmicRateAnalyzer().

◆ treeEvent

TTree* CosmicRateAnalyzer::treeEvent
private

Definition at line 103 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), beginJob(), and CosmicRateAnalyzer().

◆ treeRun

TTree* CosmicRateAnalyzer::treeRun
private

Definition at line 104 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), CosmicRateAnalyzer(), and endRun().

◆ v_ntrk

std::vector<int> CosmicRateAnalyzer::v_ntrk
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

CosmicRateAnalyzer::fs
edm::Service< TFileService > fs
Definition: CosmicRateAnalyzer.cc:100
TrackerTopology::tidIsZMinusSide
bool tidIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:259
CosmicRateAnalyzer::number_of_tracks_FPIX
int number_of_tracks_FPIX
Definition: CosmicRateAnalyzer.cc:126
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
mps_fire.i
i
Definition: mps_fire.py:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
edm::Handle::product
T const * product() const
Definition: Handle.h:70
CosmicRateAnalyzer::events
int events
Definition: CosmicRateAnalyzer.cc:107
TrackerTopology::tecIsZMinusSide
bool tecIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:262
CosmicRateAnalyzer::number_of_tracks_TECP
int number_of_tracks_TECP
Definition: CosmicRateAnalyzer.cc:129
edm
HLT enums.
Definition: AlignableModifier.h:19
CosmicRateAnalyzer::DTtime
std::vector< double > DTtime
Definition: CosmicRateAnalyzer.cc:150
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
PixelBarrelName
Definition: PixelBarrelName.h:16
CosmicRateAnalyzer::ntrk
int ntrk
Definition: CosmicRateAnalyzer.cc:121
edmNew::DetSetVector::const_iterator
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Definition: DetSetVectorNew.h:231
CosmicRateAnalyzer::nvh
std::vector< double > nvh
Definition: CosmicRateAnalyzer.cc:149
CosmicRateAnalyzer::track_TIDP
int track_TIDP
Definition: CosmicRateAnalyzer.cc:118
CosmicRateAnalyzer::number_of_tracks_TIDP
int number_of_tracks_TIDP
Definition: CosmicRateAnalyzer.cc:134
CosmicRateAnalyzer::track_PIXEL
int track_PIXEL
Definition: CosmicRateAnalyzer.cc:110
CosmicRateAnalyzer::treeCluster
TTree * treeCluster
Definition: CosmicRateAnalyzer.cc:105
CosmicRateAnalyzer::clustercollectionToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
Definition: CosmicRateAnalyzer.cc:96
edm::Handle< reco::TrackCollection >
CosmicRateAnalyzer::phi
std::vector< double > phi
Definition: CosmicRateAnalyzer.cc:145
reco::MuonTime
Definition: MuonTime.h:5
CosmicRateAnalyzer::v_ntrk
std::vector< int > v_ntrk
Definition: CosmicRateAnalyzer.cc:120
CosmicRateAnalyzer::track_BPIX
int track_BPIX
Definition: CosmicRateAnalyzer.cc:108
CosmicRateAnalyzer::treeRun
TTree * treeRun
Definition: CosmicRateAnalyzer.cc:104
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
CosmicRateAnalyzer::number_of_tracks_TECM
int number_of_tracks_TECM
Definition: CosmicRateAnalyzer.cc:130
CosmicRateAnalyzer::track_TOB
int track_TOB
Definition: CosmicRateAnalyzer.cc:114
DetId
Definition: DetId.h:17
CosmicRateAnalyzer::p
std::vector< double > p
Definition: CosmicRateAnalyzer.cc:146
CosmicRateAnalyzer::number_of_tracks_BPIX
int number_of_tracks_BPIX
Definition: CosmicRateAnalyzer.cc:127
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
CosmicRateAnalyzer::eta
std::vector< double > eta
Definition: CosmicRateAnalyzer.cc:143
reco::MuonCollection
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
CosmicRateAnalyzer::run_time
double run_time
Definition: CosmicRateAnalyzer.cc:138
edm::ESHandle< MagneticField >
CosmicRateAnalyzer::number_of_tracks_TID
int number_of_tracks_TID
Definition: CosmicRateAnalyzer.cc:133
CosmicRateAnalyzer::number_of_tracks_TEC
int number_of_tracks_TEC
Definition: CosmicRateAnalyzer.cc:128
SiStripDetId::TEC
static constexpr auto TEC
Definition: SiStripDetId.h:40
CosmicRateAnalyzer::lastrunnum
edm::RunNumber_t lastrunnum
Definition: CosmicRateAnalyzer.cc:98
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
CosmicRateAnalyzer::number_of_tracks_TIB
int number_of_tracks_TIB
Definition: CosmicRateAnalyzer.cc:132
CosmicRateAnalyzer::track_TEC
int track_TEC
Definition: CosmicRateAnalyzer.cc:111
CosmicRateAnalyzer::chi2_ndof
std::vector< double > chi2_ndof
Definition: CosmicRateAnalyzer.cc:142
CosmicRateAnalyzer::lastruntime
double lastruntime
Definition: CosmicRateAnalyzer.cc:99
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSetDescription::setComment
void setComment(std::string const &value)
Definition: ParameterSetDescription.cc:33
CosmicRateAnalyzer::track_TIDM
int track_TIDM
Definition: CosmicRateAnalyzer.cc:117
CosmicRateAnalyzer::ClearInEventLoop
void ClearInEventLoop()
Definition: CosmicRateAnalyzer.cc:185
CosmicRateAnalyzer::track_TIB
int track_TIB
Definition: CosmicRateAnalyzer.cc:115
CosmicRateAnalyzer::track_TECM
int track_TECM
Definition: CosmicRateAnalyzer.cc:112
iEvent
int iEvent
Definition: GenABIO.cc:224
CosmicRateAnalyzer::track_TECP
int track_TECP
Definition: CosmicRateAnalyzer.cc:113
CosmicRateAnalyzer::stampToReal
static double stampToReal(edm::Timestamp time)
Definition: CosmicRateAnalyzer.cc:91
CosmicRateAnalyzer::number_of_tracks_TIDM
int number_of_tracks_TIDM
Definition: CosmicRateAnalyzer.cc:135
SiStripDetId::TOB
static constexpr auto TOB
Definition: SiStripDetId.h:39
CosmicRateAnalyzer::number_of_events
int number_of_events
Definition: CosmicRateAnalyzer.cc:136
CosmicRateAnalyzer::ntrk_runnum
int ntrk_runnum
Definition: CosmicRateAnalyzer.cc:122
get
#define get
CosmicRateAnalyzer::number_of_tracks_TOB
int number_of_tracks_TOB
Definition: CosmicRateAnalyzer.cc:131
SiStripDetId::TID
static constexpr auto TID
Definition: SiStripDetId.h:38
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edmNew::DetSetVector
Definition: DetSetNew.h:13
CosmicRateAnalyzer::DetectorID
unsigned int DetectorID
Definition: CosmicRateAnalyzer.cc:102
CosmicRateAnalyzer::theta
std::vector< double > theta
Definition: CosmicRateAnalyzer.cc:144
CosmicRateAnalyzer::dz
std::vector< double > dz
Definition: CosmicRateAnalyzer.cc:148
CosmicRateAnalyzer::number_of_tracks
int number_of_tracks
Definition: CosmicRateAnalyzer.cc:124
CosmicRateAnalyzer::muonTags_
edm::EDGetTokenT< reco::MuonCollection > muonTags_
Definition: CosmicRateAnalyzer.cc:97
CosmicRateAnalyzer::trackTags_
edm::EDGetTokenT< reco::TrackCollection > trackTags_
Definition: CosmicRateAnalyzer.cc:95
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
SiStripDetId::TIB
static constexpr auto TIB
Definition: SiStripDetId.h:37
CosmicRateAnalyzer::d0
std::vector< double > d0
Definition: CosmicRateAnalyzer.cc:147
SiStripLatencyRcd
Definition: SiStripCondDataRecords.h:36
CosmicRateAnalyzer::track_FPIX
int track_FPIX
Definition: CosmicRateAnalyzer.cc:109
CosmicRateAnalyzer::pt
std::vector< double > pt
Definition: CosmicRateAnalyzer.cc:139
CosmicRateAnalyzer::chi2
std::vector< double > chi2
Definition: CosmicRateAnalyzer.cc:141
TrackerTopologyRcd
Definition: TrackerTopologyRcd.h:10
reco::MuonTime::timeAtIpInOut
float timeAtIpInOut
Definition: MuonTime.h:13
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:126
CosmicRateAnalyzer::number_of_tracks_PIX
int number_of_tracks_PIX
Definition: CosmicRateAnalyzer.cc:125
ntuplemaker.time
time
Definition: ntuplemaker.py:310
volumeBasedMagneticField_160812_cfi.magfield
magfield
Definition: volumeBasedMagneticField_160812_cfi.py:11
CosmicRateAnalyzer::charge
std::vector< double > charge
Definition: CosmicRateAnalyzer.cc:140
edm::InputTag
Definition: InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
CosmicRateAnalyzer::treeEvent
TTree * treeEvent
Definition: CosmicRateAnalyzer.cc:103
CosmicRateAnalyzer::runnum
edm::RunNumber_t runnum
Definition: CosmicRateAnalyzer.cc:137
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
CosmicRateAnalyzer::track_TID
int track_TID
Definition: CosmicRateAnalyzer.cc:116
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::Timestamp
Definition: Timestamp.h:30