CMS 3D CMS Logo

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

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

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

Public Member Functions

 CosmicRateAnalyzer (const edm::ParameterSet &)
 
 ~CosmicRateAnalyzer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

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

Private Member Functions

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

Static Private Member Functions

static double stampToReal (edm::Timestamp time)
 

Private Attributes

std::vector< double > charge
 
std::vector< double > chi2
 
std::vector< double > chi2_ndof
 
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
 
std::vector< double > d0
 
unsigned int DetectorID
 
std::vector< double > DTtime
 
std::vector< double > dz
 
std::vector< double > eta
 
int events
 
edm::Service< TFileServicefs
 
edm::RunNumber_t lastrunnum
 
double lastruntime
 
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_TEC
 
std::vector< int > nh_TIB
 
std::vector< int > nh_TID
 
std::vector< int > nh_TOB
 
int ntrk
 
int ntrk_runnum
 
int number_of_events
 
int number_of_tracks
 
int number_of_tracks_BPIX
 
int number_of_tracks_FPIX
 
int number_of_tracks_PIX
 
int number_of_tracks_TEC
 
int number_of_tracks_TECM
 
int number_of_tracks_TECP
 
int number_of_tracks_TIB
 
int number_of_tracks_TID
 
int number_of_tracks_TIDM
 
int number_of_tracks_TIDP
 
int number_of_tracks_TOB
 
std::vector< double > nvh
 
std::vector< double > p
 
std::vector< double > phi
 
std::vector< double > pt
 
double run_time
 
edm::RunNumber_t runnum
 
std::vector< double > theta
 
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
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description : This Analyzer creates tuple, having necessary infromation for Cosmic Track 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 172 of file CosmicRateAnalyzer.cc.

176  trackTags_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksInputTag"))),
179  muonTags_(consumes<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("muonsInputTag"))) {
180  //now do what ever initialization is needed
181  //
182  usesResource(TFileService::kSharedResource);
183  treeEvent = fs->make<TTree>("Event", "");
184  treeRun = fs->make<TTree>("Run", "");
185  treeCluster = fs->make<TTree>("Cluster", "");
186 }

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

◆ ~CosmicRateAnalyzer()

CosmicRateAnalyzer::~CosmicRateAnalyzer ( )
override

Definition at line 188 of file CosmicRateAnalyzer.cc.

188  {
189  // do anything here that needs to be done at desctruction time
190  // (e.g. close files, deallocate resources etc.)
191 }

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 218 of file CosmicRateAnalyzer.cc.

218  {
219  using namespace edm;
220 
221  using reco::TrackCollection;
223  iEvent.getByToken(trackTags_, tracks);
224 
225  const TrackerTopology* const tTopo = &iSetup.getData(topoToken_);
227  magField = magneticField->inTesla(GlobalPoint(0, 0, 0)).mag();
228  //const SiStripLatency* apvlat = &iSetup.getData(latencyToken_); // unused (for the moment)
229 
230  edm::Timestamp ts_begin = iEvent.getRun().beginTime();
231  double t_begin = stampToReal(ts_begin);
232  edm::Timestamp ts_end = iEvent.getRun().endTime();
233  double t_end = stampToReal(ts_end);
234 
235  lastruntime = t_end - t_begin;
236  lastrunnum = iEvent.getRun().run();
237 
238  if (!tracks->empty())
239  v_ntrk.push_back(tracks->size());
240 
241  ntrk = 0;
242  for (TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1) {
243  pt.push_back(itTrack1->pt());
244  charge.push_back(itTrack1->charge());
245  chi2.push_back(itTrack1->chi2());
246  chi2_ndof.push_back(itTrack1->normalizedChi2());
247  eta.push_back(itTrack1->eta());
248  theta.push_back(itTrack1->theta());
249  phi.push_back(itTrack1->phi());
250  p.push_back(itTrack1->p());
251  d0.push_back(itTrack1->d0());
252  dz.push_back(itTrack1->dz());
253  nvh.push_back(itTrack1->numberOfValidHits());
254  nh_BPIX.push_back(itTrack1->hitPattern().numberOfValidPixelBarrelHits());
255  nh_FPIX.push_back(itTrack1->hitPattern().numberOfValidPixelEndcapHits());
256  nh_TIB.push_back(itTrack1->hitPattern().numberOfValidStripTIBHits());
257  nh_TOB.push_back(itTrack1->hitPattern().numberOfValidStripTOBHits());
258  nh_TID.push_back(itTrack1->hitPattern().numberOfValidStripTIDHits());
259  nh_TEC.push_back(itTrack1->hitPattern().numberOfValidStripTECHits());
260 
261  int nhitinBPIX = 0;
262  int nhitinFPIX = 0;
263  int nhitinPIXEL = 0;
264  int nhitinTEC = 0;
265  int nhitinTOB = 0;
266  int nhitinTIB = 0;
267  int nhitinTID = 0;
268  int nhitinTECminus = 0;
269  int nhitinTECplus = 0;
270  int nhitinTIDminus = 0;
271  int nhitinTIDplus = 0;
272  int countHit = 0;
273 
274  for (auto const& hit1 : itTrack1->recHits()) {
275  const DetId detId1(hit1->geographicalId());
276  const int subdetId1 = detId1.subdetId();
277  if (!hit1->isValid())
278  continue; // only real hits count as in itTrack1->numberOfValidHits()
279 
281  // Hit information in PixelBarrel //
283  if (PixelSubdetector::PixelBarrel == subdetId1) {
284  ++nhitinBPIX;
285  ++nhitinPIXEL;
286  }
288  // Hit information in PixelEndcap //
290  else if (PixelSubdetector::PixelEndcap == subdetId1) {
291  ++nhitinFPIX;
292  ++nhitinPIXEL;
293  }
295  // Hit information in TEC //
297  else if (SiStripDetId::TEC == subdetId1) {
298  ++nhitinTEC;
299 
300  if (tTopo->tecIsZMinusSide(detId1)) {
301  ++nhitinTECminus;
302  } else {
303  ++nhitinTECplus;
304  }
305  }
307  // Hit information in TOB //
309  else if (SiStripDetId::TOB == subdetId1) {
310  ++nhitinTOB;
311  }
313  // Hit information in TIB //
315  else if (SiStripDetId::TIB == subdetId1) {
316  ++nhitinTIB;
317  }
319  // Hit information in TID //
321  else if (SiStripDetId::TID == subdetId1) {
322  ++nhitinTID;
323 
324  if (tTopo->tidIsZMinusSide(detId1)) {
325  ++nhitinTIDminus;
326  } else {
327  ++nhitinTIDplus;
328  }
329  }
330 
331  countHit++;
332  } // for Loop over Hits
333 
334  if (nhitinBPIX > 0) {
335  track_BPIX++;
336  }
337  if (nhitinFPIX > 0) {
338  track_FPIX++;
339  }
340  if (nhitinPIXEL > 0) {
341  track_PIXEL++;
342  }
343  if (nhitinTEC > 0) {
344  track_TEC++;
345  }
346  if (nhitinTECminus > 0) {
347  track_TECM++;
348  }
349  if (nhitinTECplus > 0) {
350  track_TECP++;
351  }
352  if (nhitinTOB > 0) {
353  track_TOB++;
354  }
355  if (nhitinTIB > 0) {
356  track_TIB++;
357  }
358  if (nhitinTID > 0) {
359  track_TID++;
360  }
361  if (nhitinTIDminus > 0) {
362  track_TIDM++;
363  }
364  if (nhitinTIDplus > 0) {
365  track_TIDP++;
366  }
367 
368  ntrk++;
369  ntrk_runnum++;
370  } // for Loop over TrackCollection
371  events++;
372 
374  iEvent.getByToken(clustercollectionToken_, cluster);
375 
376  for (edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin(); det != cluster->end(); ++det) {
377  DetectorID = (det->detId());
378  treeCluster->Fill();
379  }
380 
382  iEvent.getByToken(muonTags_, muH);
383  const reco::MuonCollection& muonsT0 = *(muH.product());
384  float time = -9999.;
385  for (unsigned int i = 0; i < muonsT0.size(); i++) {
386  //DT time
387  reco::MuonTime mt0 = muonsT0[i].time();
388  time = mt0.timeAtIpInOut;
389  DTtime.push_back(time);
390  }
391  treeEvent->Fill();
393 
394 } //Event Loop

References charge, chi2, chi2_ndof, ClearInEventLoop(), clustercollectionToken_, d0, DetectorID, DTtime, dz, eta, events, edm::EventSetup::getData(), mps_fire::i, iEvent, lastrunnum, lastruntime, magField, magFieldToken_, HLT_FULL_cff::magneticField, muonTags_, nh_BPIX, nh_FPIX, nh_TEC, nh_TIB, nh_TID, nh_TOB, ntrk, ntrk_runnum, nvh, p, phi, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::Handle< T >::product(), pt, stampToReal(), DetId::subdetId(), SiStripDetId::TEC, TrackerTopology::tecIsZMinusSide(), theta, SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidIsZMinusSide(), 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.

◆ beginJob()

void CosmicRateAnalyzer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 397 of file CosmicRateAnalyzer.cc.

397  {
398  treeEvent->Branch("pt", &pt);
399  treeEvent->Branch("charge", &charge);
400  treeEvent->Branch("chi2", &chi2);
401  treeEvent->Branch("chi2_ndof", &chi2_ndof);
402  treeEvent->Branch("eta", &eta);
403  treeEvent->Branch("theta", &theta);
404  treeEvent->Branch("phi", &phi);
405  treeEvent->Branch("p", &p);
406  treeEvent->Branch("d0", &d0);
407  treeEvent->Branch("dz", &dz);
408  treeEvent->Branch("nvh", &nvh);
409  treeEvent->Branch("ntrk", &ntrk);
410  treeEvent->Branch("nHitsBPIX", &nh_BPIX);
411  treeEvent->Branch("nHitsFPIX", &nh_FPIX);
412  treeEvent->Branch("nHitsTIB", &nh_TIB);
413  treeEvent->Branch("nHitsTOB", &nh_TOB);
414  treeEvent->Branch("nHitsTID", &nh_TID);
415  treeEvent->Branch("nHitsTEC", &nh_TEC);
416  treeEvent->Branch("DTtime", &DTtime);
417  treeEvent->Branch("magField", &magField);
418  treeRun->Branch("run_time", &run_time);
419  treeRun->Branch("runnum", &runnum);
420  treeRun->Branch("number_of_events", &number_of_events);
421  treeRun->Branch("number_of_tracks", &number_of_tracks);
422  treeRun->Branch("number_of_tracks_PIX", &number_of_tracks_PIX);
423  treeRun->Branch("number_of_tracks_FPIX", &number_of_tracks_FPIX);
424  treeRun->Branch("number_of_tracks_BPIX", &number_of_tracks_BPIX);
425  treeRun->Branch("number_of_tracks_TID", &number_of_tracks_TID);
426  treeRun->Branch("number_of_tracks_TIDM", &number_of_tracks_TIDM);
427  treeRun->Branch("number_of_tracks_TIDP", &number_of_tracks_TIDP);
428  treeRun->Branch("number_of_tracks_TIB", &number_of_tracks_TIB);
429  treeRun->Branch("number_of_tracks_TEC", &number_of_tracks_TEC);
430  treeRun->Branch("number_of_tracks_TECP", &number_of_tracks_TECP);
431  treeRun->Branch("number_of_tracks_TECM", &number_of_tracks_TECM);
432  treeRun->Branch("number_of_tracks_TOB", &number_of_tracks_TOB);
433  treeCluster->Branch("DetID", &DetectorID);
434 }

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

◆ beginRun()

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

Definition at line 440 of file CosmicRateAnalyzer.cc.

440  {
441  lastruntime = 0.0;
442  lastrunnum = 0.0;
443  ntrk_runnum = 0.0;
444  events = 0.0;
445  track_BPIX = 0.0;
446  track_FPIX = 0.0;
447  track_PIXEL = 0.0;
448  track_TEC = 0.0;
449  track_TECM = 0.0;
450  track_TECP = 0.0;
451  track_TOB = 0.0;
452  track_TIB = 0.0;
453  track_TID = 0.0;
454  track_TIDM = 0.0;
455  track_TIDP = 0.0;
456 }

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

◆ ClearInEndRun()

void CosmicRateAnalyzer::ClearInEndRun ( )
private

◆ ClearInEventLoop()

void CosmicRateAnalyzer::ClearInEventLoop ( )
private

Definition at line 196 of file CosmicRateAnalyzer.cc.

196  {
197  pt.clear();
198  charge.clear();
199  chi2.clear();
200  chi2_ndof.clear();
201  eta.clear();
202  theta.clear();
203  phi.clear();
204  p.clear();
205  d0.clear();
206  dz.clear();
207  nvh.clear();
208  DTtime.clear();
209  nh_BPIX.clear();
210  nh_FPIX.clear();
211  nh_TIB.clear();
212  nh_TOB.clear();
213  nh_TID.clear();
214  nh_TEC.clear();
215 }

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

Referenced by analyze().

◆ endJob()

void CosmicRateAnalyzer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 437 of file CosmicRateAnalyzer.cc.

437 {}

Referenced by o2olib.O2ORunMgr::executeJob().

◆ endRun()

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

◆ fillDescriptions()

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

Definition at line 480 of file CosmicRateAnalyzer.cc.

480  {
482  desc.setComment("Create tuple with all variables required to calculate cosmic event and track rates.");
483  desc.add<edm::InputTag>("tracksInputTag", edm::InputTag("ALCARECOTkAlCosmicsCTF0T"));
484  desc.add<edm::InputTag>("muonsInputTag", edm::InputTag("muons1Leg"));
485  descriptions.add("cosmicRateAnalyzer", desc);
486 }

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

◆ stampToReal()

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

Definition at line 90 of file CosmicRateAnalyzer.cc.

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

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

Referenced by analyze().

Member Data Documentation

◆ charge

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

Definition at line 142 of file CosmicRateAnalyzer.cc.

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

◆ chi2

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

Definition at line 143 of file CosmicRateAnalyzer.cc.

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

◆ chi2_ndof

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

Definition at line 144 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 149 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 152 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().

◆ 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 153 of file CosmicRateAnalyzer.cc.

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

◆ nh_FPIX

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

Definition at line 154 of file CosmicRateAnalyzer.cc.

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

◆ nh_TEC

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

Definition at line 158 of file CosmicRateAnalyzer.cc.

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

◆ nh_TIB

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

Definition at line 155 of file CosmicRateAnalyzer.cc.

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

◆ nh_TID

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

Definition at line 157 of file CosmicRateAnalyzer.cc.

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

◆ nh_TOB

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

Definition at line 156 of file CosmicRateAnalyzer.cc.

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

◆ ntrk

int CosmicRateAnalyzer::ntrk
private

Definition at line 123 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ntrk_runnum

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 124 of file CosmicRateAnalyzer.cc.

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

◆ number_of_events

int CosmicRateAnalyzer::number_of_events
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 126 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_BPIX

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 129 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_FPIX

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_PIX

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TEC

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 130 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TECM

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TECP

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 131 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIB

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 134 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TID

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIDM

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TIDP

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ number_of_tracks_TOB

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 133 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ nvh

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

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

Referenced by beginJob(), and endRun().

◆ runnum

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 139 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

◆ theta

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

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

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

◆ track_FPIX

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 111 of file CosmicRateAnalyzer.cc.

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

◆ track_PIXEL

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 112 of file CosmicRateAnalyzer.cc.

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

◆ track_TEC

int CosmicRateAnalyzer::track_TEC
private

Definition at line 113 of file CosmicRateAnalyzer.cc.

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

◆ track_TECM

int CosmicRateAnalyzer::track_TECM
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

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

◆ track_TECP

int CosmicRateAnalyzer::track_TECP
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

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

◆ track_TIB

int CosmicRateAnalyzer::track_TIB
private

Definition at line 117 of file CosmicRateAnalyzer.cc.

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

◆ track_TID

int CosmicRateAnalyzer::track_TID
private

Definition at line 118 of file CosmicRateAnalyzer.cc.

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

◆ track_TIDM

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 119 of file CosmicRateAnalyzer.cc.

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

◆ track_TIDP

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

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

◆ track_TOB

int CosmicRateAnalyzer::track_TOB
private

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

Referenced by analyze().

CosmicRateAnalyzer::fs
edm::Service< TFileService > fs
Definition: CosmicRateAnalyzer.cc:102
TrackerTopology::tidIsZMinusSide
bool tidIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:259
CosmicRateAnalyzer::number_of_tracks_FPIX
int number_of_tracks_FPIX
Definition: CosmicRateAnalyzer.cc:128
mps_fire.i
i
Definition: mps_fire.py:428
CosmicRateAnalyzer::magFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: CosmicRateAnalyzer.cc:94
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
edm::Handle::product
T const * product() const
Definition: Handle.h:70
CosmicRateAnalyzer::events
int events
Definition: CosmicRateAnalyzer.cc:109
TrackerTopology::tecIsZMinusSide
bool tecIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:262
CosmicRateAnalyzer::number_of_tracks_TECP
int number_of_tracks_TECP
Definition: CosmicRateAnalyzer.cc:131
edm
HLT enums.
Definition: AlignableModifier.h:19
TrackerTopology
Definition: TrackerTopology.h:16
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
CosmicRateAnalyzer::DTtime
std::vector< double > DTtime
Definition: CosmicRateAnalyzer.cc:152
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
CosmicRateAnalyzer::ntrk
int ntrk
Definition: CosmicRateAnalyzer.cc:123
edmNew::DetSetVector::const_iterator
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Definition: DetSetVectorNew.h:197
CosmicRateAnalyzer::nvh
std::vector< double > nvh
Definition: CosmicRateAnalyzer.cc:151
CosmicRateAnalyzer::track_TIDP
int track_TIDP
Definition: CosmicRateAnalyzer.cc:120
CosmicRateAnalyzer::number_of_tracks_TIDP
int number_of_tracks_TIDP
Definition: CosmicRateAnalyzer.cc:136
protons_cff.time
time
Definition: protons_cff.py:39
CosmicRateAnalyzer::track_PIXEL
int track_PIXEL
Definition: CosmicRateAnalyzer.cc:112
CosmicRateAnalyzer::treeCluster
TTree * treeCluster
Definition: CosmicRateAnalyzer.cc:107
CosmicRateAnalyzer::clustercollectionToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
Definition: CosmicRateAnalyzer.cc:98
HLT_FULL_cff.magneticField
magneticField
Definition: HLT_FULL_cff.py:348
edm::Handle< reco::TrackCollection >
CosmicRateAnalyzer::phi
std::vector< double > phi
Definition: CosmicRateAnalyzer.cc:147
reco::MuonTime
Definition: MuonTime.h:5
CosmicRateAnalyzer::v_ntrk
std::vector< int > v_ntrk
Definition: CosmicRateAnalyzer.cc:122
CosmicRateAnalyzer::track_BPIX
int track_BPIX
Definition: CosmicRateAnalyzer.cc:110
CosmicRateAnalyzer::treeRun
TTree * treeRun
Definition: CosmicRateAnalyzer.cc:106
CosmicRateAnalyzer::number_of_tracks_TECM
int number_of_tracks_TECM
Definition: CosmicRateAnalyzer.cc:132
CosmicRateAnalyzer::track_TOB
int track_TOB
Definition: CosmicRateAnalyzer.cc:116
DetId
Definition: DetId.h:17
CosmicRateAnalyzer::p
std::vector< double > p
Definition: CosmicRateAnalyzer.cc:148
CosmicRateAnalyzer::number_of_tracks_BPIX
int number_of_tracks_BPIX
Definition: CosmicRateAnalyzer.cc:129
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
CosmicRateAnalyzer::eta
std::vector< double > eta
Definition: CosmicRateAnalyzer.cc:145
reco::MuonCollection
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
CosmicRateAnalyzer::run_time
double run_time
Definition: CosmicRateAnalyzer.cc:140
CosmicRateAnalyzer::latencyToken_
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcd > latencyToken_
Definition: CosmicRateAnalyzer.cc:96
CosmicRateAnalyzer::nh_FPIX
std::vector< int > nh_FPIX
Definition: CosmicRateAnalyzer.cc:154
CosmicRateAnalyzer::nh_TOB
std::vector< int > nh_TOB
Definition: CosmicRateAnalyzer.cc:156
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
CosmicRateAnalyzer::number_of_tracks_TID
int number_of_tracks_TID
Definition: CosmicRateAnalyzer.cc:135
CosmicRateAnalyzer::number_of_tracks_TEC
int number_of_tracks_TEC
Definition: CosmicRateAnalyzer.cc:130
SiStripDetId::TEC
static constexpr auto TEC
Definition: SiStripDetId.h:40
CosmicRateAnalyzer::lastrunnum
edm::RunNumber_t lastrunnum
Definition: CosmicRateAnalyzer.cc:100
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
CosmicRateAnalyzer::number_of_tracks_TIB
int number_of_tracks_TIB
Definition: CosmicRateAnalyzer.cc:134
CosmicRateAnalyzer::track_TEC
int track_TEC
Definition: CosmicRateAnalyzer.cc:113
CosmicRateAnalyzer::chi2_ndof
std::vector< double > chi2_ndof
Definition: CosmicRateAnalyzer.cc:144
CosmicRateAnalyzer::lastruntime
double lastruntime
Definition: CosmicRateAnalyzer.cc:101
CosmicRateAnalyzer::topoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: CosmicRateAnalyzer.cc:95
CosmicRateAnalyzer::track_TIDM
int track_TIDM
Definition: CosmicRateAnalyzer.cc:119
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
CosmicRateAnalyzer::ClearInEventLoop
void ClearInEventLoop()
Definition: CosmicRateAnalyzer.cc:196
CosmicRateAnalyzer::track_TIB
int track_TIB
Definition: CosmicRateAnalyzer.cc:117
CosmicRateAnalyzer::track_TECM
int track_TECM
Definition: CosmicRateAnalyzer.cc:114
CosmicRateAnalyzer::nh_TEC
std::vector< int > nh_TEC
Definition: CosmicRateAnalyzer.cc:158
iEvent
int iEvent
Definition: GenABIO.cc:224
CosmicRateAnalyzer::track_TECP
int track_TECP
Definition: CosmicRateAnalyzer.cc:115
CosmicRateAnalyzer::stampToReal
static double stampToReal(edm::Timestamp time)
Definition: CosmicRateAnalyzer.cc:90
CosmicRateAnalyzer::number_of_tracks_TIDM
int number_of_tracks_TIDM
Definition: CosmicRateAnalyzer.cc:137
SiStripDetId::TOB
static constexpr auto TOB
Definition: SiStripDetId.h:39
CosmicRateAnalyzer::number_of_events
int number_of_events
Definition: CosmicRateAnalyzer.cc:138
CosmicRateAnalyzer::ntrk_runnum
int ntrk_runnum
Definition: CosmicRateAnalyzer.cc:124
CosmicRateAnalyzer::nh_TIB
std::vector< int > nh_TIB
Definition: CosmicRateAnalyzer.cc:155
CosmicRateAnalyzer::nh_TID
std::vector< int > nh_TID
Definition: CosmicRateAnalyzer.cc:157
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
CosmicRateAnalyzer::magField
double magField
Definition: CosmicRateAnalyzer.cc:101
CosmicRateAnalyzer::number_of_tracks_TOB
int number_of_tracks_TOB
Definition: CosmicRateAnalyzer.cc:133
SiStripDetId::TID
static constexpr auto TID
Definition: SiStripDetId.h:38
edmNew::DetSetVector
Definition: DetSetNew.h:13
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
CosmicRateAnalyzer::DetectorID
unsigned int DetectorID
Definition: CosmicRateAnalyzer.cc:104
CosmicRateAnalyzer::theta
std::vector< double > theta
Definition: CosmicRateAnalyzer.cc:146
CosmicRateAnalyzer::dz
std::vector< double > dz
Definition: CosmicRateAnalyzer.cc:150
CosmicRateAnalyzer::number_of_tracks
int number_of_tracks
Definition: CosmicRateAnalyzer.cc:126
CosmicRateAnalyzer::muonTags_
edm::EDGetTokenT< reco::MuonCollection > muonTags_
Definition: CosmicRateAnalyzer.cc:99
CosmicRateAnalyzer::trackTags_
edm::EDGetTokenT< reco::TrackCollection > trackTags_
Definition: CosmicRateAnalyzer.cc:97
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
SiStripDetId::TIB
static constexpr auto TIB
Definition: SiStripDetId.h:37
CosmicRateAnalyzer::d0
std::vector< double > d0
Definition: CosmicRateAnalyzer.cc:149
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CosmicRateAnalyzer::track_FPIX
int track_FPIX
Definition: CosmicRateAnalyzer.cc:111
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:202
CosmicRateAnalyzer::pt
std::vector< double > pt
Definition: CosmicRateAnalyzer.cc:141
CosmicRateAnalyzer::chi2
std::vector< double > chi2
Definition: CosmicRateAnalyzer.cc:143
CosmicRateAnalyzer::nh_BPIX
std::vector< int > nh_BPIX
Definition: CosmicRateAnalyzer.cc:153
reco::MuonTime::timeAtIpInOut
float timeAtIpInOut
Definition: MuonTime.h:13
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:155
CosmicRateAnalyzer::number_of_tracks_PIX
int number_of_tracks_PIX
Definition: CosmicRateAnalyzer.cc:127
MagneticField
Definition: MagneticField.h:19
CosmicRateAnalyzer::charge
std::vector< double > charge
Definition: CosmicRateAnalyzer.cc:142
edm::InputTag
Definition: InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
CosmicRateAnalyzer::treeEvent
TTree * treeEvent
Definition: CosmicRateAnalyzer.cc:105
CosmicRateAnalyzer::runnum
edm::RunNumber_t runnum
Definition: CosmicRateAnalyzer.cc:139
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
CosmicRateAnalyzer::track_TID
int track_TID
Definition: CosmicRateAnalyzer.cc:118
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::Timestamp
Definition: Timestamp.h:30