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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
bool registeredToConsumeMany (TypeID const &, 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::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
 
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 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)
 
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:303
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_2022v12_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(), protons_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, 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  int countHit = 0;
331 
332  for (auto const& hit1 : itTrack1->recHits()) {
333  const DetId detId1(hit1->geographicalId());
334  const int subdetId1 = detId1.subdetId();
335  uint32_t detid_db = detId1.rawId();
336  if (!hit1->isValid())
337  continue; // only real hits count as in itTrack1->numberOfValidHits()
338  hit_Total++;
339 
341  // Hit information in PixelBarrel //
343  if (PixelSubdetector::PixelBarrel == subdetId1) {
344  ++nhitinBPIX; //for cosmic track rate evaluation
345  ++nhitinPIXEL; //for cosmic track rate evaluation
346  ++nHits_PIXEL; // for PIXEL hits per track in Event Tree
347  ++hit_PIX; // for cosmic PIXEL hit rates per layer
348  ++hit_BPIX; // for cosmic PIXEL hit rates per layer
349 
350  int BPIX_layer = (tTopo->pxbLayer(detid_db));
351  if (BPIX_layer == 1) {
352  ++hit_BPIX_layer1; // for cosmic PIXEL hit rates per layer
353  } else if (BPIX_layer == 2) {
354  ++hit_BPIX_layer2; // for cosmic PIXEL hit rates per layer
355  } else if (BPIX_layer == 3) {
356  ++hit_BPIX_layer3; // for cosmic PIXEL hit rates per layer
357  } else if (BPIX_layer == 4) {
358  ++hit_BPIX_layer4; // for cosmic PIXEL hit rates per layer
359  } else {
360  std::cout << "CAUTION : Check Phase! BPIX layer not in {1,2,3}!" << std::endl;
361  std::cout << "Layer is : " << BPIX_layer << std::endl;
362  }
363 
364  }
366  // Hit information in PixelEndcap //
368  else if (PixelSubdetector::PixelEndcap == subdetId1) {
369  ++nhitinFPIX;
370  ++nhitinPIXEL;
371 
372  ++nHits_PIXEL;
373  ++hit_PIX; // for cosmic PIXEL hit rates per layer
374  ++hit_FPIX; // for cosmic PIXEL hit rates per layer
375 
376  int FPIX_side = (tTopo->pxfSide(detid_db));
377  int FPIX_disk = (tTopo->pxfDisk(detid_db));
378 
379  if (FPIX_disk == 1) {
380  ++hit_FPIX_disk1; // for cosmic PIXEL hit rates per layer
381  } else if (FPIX_disk == 2) {
382  ++hit_FPIX_disk2; // for cosmic PIXEL hit rates per layer
383  } else if (FPIX_disk == 3) {
384  ++hit_FPIX_disk3; // for cosmic PIXEL hit rates per layer
385  } else {
386  std::cout << "CAUTION : Check Phase! FPIX disk not in {1,2}!" << std::endl;
387  std::cout << "Disk is : " << FPIX_disk << std::endl;
388  }
389 
390  if (FPIX_disk == 1 && FPIX_side == 1) {
391  ++hit_FPIX_disk1_minus; // for cosmic PIXEL hit rates per layer
392  } else if (FPIX_disk == 1 && FPIX_side == 2) {
393  ++hit_FPIX_disk1_plus; // for cosmic PIXEL hit rates per layer
394  } else if (FPIX_disk == 2 && FPIX_side == 1) {
395  ++hit_FPIX_disk2_minus; // for cosmic PIXEL hit rates per layer
396  } else if (FPIX_disk == 2 && FPIX_side == 2) {
397  ++hit_FPIX_disk2_plus; // for cosmic PIXEL hit rates per layer
398  } else if (FPIX_disk == 3 && FPIX_side == 1) {
399  ++hit_FPIX_disk3_minus; // for cosmic PIXEL hit rates per layer
400  } else if (FPIX_disk == 3 && FPIX_side == 2) {
401  ++hit_FPIX_disk3_plus; // for cosmic PIXEL hit rates per layer
402  } else {
403  std::cout << "CAUTION : FPIX side not in {1,2}!" << std::endl;
404  }
405 
406  }
408  // Hit information in TEC //
410  else if (SiStripDetId::TEC == subdetId1) {
411  ++nhitinTEC;
412 
413  if (tTopo->tecIsZMinusSide(detId1)) {
414  ++nhitinTECminus;
415  } else {
416  ++nhitinTECplus;
417  }
418  }
420  // Hit information in TOB //
422  else if (SiStripDetId::TOB == subdetId1) {
423  ++nhitinTOB;
424  }
426  // Hit information in TIB //
428  else if (SiStripDetId::TIB == subdetId1) {
429  ++nhitinTIB;
430  }
432  // Hit information in TID //
434  else if (SiStripDetId::TID == subdetId1) {
435  ++nhitinTID;
436 
437  if (tTopo->tidIsZMinusSide(detId1)) {
438  ++nhitinTIDminus;
439  } else {
440  ++nhitinTIDplus;
441  }
442  }
443 
444  countHit++;
445  } // for Loop over Hits
446 
447  nh_PIXEL.push_back(nHits_PIXEL);
448 
449  if (nhitinBPIX > 0) {
450  track_BPIX++;
451  }
452  if (nhitinFPIX > 0) {
453  track_FPIX++;
454  }
455  if (nhitinPIXEL > 0) {
456  track_PIXEL++;
457  }
458  if (nhitinTEC > 0) {
459  track_TEC++;
460  }
461  if (nhitinTECminus > 0) {
462  track_TECM++;
463  }
464  if (nhitinTECplus > 0) {
465  track_TECP++;
466  }
467  if (nhitinTOB > 0) {
468  track_TOB++;
469  }
470  if (nhitinTIB > 0) {
471  track_TIB++;
472  }
473  if (nhitinTID > 0) {
474  track_TID++;
475  }
476  if (nhitinTIDminus > 0) {
477  track_TIDM++;
478  }
479  if (nhitinTIDplus > 0) {
480  track_TIDP++;
481  }
482 
483  ntrk++;
484  ntrk_runnum++;
485  nTotalTracks++;
486  } // for Loop over TrackCollection
487  events++;
488 
490  iEvent.getByToken(clustercollectionToken_, cluster);
491 
492  for (edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin(); det != cluster->end(); ++det) {
493  DetectorID = (det->detId());
494  treeCluster->Fill();
495  }
496 
498  iEvent.getByToken(muonTags_, muH);
499  const reco::MuonCollection& muonsT0 = *(muH.product());
500  float time = -9999.;
501  for (unsigned int i = 0; i < muonsT0.size(); i++) {
502  //DT time
503  reco::MuonTime mt0 = muonsT0[i].time();
504  time = mt0.timeAtIpInOut;
505  DTtime.push_back(time);
506  }
507 
508  treeEvent->Fill();
510  nTotalEvents++;
511 
512 } //Event Loop
std::vector< double > theta
std::vector< double > dz
unsigned int pxbLayer(const DetId &id) const
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
bool getData(T &iHolder) const
Definition: EventSetup.h:122
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
auto const & tracks
cannot be loose
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 515 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.

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

586  {
587  lastruntime = 0.0;
588  lastrunnum = 0.0;
589  ntrk_runnum = 0.0;
590  events = 0.0;
591  // a) for Track rate
592  track_BPIX = 0.0;
593  track_FPIX = 0.0;
594  track_PIXEL = 0.0;
595  track_TEC = 0.0;
596  track_TECM = 0.0;
597  track_TECP = 0.0;
598  track_TOB = 0.0;
599  track_TIB = 0.0;
600  track_TID = 0.0;
601  track_TIDM = 0.0;
602  track_TIDP = 0.0;
603 
604  // b) for PIXEL hit rate
605  hit_Total = 0.0;
606  hit_PIX = 0.0;
607  hit_BPIX = 0.0;
608  hit_BPIX_layer1 = 0.0;
609  hit_BPIX_layer2 = 0.0;
610  hit_BPIX_layer3 = 0.0;
611  hit_BPIX_layer4 = 0.0;
612  hit_FPIX = 0.0;
613  hit_FPIX_disk1 = 0.0;
614  hit_FPIX_disk2 = 0.0;
615  hit_FPIX_disk3 = 0.0;
616  hit_FPIX_disk1_plus = 0.0;
617  hit_FPIX_disk1_minus = 0.0;
618  hit_FPIX_disk2_plus = 0.0;
619  hit_FPIX_disk2_minus = 0.0;
620  hit_FPIX_disk3_plus = 0.0;
621  hit_FPIX_disk3_minus = 0.0;
622 }
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 580 of file CosmicRateAnalyzer.cc.

References gather_cfg::cout, nTotalEvents, and nTotalTracks.

Referenced by o2olib.O2ORunMgr::executeJob().

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

◆ endRun()

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

Definition at line 626 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.

626  {
629  runnum = lastrunnum;
630  // a) for Track Rate
643  // b) for PIXEL Hit Rate
661 
662  treeRun->Fill();
663 }
edm::RunNumber_t lastrunnum
edm::RunNumber_t runnum

◆ fillDescriptions()

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

Definition at line 666 of file CosmicRateAnalyzer.cc.

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

666  {
668  desc.setComment("Create tuple with all variables required to calculate cosmic event and track rates.");
669  desc.add<edm::InputTag>("tracksInputTag", edm::InputTag("ALCARECOTkAlCosmicsCTF0T"));
670  desc.add<edm::InputTag>("muonsInputTag", edm::InputTag("muons1Leg"));
671  descriptions.add("cosmicRateAnalyzer", desc);
672 }
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 protons_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().