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
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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
 
int hit_BPIX
 
int hit_BPIX_layer1
 
int hit_BPIX_layer2
 
int hit_BPIX_layer3
 
int hit_BPIX_layer4
 
int hit_FPIX
 
int hit_FPIX_disk1
 
int hit_FPIX_disk1_minus
 
int hit_FPIX_disk1_plus
 
int hit_FPIX_disk2
 
int hit_FPIX_disk2_minus
 
int hit_FPIX_disk2_plus
 
int hit_FPIX_disk3
 
int hit_FPIX_disk3_minus
 
int hit_FPIX_disk3_plus
 
int hit_PIX
 
int hit_Total
 
edm::RunNumber_t lastrunnum
 
double lastruntime
 
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcdlatencyToken_
 
double magField
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken_
 
edm::EDGetTokenT< reco::MuonCollectionmuonTags_
 
std::vector< int > nh_BPIX
 
std::vector< int > nh_FPIX
 
std::vector< int > nh_PIXEL
 
std::vector< int > nh_TEC
 
std::vector< int > nh_TIB
 
std::vector< int > nh_TID
 
std::vector< int > nh_TOB
 
int nHits_PIXEL
 
int nTotalEvents
 
int nTotalTracks
 
int ntrk
 
int ntrk_runnum
 
int number_of_events
 
int number_of_hits_BPIX
 
int number_of_hits_BPIX_layer1
 
int number_of_hits_BPIX_layer2
 
int number_of_hits_BPIX_layer3
 
int number_of_hits_BPIX_layer4
 
int number_of_hits_FPIX
 
int number_of_hits_FPIX_disk1
 
int number_of_hits_FPIX_disk1_minus
 
int number_of_hits_FPIX_disk1_plus
 
int number_of_hits_FPIX_disk2
 
int number_of_hits_FPIX_disk2_minus
 
int number_of_hits_FPIX_disk2_plus
 
int number_of_hits_FPIX_disk3
 
int number_of_hits_FPIX_disk3_minus
 
int number_of_hits_FPIX_disk3_plus
 
int number_of_hits_PIX
 
int number_of_hits_Total
 
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
 
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtopoToken_
 
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
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Description : This Analyzer creates tuple, having necessary infromation for Cosmic Track Rate and Event Rate calculations. Tuples created by this analyzer also have some kinematic information. This tuple is input to 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 75 of file CosmicRateAnalyzer.cc.

Constructor & Destructor Documentation

◆ CosmicRateAnalyzer()

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

Definition at line 224 of file CosmicRateAnalyzer.cc.

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

228  trackTags_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksInputTag"))),
231  muonTags_(consumes<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("muonsInputTag"))) {
232  //now do what ever initialization is needed
233  //
234  usesResource(TFileService::kSharedResource);
235  treeEvent = fs->make<TTree>("Event", "");
236  treeRun = fs->make<TTree>("Run", "");
237  treeCluster = fs->make<TTree>("Cluster", "");
238 
239  nTotalTracks = 0;
240  nTotalEvents = 0;
241 }
static const std::string kSharedResource
Definition: TFileService.h:76
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::EDGetTokenT< reco::TrackCollection > trackTags_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
edm::EDGetTokenT< reco::MuonCollection > muonTags_
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcd > latencyToken_
edm::Service< TFileService > fs
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_

◆ ~CosmicRateAnalyzer()

CosmicRateAnalyzer::~CosmicRateAnalyzer ( )
override

Definition at line 243 of file CosmicRateAnalyzer.cc.

243  {
244  // do anything here that needs to be done at desctruction time
245  // (e.g. close files, deallocate resources etc.)
246 }

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 274 of file CosmicRateAnalyzer.cc.

References charge, chi2, chi2_ndof, ClearInEventLoop(), clustercollectionToken_, gather_cfg::cout, d0, DetectorID, DTtime, dz, eta, events, edm::EventSetup::getData(), hit_BPIX, hit_BPIX_layer1, hit_BPIX_layer2, hit_BPIX_layer3, hit_BPIX_layer4, hit_FPIX, hit_FPIX_disk1, hit_FPIX_disk1_minus, hit_FPIX_disk1_plus, hit_FPIX_disk2, hit_FPIX_disk2_minus, hit_FPIX_disk2_plus, hit_FPIX_disk3, hit_FPIX_disk3_minus, hit_FPIX_disk3_plus, hit_PIX, hit_Total, mps_fire::i, iEvent, lastrunnum, lastruntime, magField, magFieldToken_, HLT_2024v14_cff::magneticField, muonTags_, nh_BPIX, nh_FPIX, nh_PIXEL, nh_TEC, nh_TIB, nh_TID, nh_TOB, nHits_PIXEL, nTotalEvents, nTotalTracks, ntrk, ntrk_runnum, nvh, p, phi, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::Handle< T >::product(), pt, TrackerTopology::pxbLayer(), TrackerTopology::pxfDisk(), TrackerTopology::pxfSide(), stampToReal(), DetId::subdetId(), SiStripDetId::TEC, TrackerTopology::tecIsZMinusSide(), theta, SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidIsZMinusSide(), hcalRecHitTable_cff::time, reco::MuonTime::timeAtIpInOut, SiStripDetId::TOB, topoToken_, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, track_TOB, DiMuonV_cfg::tracks, trackTags_, treeCluster, treeEvent, and v_ntrk.

274  {
275  using namespace edm;
276 
277  using reco::TrackCollection;
279  iEvent.getByToken(trackTags_, tracks);
280 
281  const TrackerTopology* const tTopo = &iSetup.getData(topoToken_);
283  magField = magneticField->inTesla(GlobalPoint(0, 0, 0)).mag();
284  //const SiStripLatency* apvlat = &iSetup.getData(latencyToken_); // unused (for the moment)
285 
286  edm::Timestamp ts_begin = iEvent.getRun().beginTime();
287  double t_begin = stampToReal(ts_begin);
288  edm::Timestamp ts_end = iEvent.getRun().endTime();
289  double t_end = stampToReal(ts_end);
290 
291  lastruntime = t_end - t_begin;
292  lastrunnum = iEvent.getRun().run();
293 
294  if (!tracks->empty())
295  v_ntrk.push_back(tracks->size());
296 
297  ntrk = 0;
298  for (TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1) {
299  pt.push_back(itTrack1->pt());
300  charge.push_back(itTrack1->charge());
301  chi2.push_back(itTrack1->chi2());
302  chi2_ndof.push_back(itTrack1->normalizedChi2());
303  eta.push_back(itTrack1->eta());
304  theta.push_back(itTrack1->theta());
305  phi.push_back(itTrack1->phi());
306  p.push_back(itTrack1->p());
307  d0.push_back(itTrack1->d0());
308  dz.push_back(itTrack1->dz());
309  nvh.push_back(itTrack1->numberOfValidHits());
310  nh_BPIX.push_back(itTrack1->hitPattern().numberOfValidPixelBarrelHits());
311  nh_FPIX.push_back(itTrack1->hitPattern().numberOfValidPixelEndcapHits());
312  nh_TIB.push_back(itTrack1->hitPattern().numberOfValidStripTIBHits());
313  nh_TOB.push_back(itTrack1->hitPattern().numberOfValidStripTOBHits());
314  nh_TID.push_back(itTrack1->hitPattern().numberOfValidStripTIDHits());
315  nh_TEC.push_back(itTrack1->hitPattern().numberOfValidStripTECHits());
316 
317  nHits_PIXEL = 0;
318 
319  int nhitinBPIX = 0;
320  int nhitinFPIX = 0;
321  int nhitinPIXEL = 0;
322  int nhitinTEC = 0;
323  int nhitinTOB = 0;
324  int nhitinTIB = 0;
325  int nhitinTID = 0;
326  int nhitinTECminus = 0;
327  int nhitinTECplus = 0;
328  int nhitinTIDminus = 0;
329  int nhitinTIDplus = 0;
330 
331  for (auto const& hit1 : itTrack1->recHits()) {
332  const DetId detId1(hit1->geographicalId());
333  const int subdetId1 = detId1.subdetId();
334  uint32_t detid_db = detId1.rawId();
335  if (!hit1->isValid())
336  continue; // only real hits count as in itTrack1->numberOfValidHits()
337  hit_Total++;
338 
340  // Hit information in PixelBarrel //
342  if (PixelSubdetector::PixelBarrel == subdetId1) {
343  ++nhitinBPIX; //for cosmic track rate evaluation
344  ++nhitinPIXEL; //for cosmic track rate evaluation
345  ++nHits_PIXEL; // for PIXEL hits per track in Event Tree
346  ++hit_PIX; // for cosmic PIXEL hit rates per layer
347  ++hit_BPIX; // for cosmic PIXEL hit rates per layer
348 
349  int BPIX_layer = (tTopo->pxbLayer(detid_db));
350  if (BPIX_layer == 1) {
351  ++hit_BPIX_layer1; // for cosmic PIXEL hit rates per layer
352  } else if (BPIX_layer == 2) {
353  ++hit_BPIX_layer2; // for cosmic PIXEL hit rates per layer
354  } else if (BPIX_layer == 3) {
355  ++hit_BPIX_layer3; // for cosmic PIXEL hit rates per layer
356  } else if (BPIX_layer == 4) {
357  ++hit_BPIX_layer4; // for cosmic PIXEL hit rates per layer
358  } else {
359  std::cout << "CAUTION : Check Phase! BPIX layer not in {1,2,3}!" << std::endl;
360  std::cout << "Layer is : " << BPIX_layer << std::endl;
361  }
362 
363  }
365  // Hit information in PixelEndcap //
367  else if (PixelSubdetector::PixelEndcap == subdetId1) {
368  ++nhitinFPIX;
369  ++nhitinPIXEL;
370 
371  ++nHits_PIXEL;
372  ++hit_PIX; // for cosmic PIXEL hit rates per layer
373  ++hit_FPIX; // for cosmic PIXEL hit rates per layer
374 
375  int FPIX_side = (tTopo->pxfSide(detid_db));
376  int FPIX_disk = (tTopo->pxfDisk(detid_db));
377 
378  if (FPIX_disk == 1) {
379  ++hit_FPIX_disk1; // for cosmic PIXEL hit rates per layer
380  } else if (FPIX_disk == 2) {
381  ++hit_FPIX_disk2; // for cosmic PIXEL hit rates per layer
382  } else if (FPIX_disk == 3) {
383  ++hit_FPIX_disk3; // for cosmic PIXEL hit rates per layer
384  } else {
385  std::cout << "CAUTION : Check Phase! FPIX disk not in {1,2}!" << std::endl;
386  std::cout << "Disk is : " << FPIX_disk << std::endl;
387  }
388 
389  if (FPIX_disk == 1 && FPIX_side == 1) {
390  ++hit_FPIX_disk1_minus; // for cosmic PIXEL hit rates per layer
391  } else if (FPIX_disk == 1 && FPIX_side == 2) {
392  ++hit_FPIX_disk1_plus; // for cosmic PIXEL hit rates per layer
393  } else if (FPIX_disk == 2 && FPIX_side == 1) {
394  ++hit_FPIX_disk2_minus; // for cosmic PIXEL hit rates per layer
395  } else if (FPIX_disk == 2 && FPIX_side == 2) {
396  ++hit_FPIX_disk2_plus; // for cosmic PIXEL hit rates per layer
397  } else if (FPIX_disk == 3 && FPIX_side == 1) {
398  ++hit_FPIX_disk3_minus; // for cosmic PIXEL hit rates per layer
399  } else if (FPIX_disk == 3 && FPIX_side == 2) {
400  ++hit_FPIX_disk3_plus; // for cosmic PIXEL hit rates per layer
401  } else {
402  std::cout << "CAUTION : FPIX side not in {1,2}!" << std::endl;
403  }
404 
405  }
407  // Hit information in TEC //
409  else if (SiStripDetId::TEC == subdetId1) {
410  ++nhitinTEC;
411 
412  if (tTopo->tecIsZMinusSide(detId1)) {
413  ++nhitinTECminus;
414  } else {
415  ++nhitinTECplus;
416  }
417  }
419  // Hit information in TOB //
421  else if (SiStripDetId::TOB == subdetId1) {
422  ++nhitinTOB;
423  }
425  // Hit information in TIB //
427  else if (SiStripDetId::TIB == subdetId1) {
428  ++nhitinTIB;
429  }
431  // Hit information in TID //
433  else if (SiStripDetId::TID == subdetId1) {
434  ++nhitinTID;
435 
436  if (tTopo->tidIsZMinusSide(detId1)) {
437  ++nhitinTIDminus;
438  } else {
439  ++nhitinTIDplus;
440  }
441  }
442 
443  } // for Loop over Hits
444 
445  nh_PIXEL.push_back(nHits_PIXEL);
446 
447  if (nhitinBPIX > 0) {
448  track_BPIX++;
449  }
450  if (nhitinFPIX > 0) {
451  track_FPIX++;
452  }
453  if (nhitinPIXEL > 0) {
454  track_PIXEL++;
455  }
456  if (nhitinTEC > 0) {
457  track_TEC++;
458  }
459  if (nhitinTECminus > 0) {
460  track_TECM++;
461  }
462  if (nhitinTECplus > 0) {
463  track_TECP++;
464  }
465  if (nhitinTOB > 0) {
466  track_TOB++;
467  }
468  if (nhitinTIB > 0) {
469  track_TIB++;
470  }
471  if (nhitinTID > 0) {
472  track_TID++;
473  }
474  if (nhitinTIDminus > 0) {
475  track_TIDM++;
476  }
477  if (nhitinTIDplus > 0) {
478  track_TIDP++;
479  }
480 
481  ntrk++;
482  ntrk_runnum++;
483  nTotalTracks++;
484  } // for Loop over TrackCollection
485  events++;
486 
488  iEvent.getByToken(clustercollectionToken_, cluster);
489 
490  for (edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin(); det != cluster->end(); ++det) {
491  DetectorID = (det->detId());
492  treeCluster->Fill();
493  }
494 
496  iEvent.getByToken(muonTags_, muH);
497  const reco::MuonCollection& muonsT0 = *(muH.product());
498  float time = -9999.;
499  for (unsigned int i = 0; i < muonsT0.size(); i++) {
500  //DT time
501  reco::MuonTime mt0 = muonsT0[i].time();
502  time = mt0.timeAtIpInOut;
503  DTtime.push_back(time);
504  }
505 
506  treeEvent->Fill();
508  nTotalEvents++;
509 
510 } //Event Loop
std::vector< double > theta
std::vector< double > dz
unsigned int pxbLayer(const DetId &id) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::EDGetTokenT< reco::TrackCollection > trackTags_
std::vector< double > pt
std::vector< double > d0
std::vector< double > eta
static constexpr auto TID
Definition: SiStripDetId.h:38
std::vector< int > nh_BPIX
std::vector< double > charge
T const * product() const
Definition: Handle.h:70
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::RunNumber_t lastrunnum
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
bool tecIsZMinusSide(const DetId &id) const
std::vector< int > nh_TEC
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
bool tidIsZMinusSide(const DetId &id) const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
int iEvent
Definition: GenABIO.cc:224
std::vector< double > DTtime
std::vector< double > nvh
edm::EDGetTokenT< reco::MuonCollection > muonTags_
std::vector< int > nh_PIXEL
unsigned int pxfDisk(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
std::vector< double > phi
static constexpr auto TOB
Definition: SiStripDetId.h:39
std::vector< double > chi2
std::vector< int > v_ntrk
std::vector< double > p
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Definition: DetId.h:17
unsigned int pxfSide(const DetId &id) const
std::vector< int > nh_FPIX
std::vector< int > nh_TOB
static constexpr auto TIB
Definition: SiStripDetId.h:37
HLT enums.
std::vector< double > chi2_ndof
static double stampToReal(edm::Timestamp time)
float timeAtIpInOut
Definition: MuonTime.h:13
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
static constexpr auto TEC
Definition: SiStripDetId.h:40
std::vector< int > nh_TIB
std::vector< int > nh_TID

◆ beginJob()

void CosmicRateAnalyzer::beginJob ( )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 513 of file CosmicRateAnalyzer.cc.

References charge, chi2, chi2_ndof, d0, DetectorID, DTtime, dz, eta, magField, nh_BPIX, nh_FPIX, nh_PIXEL, nh_TEC, nh_TIB, nh_TID, nh_TOB, ntrk, number_of_events, number_of_hits_BPIX, number_of_hits_BPIX_layer1, number_of_hits_BPIX_layer2, number_of_hits_BPIX_layer3, number_of_hits_BPIX_layer4, number_of_hits_FPIX, number_of_hits_FPIX_disk1, number_of_hits_FPIX_disk1_minus, number_of_hits_FPIX_disk1_plus, number_of_hits_FPIX_disk2, number_of_hits_FPIX_disk2_minus, number_of_hits_FPIX_disk2_plus, number_of_hits_FPIX_disk3, number_of_hits_FPIX_disk3_minus, number_of_hits_FPIX_disk3_plus, number_of_hits_PIX, number_of_hits_Total, 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.

513  {
514  //--- Event tree ---//
515  treeEvent->Branch("pt", &pt);
516  treeEvent->Branch("charge", &charge);
517  treeEvent->Branch("chi2", &chi2);
518  treeEvent->Branch("chi2_ndof", &chi2_ndof);
519  treeEvent->Branch("eta", &eta);
520  treeEvent->Branch("theta", &theta);
521  treeEvent->Branch("phi", &phi);
522  treeEvent->Branch("p", &p);
523  treeEvent->Branch("d0", &d0);
524  treeEvent->Branch("dz", &dz);
525  treeEvent->Branch("nvh", &nvh);
526  treeEvent->Branch("ntrk", &ntrk);
527  treeEvent->Branch("nHitsPIXEL", &nh_PIXEL);
528  treeEvent->Branch("nHitsBPIX", &nh_BPIX);
529  treeEvent->Branch("nHitsFPIX", &nh_FPIX);
530  treeEvent->Branch("nHitsTIB", &nh_TIB);
531  treeEvent->Branch("nHitsTOB", &nh_TOB);
532  treeEvent->Branch("nHitsTID", &nh_TID);
533  treeEvent->Branch("nHitsTEC", &nh_TEC);
534  treeEvent->Branch("DTtime", &DTtime);
535  treeEvent->Branch("magField", &magField);
536 
537  //--- Run tree ---//
538  treeRun->Branch("run_time", &run_time);
539  treeRun->Branch("runnum", &runnum);
540  // a) For track Rate Calculation
541  treeRun->Branch("number_of_events", &number_of_events);
542  treeRun->Branch("number_of_tracks", &number_of_tracks);
543  treeRun->Branch("number_of_tracks_PIX", &number_of_tracks_PIX);
544  treeRun->Branch("number_of_tracks_FPIX", &number_of_tracks_FPIX);
545  treeRun->Branch("number_of_tracks_BPIX", &number_of_tracks_BPIX);
546  treeRun->Branch("number_of_tracks_TID", &number_of_tracks_TID);
547  treeRun->Branch("number_of_tracks_TIDM", &number_of_tracks_TIDM);
548  treeRun->Branch("number_of_tracks_TIDP", &number_of_tracks_TIDP);
549  treeRun->Branch("number_of_tracks_TIB", &number_of_tracks_TIB);
550  treeRun->Branch("number_of_tracks_TEC", &number_of_tracks_TEC);
551  treeRun->Branch("number_of_tracks_TECP", &number_of_tracks_TECP);
552  treeRun->Branch("number_of_tracks_TECM", &number_of_tracks_TECM);
553  treeRun->Branch("number_of_tracks_TOB", &number_of_tracks_TOB);
554  // a) For PIXEL Hit Rate Calculation
555  treeRun->Branch("number_of_hits_Total", &number_of_hits_Total);
556  treeRun->Branch("number_of_hits_PIX", &number_of_hits_PIX);
557  treeRun->Branch("number_of_hits_BPIX", &number_of_hits_BPIX);
558  treeRun->Branch("number_of_hits_BPIX_layer1", &number_of_hits_BPIX_layer1);
559  treeRun->Branch("number_of_hits_BPIX_layer2", &number_of_hits_BPIX_layer2);
560  treeRun->Branch("number_of_hits_BPIX_layer3", &number_of_hits_BPIX_layer3);
561  treeRun->Branch("number_of_hits_BPIX_layer4", &number_of_hits_BPIX_layer4);
562  treeRun->Branch("number_of_hits_FPIX", &number_of_hits_FPIX);
563  treeRun->Branch("number_of_hits_FPIX_disk1", &number_of_hits_FPIX_disk1);
564  treeRun->Branch("number_of_hits_FPIX_disk2", &number_of_hits_FPIX_disk2);
565  treeRun->Branch("number_of_hits_FPIX_disk3", &number_of_hits_FPIX_disk3);
566  treeRun->Branch("number_of_hits_FPIX_disk1_plus", &number_of_hits_FPIX_disk1_plus);
567  treeRun->Branch("number_of_hits_FPIX_disk1_minus", &number_of_hits_FPIX_disk1_minus);
568  treeRun->Branch("number_of_hits_FPIX_disk2_plus", &number_of_hits_FPIX_disk2_plus);
569  treeRun->Branch("number_of_hits_FPIX_disk2_minus", &number_of_hits_FPIX_disk2_minus);
570  treeRun->Branch("number_of_hits_FPIX_disk3_plus", &number_of_hits_FPIX_disk3_plus);
571  treeRun->Branch("number_of_hits_FPIX_disk3_minus", &number_of_hits_FPIX_disk3_minus);
572 
573  //--- Cluster tree ---//
574  treeCluster->Branch("DetID", &DetectorID);
575 }
std::vector< double > theta
std::vector< double > dz
std::vector< double > pt
std::vector< double > d0
std::vector< double > eta
std::vector< int > nh_BPIX
std::vector< double > charge
std::vector< int > nh_TEC
std::vector< double > DTtime
std::vector< double > nvh
std::vector< int > nh_PIXEL
std::vector< double > phi
std::vector< double > chi2
std::vector< double > p
edm::RunNumber_t runnum
std::vector< int > nh_FPIX
std::vector< int > nh_TOB
std::vector< double > chi2_ndof
std::vector< int > nh_TIB
std::vector< int > nh_TID

◆ beginRun()

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

Definition at line 584 of file CosmicRateAnalyzer.cc.

References events, hit_BPIX, hit_BPIX_layer1, hit_BPIX_layer2, hit_BPIX_layer3, hit_BPIX_layer4, hit_FPIX, hit_FPIX_disk1, hit_FPIX_disk1_minus, hit_FPIX_disk1_plus, hit_FPIX_disk2, hit_FPIX_disk2_minus, hit_FPIX_disk2_plus, hit_FPIX_disk3, hit_FPIX_disk3_minus, hit_FPIX_disk3_plus, hit_PIX, hit_Total, 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.

584  {
585  lastruntime = 0.0;
586  lastrunnum = 0.0;
587  ntrk_runnum = 0.0;
588  events = 0.0;
589  // a) for Track rate
590  track_BPIX = 0.0;
591  track_FPIX = 0.0;
592  track_PIXEL = 0.0;
593  track_TEC = 0.0;
594  track_TECM = 0.0;
595  track_TECP = 0.0;
596  track_TOB = 0.0;
597  track_TIB = 0.0;
598  track_TID = 0.0;
599  track_TIDM = 0.0;
600  track_TIDP = 0.0;
601 
602  // b) for PIXEL hit rate
603  hit_Total = 0.0;
604  hit_PIX = 0.0;
605  hit_BPIX = 0.0;
606  hit_BPIX_layer1 = 0.0;
607  hit_BPIX_layer2 = 0.0;
608  hit_BPIX_layer3 = 0.0;
609  hit_BPIX_layer4 = 0.0;
610  hit_FPIX = 0.0;
611  hit_FPIX_disk1 = 0.0;
612  hit_FPIX_disk2 = 0.0;
613  hit_FPIX_disk3 = 0.0;
614  hit_FPIX_disk1_plus = 0.0;
615  hit_FPIX_disk1_minus = 0.0;
616  hit_FPIX_disk2_plus = 0.0;
617  hit_FPIX_disk2_minus = 0.0;
618  hit_FPIX_disk3_plus = 0.0;
619  hit_FPIX_disk3_minus = 0.0;
620 }
edm::RunNumber_t lastrunnum

◆ ClearInEndRun()

void CosmicRateAnalyzer::ClearInEndRun ( )
private

◆ ClearInEventLoop()

void CosmicRateAnalyzer::ClearInEventLoop ( )
private

Definition at line 251 of file CosmicRateAnalyzer.cc.

References charge, chi2, chi2_ndof, d0, DTtime, dz, eta, nh_BPIX, nh_FPIX, nh_PIXEL, nh_TEC, nh_TIB, nh_TID, nh_TOB, nvh, p, phi, pt, and theta.

Referenced by analyze().

251  {
252  pt.clear();
253  charge.clear();
254  chi2.clear();
255  chi2_ndof.clear();
256  eta.clear();
257  theta.clear();
258  phi.clear();
259  p.clear();
260  d0.clear();
261  dz.clear();
262  nvh.clear();
263  DTtime.clear();
264  nh_PIXEL.clear();
265  nh_BPIX.clear();
266  nh_FPIX.clear();
267  nh_TIB.clear();
268  nh_TOB.clear();
269  nh_TID.clear();
270  nh_TEC.clear();
271 }
std::vector< double > theta
std::vector< double > dz
std::vector< double > pt
std::vector< double > d0
std::vector< double > eta
std::vector< int > nh_BPIX
std::vector< double > charge
std::vector< int > nh_TEC
std::vector< double > DTtime
std::vector< double > nvh
std::vector< int > nh_PIXEL
std::vector< double > phi
std::vector< double > chi2
std::vector< double > p
std::vector< int > nh_FPIX
std::vector< int > nh_TOB
std::vector< double > chi2_ndof
std::vector< int > nh_TIB
std::vector< int > nh_TID

◆ endJob()

void CosmicRateAnalyzer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 578 of file CosmicRateAnalyzer.cc.

References gather_cfg::cout, nTotalEvents, and nTotalTracks.

Referenced by o2olib.O2ORunMgr::executeJob().

578  {
579  std::cout << "Total Events: " << nTotalEvents << std::endl;
580  std::cout << "TotalTracks: " << nTotalTracks << std::endl;
581 }

◆ endRun()

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

Definition at line 624 of file CosmicRateAnalyzer.cc.

References events, hit_BPIX, hit_BPIX_layer1, hit_BPIX_layer2, hit_BPIX_layer3, hit_BPIX_layer4, hit_FPIX, hit_FPIX_disk1, hit_FPIX_disk1_minus, hit_FPIX_disk1_plus, hit_FPIX_disk2, hit_FPIX_disk2_minus, hit_FPIX_disk2_plus, hit_FPIX_disk3, hit_FPIX_disk3_minus, hit_FPIX_disk3_plus, hit_PIX, hit_Total, lastrunnum, lastruntime, ntrk_runnum, number_of_events, number_of_hits_BPIX, number_of_hits_BPIX_layer1, number_of_hits_BPIX_layer2, number_of_hits_BPIX_layer3, number_of_hits_BPIX_layer4, number_of_hits_FPIX, number_of_hits_FPIX_disk1, number_of_hits_FPIX_disk1_minus, number_of_hits_FPIX_disk1_plus, number_of_hits_FPIX_disk2, number_of_hits_FPIX_disk2_minus, number_of_hits_FPIX_disk2_plus, number_of_hits_FPIX_disk3, number_of_hits_FPIX_disk3_minus, number_of_hits_FPIX_disk3_plus, number_of_hits_PIX, number_of_hits_Total, 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, run_time, runnum, track_BPIX, track_FPIX, track_PIXEL, track_TEC, track_TECM, track_TECP, track_TIB, track_TID, track_TIDM, track_TIDP, track_TOB, and treeRun.

624  {
627  runnum = lastrunnum;
628  // a) for Track Rate
641  // b) for PIXEL Hit Rate
659 
660  treeRun->Fill();
661 }
edm::RunNumber_t lastrunnum
edm::RunNumber_t runnum

◆ fillDescriptions()

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

Definition at line 664 of file CosmicRateAnalyzer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.

664  {
666  desc.setComment("Create tuple with all variables required to calculate cosmic event and track rates.");
667  desc.add<edm::InputTag>("tracksInputTag", edm::InputTag("ALCARECOTkAlCosmicsCTF0T"));
668  desc.add<edm::InputTag>("muonsInputTag", edm::InputTag("muons1Leg"));
669  descriptions.add("cosmicRateAnalyzer", desc);
670 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ stampToReal()

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

Definition at line 90 of file CosmicRateAnalyzer.cc.

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

Referenced by analyze().

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

Member Data Documentation

◆ charge

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

Definition at line 186 of file CosmicRateAnalyzer.cc.

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

◆ chi2

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

Definition at line 187 of file CosmicRateAnalyzer.cc.

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

◆ chi2_ndof

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

Definition at line 188 of file CosmicRateAnalyzer.cc.

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

◆ clustercollectionToken_

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

Definition at line 98 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ d0

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

Definition at line 193 of file CosmicRateAnalyzer.cc.

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

◆ DetectorID

unsigned int CosmicRateAnalyzer::DetectorID
private

Definition at line 104 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ DTtime

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

Definition at line 196 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 102 of file CosmicRateAnalyzer.cc.

Referenced by CosmicRateAnalyzer().

◆ hit_BPIX

int CosmicRateAnalyzer::hit_BPIX
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

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

◆ hit_BPIX_layer1

int CosmicRateAnalyzer::hit_BPIX_layer1
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

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

◆ hit_BPIX_layer2

int CosmicRateAnalyzer::hit_BPIX_layer2
private

Definition at line 129 of file CosmicRateAnalyzer.cc.

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

◆ hit_BPIX_layer3

int CosmicRateAnalyzer::hit_BPIX_layer3
private

Definition at line 130 of file CosmicRateAnalyzer.cc.

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

◆ hit_BPIX_layer4

int CosmicRateAnalyzer::hit_BPIX_layer4
private

Definition at line 131 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX

int CosmicRateAnalyzer::hit_FPIX
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk1

int CosmicRateAnalyzer::hit_FPIX_disk1
private

Definition at line 133 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk1_minus

int CosmicRateAnalyzer::hit_FPIX_disk1_minus
private

Definition at line 139 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk1_plus

int CosmicRateAnalyzer::hit_FPIX_disk1_plus
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk2

int CosmicRateAnalyzer::hit_FPIX_disk2
private

Definition at line 134 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk2_minus

int CosmicRateAnalyzer::hit_FPIX_disk2_minus
private

Definition at line 140 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk2_plus

int CosmicRateAnalyzer::hit_FPIX_disk2_plus
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk3

int CosmicRateAnalyzer::hit_FPIX_disk3
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk3_minus

int CosmicRateAnalyzer::hit_FPIX_disk3_minus
private

Definition at line 141 of file CosmicRateAnalyzer.cc.

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

◆ hit_FPIX_disk3_plus

int CosmicRateAnalyzer::hit_FPIX_disk3_plus
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

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

◆ hit_PIX

int CosmicRateAnalyzer::hit_PIX
private

Definition at line 126 of file CosmicRateAnalyzer.cc.

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

◆ hit_Total

int CosmicRateAnalyzer::hit_Total
private

Definition at line 125 of file CosmicRateAnalyzer.cc.

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

◆ lastrunnum

edm::RunNumber_t CosmicRateAnalyzer::lastrunnum
private

Definition at line 100 of file CosmicRateAnalyzer.cc.

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

◆ lastruntime

double CosmicRateAnalyzer::lastruntime
private

Definition at line 101 of file CosmicRateAnalyzer.cc.

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

◆ latencyToken_

const edm::ESGetToken<SiStripLatency, SiStripLatencyRcd> CosmicRateAnalyzer::latencyToken_
private

Definition at line 96 of file CosmicRateAnalyzer.cc.

◆ magField

double CosmicRateAnalyzer::magField
private

Definition at line 101 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ magFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> CosmicRateAnalyzer::magFieldToken_
private

Definition at line 94 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ muonTags_

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

Definition at line 99 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ nh_BPIX

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

Definition at line 198 of file CosmicRateAnalyzer.cc.

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

◆ nh_FPIX

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

Definition at line 199 of file CosmicRateAnalyzer.cc.

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

◆ nh_PIXEL

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

Definition at line 197 of file CosmicRateAnalyzer.cc.

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

◆ nh_TEC

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

Definition at line 203 of file CosmicRateAnalyzer.cc.

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

◆ nh_TIB

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

Definition at line 200 of file CosmicRateAnalyzer.cc.

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

◆ nh_TID

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

Definition at line 202 of file CosmicRateAnalyzer.cc.

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

◆ nh_TOB

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

Definition at line 201 of file CosmicRateAnalyzer.cc.

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

◆ nHits_PIXEL

int CosmicRateAnalyzer::nHits_PIXEL
private

Definition at line 207 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ nTotalEvents

int CosmicRateAnalyzer::nTotalEvents
private

Definition at line 210 of file CosmicRateAnalyzer.cc.

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

◆ nTotalTracks

int CosmicRateAnalyzer::nTotalTracks
private

Definition at line 210 of file CosmicRateAnalyzer.cc.

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

◆ ntrk

int CosmicRateAnalyzer::ntrk
private

Definition at line 144 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ntrk_runnum

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 145 of file CosmicRateAnalyzer.cc.

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

◆ number_of_events

int CosmicRateAnalyzer::number_of_events
private

Definition at line 161 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_BPIX

int CosmicRateAnalyzer::number_of_hits_BPIX
private

Definition at line 168 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_BPIX_layer1

int CosmicRateAnalyzer::number_of_hits_BPIX_layer1
private

Definition at line 169 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_BPIX_layer2

int CosmicRateAnalyzer::number_of_hits_BPIX_layer2
private

Definition at line 170 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_BPIX_layer3

int CosmicRateAnalyzer::number_of_hits_BPIX_layer3
private

Definition at line 171 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_BPIX_layer4

int CosmicRateAnalyzer::number_of_hits_BPIX_layer4
private

Definition at line 172 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX

int CosmicRateAnalyzer::number_of_hits_FPIX
private

Definition at line 173 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk1

int CosmicRateAnalyzer::number_of_hits_FPIX_disk1
private

Definition at line 174 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk1_minus

int CosmicRateAnalyzer::number_of_hits_FPIX_disk1_minus
private

Definition at line 180 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk1_plus

int CosmicRateAnalyzer::number_of_hits_FPIX_disk1_plus
private

Definition at line 177 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk2

int CosmicRateAnalyzer::number_of_hits_FPIX_disk2
private

Definition at line 175 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk2_minus

int CosmicRateAnalyzer::number_of_hits_FPIX_disk2_minus
private

Definition at line 181 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk2_plus

int CosmicRateAnalyzer::number_of_hits_FPIX_disk2_plus
private

Definition at line 178 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk3

int CosmicRateAnalyzer::number_of_hits_FPIX_disk3
private

Definition at line 176 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk3_minus

int CosmicRateAnalyzer::number_of_hits_FPIX_disk3_minus
private

Definition at line 182 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_FPIX_disk3_plus

int CosmicRateAnalyzer::number_of_hits_FPIX_disk3_plus
private

Definition at line 179 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_PIX

int CosmicRateAnalyzer::number_of_hits_PIX
private

Definition at line 167 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_hits_Total

int CosmicRateAnalyzer::number_of_hits_Total
private

Definition at line 166 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 149 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_BPIX

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 152 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_FPIX

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 151 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_PIX

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 150 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TEC

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 153 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TECM

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 155 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TECP

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 154 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIB

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 157 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TID

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 158 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIDM

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 160 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIDP

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 159 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TOB

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 156 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ nvh

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

Definition at line 195 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 163 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ runnum

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 162 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ theta

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

Definition at line 190 of file CosmicRateAnalyzer.cc.

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

◆ topoToken_

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> CosmicRateAnalyzer::topoToken_
private

Definition at line 95 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ track_BPIX

int CosmicRateAnalyzer::track_BPIX
private

Definition at line 112 of file CosmicRateAnalyzer.cc.

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

◆ track_FPIX

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 113 of file CosmicRateAnalyzer.cc.

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

◆ track_PIXEL

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

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

◆ track_TEC

int CosmicRateAnalyzer::track_TEC
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

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

◆ track_TECM

int CosmicRateAnalyzer::track_TECM
private

Definition at line 116 of file CosmicRateAnalyzer.cc.

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

◆ track_TECP

int CosmicRateAnalyzer::track_TECP
private

Definition at line 117 of file CosmicRateAnalyzer.cc.

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

◆ track_TIB

int CosmicRateAnalyzer::track_TIB
private

Definition at line 119 of file CosmicRateAnalyzer.cc.

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

◆ track_TID

int CosmicRateAnalyzer::track_TID
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

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

◆ track_TIDM

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 121 of file CosmicRateAnalyzer.cc.

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

◆ track_TIDP

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 122 of file CosmicRateAnalyzer.cc.

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

◆ track_TOB

int CosmicRateAnalyzer::track_TOB
private

Definition at line 118 of file CosmicRateAnalyzer.cc.

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

◆ trackTags_

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

Definition at line 97 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

◆ treeCluster

TTree* CosmicRateAnalyzer::treeCluster
private

Definition at line 107 of file CosmicRateAnalyzer.cc.

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

◆ treeEvent

TTree* CosmicRateAnalyzer::treeEvent
private

Definition at line 105 of file CosmicRateAnalyzer.cc.

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

◆ treeRun

TTree* CosmicRateAnalyzer::treeRun
private

Definition at line 106 of file CosmicRateAnalyzer.cc.

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

◆ v_ntrk

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

Definition at line 143 of file CosmicRateAnalyzer.cc.

Referenced by analyze().