CMS 3D CMS Logo

CosmicRateAnalyzer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CosmicTrackTool/CosmicRateAnalyzer
4 // Class: CosmicRateAnalyzer
5 //
17 // Originally created: Justyna Magdalena Tomaszewska,,,
18 // Revisited by: Ashutosh Bhardwaj and Kirti Ranjan
19 // Further Developed by: Sumit Keshri (sumit.keshri@cern.ch) & Saumya (saumya.saumya@cern.ch)
20 //
21 // Created: Sat, 30 May 2015 20:14:35 GMT
22 //
23 
24 // system include files
25 #include <memory>
26 
27 // user include files
38 
42 
46 
51 
53 
57 
64 
65 #include <vector>
66 #include <string>
67 #include <iostream>
68 #include <fstream>
69 #include <iomanip>
70 #include <TTree.h>
71 
72 //
73 // class declaration
74 //
75 class CosmicRateAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::SharedResources> {
76 public:
77  explicit CosmicRateAnalyzer(const edm::ParameterSet&);
78  ~CosmicRateAnalyzer() override;
79 
80  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
81 
82 private:
83  void beginJob() override;
84  void analyze(const edm::Event&, const edm::EventSetup&) override;
85  void endJob() override;
86 
87  void beginRun(edm::Run const&, edm::EventSetup const&) override;
88  void endRun(edm::Run const&, edm::EventSetup const&) override;
89 
90  static double stampToReal(edm::Timestamp time) { return time.unixTime() + time.microsecondOffset() * 1e-6; }
91  void ClearInEventLoop();
92  void ClearInEndRun();
93  // ----------member data ---------------------------
103 
104  unsigned int DetectorID;
105  TTree* treeEvent;
106  TTree* treeRun;
107  TTree* treeCluster;
108 
109  int events;
121 
122  std::vector<int> v_ntrk;
123  int ntrk;
125 
140  double run_time;
141  std::vector<double> pt;
142  std::vector<double> charge;
143  std::vector<double> chi2;
144  std::vector<double> chi2_ndof;
145  std::vector<double> eta;
146  std::vector<double> theta;
147  std::vector<double> phi;
148  std::vector<double> p;
149  std::vector<double> d0;
150  std::vector<double> dz;
151  std::vector<double> nvh;
152  std::vector<double> DTtime;
153  std::vector<int> nh_BPIX;
154  std::vector<int> nh_FPIX;
155  std::vector<int> nh_TIB;
156  std::vector<int> nh_TOB;
157  std::vector<int> nh_TID;
158  std::vector<int> nh_TEC;
159 };
160 
161 //
162 // constants, enums and typedefs
163 //
164 
165 //
166 // static data member definitions
167 //
168 
169 //
170 // constructors and destructor
171 //
173  : magFieldToken_(esConsumes()),
174  topoToken_(esConsumes()),
175  latencyToken_(esConsumes()),
176  trackTags_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksInputTag"))),
177  clustercollectionToken_(
178  consumes<edmNew::DetSetVector<SiStripCluster> >(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 }
187 
189  // do anything here that needs to be done at desctruction time
190  // (e.g. close files, deallocate resources etc.)
191 }
192 
193 //
194 // member functions
195 //
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 }
216 
217 // ------------ method called for each event ------------
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
395 
396 // ------------ method called once each job just before starting event loop ------------
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 }
435 
436 // ------------ method called once each job just after ending the event loop ------------
438 
439 // ------------ method called when starting to processes a run ------------
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 }
457 
458 // ------------ method called when ending the processing of a run ------------
459 
463  runnum = lastrunnum;
476  treeRun->Fill();
477 }
478 
479 // ------------ method fills 'descriptions' with the allowed parameters for the module ------------
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 }
487 
488 //define this as a plug-in
CosmicRateAnalyzer::fs
edm::Service< TFileService > fs
Definition: CosmicRateAnalyzer.cc:102
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
TrackerTopology::tidIsZMinusSide
bool tidIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:259
Handle.h
CosmicRateAnalyzer::number_of_tracks_FPIX
int number_of_tracks_FPIX
Definition: CosmicRateAnalyzer.cc:128
EDAnalyzer.h
mps_fire.i
i
Definition: mps_fire.py:428
PixelSubdetector.h
Muon.h
MessageLogger.h
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::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: CosmicRateAnalyzer.cc:440
CosmicRateAnalyzer::events
int events
Definition: CosmicRateAnalyzer.cc:109
ESHandle.h
TrackerTopology::tecIsZMinusSide
bool tecIsZMinusSide(const DetId &id) const
Definition: TrackerTopology.h:262
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< reco::TrackCollection >
CosmicRateAnalyzer::number_of_tracks_TECP
int number_of_tracks_TECP
Definition: CosmicRateAnalyzer.cc:131
edm
HLT enums.
Definition: AlignableModifier.h:19
Muon.h
TrackerTopology
Definition: TrackerTopology.h:16
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89281
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
SiStripDetId.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
CosmicRateAnalyzer::clustercollectionToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
Definition: CosmicRateAnalyzer.cc:98
HLT_FULL_cff.magneticField
magneticField
Definition: HLT_FULL_cff.py:348
CosmicRateAnalyzer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: CosmicRateAnalyzer.cc:480
edm::Handle< reco::TrackCollection >
CosmicRateAnalyzer
Definition: CosmicRateAnalyzer.cc:75
edmNew
Definition: DetSet2RangeMap.h:11
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
MakerMacros.h
TrackerTopology.h
TrackingRecHit.h
Track.h
TrackFwd.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
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
Service.h
MuonFwd.h
reco::MuonCollection
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
CosmicRateAnalyzer::run_time
double run_time
Definition: CosmicRateAnalyzer.cc:140
Run.h
CosmicRateAnalyzer::latencyToken_
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcd > latencyToken_
Definition: CosmicRateAnalyzer.cc:96
IdealMagneticFieldRecord.h
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
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
CosmicRateAnalyzer::track_TEC
int track_TEC
Definition: CosmicRateAnalyzer.cc:113
CosmicRateAnalyzer::endRun
void endRun(edm::Run const &, edm::EventSetup const &) override
Definition: CosmicRateAnalyzer.cc:460
TFileService.h
CosmicRateAnalyzer::chi2_ndof
std::vector< double > chi2_ndof
Definition: CosmicRateAnalyzer.cc:144
CosmicRateAnalyzer::beginJob
void beginJob() override
Definition: CosmicRateAnalyzer.cc:397
CosmicRateAnalyzer::lastruntime
double lastruntime
Definition: CosmicRateAnalyzer.cc:101
edm::ParameterSet
Definition: ParameterSet.h:47
CosmicRateAnalyzer::topoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: CosmicRateAnalyzer.cc:95
SiStripCondDataRecords.h
SiStripCluster.h
Timestamp.h
CosmicRateAnalyzer::track_TIDM
int track_TIDM
Definition: CosmicRateAnalyzer.cc:119
Event.h
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:159
CosmicRateAnalyzer::ClearInEventLoop
void ClearInEventLoop()
Definition: CosmicRateAnalyzer.cc:196
CosmicRateAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CosmicRateAnalyzer.cc:218
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
edm::Service< TFileService >
iEvent
int iEvent
Definition: GenABIO.cc:224
CosmicRateAnalyzer::CosmicRateAnalyzer
CosmicRateAnalyzer(const edm::ParameterSet &)
Definition: CosmicRateAnalyzer.cc:172
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
CosmicRateAnalyzer::~CosmicRateAnalyzer
~CosmicRateAnalyzer() override
Definition: CosmicRateAnalyzer.cc:188
SiStripDetId::TOB
static constexpr auto TOB
Definition: SiStripDetId.h:39
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
CosmicRateAnalyzer::number_of_events
int number_of_events
Definition: CosmicRateAnalyzer.cc:138
DetSetVector.h
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::ESGetToken< MagneticField, IdealMagneticFieldRecord >
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
CosmicRateAnalyzer::magField
double magField
Definition: CosmicRateAnalyzer.cc:101
CosmicRateAnalyzer::ClearInEndRun
void ClearInEndRun()
CosmicRateAnalyzer::number_of_tracks_TOB
int number_of_tracks_TOB
Definition: CosmicRateAnalyzer.cc:133
SiStripDetId::TID
static constexpr auto TID
Definition: SiStripDetId.h:38
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
DetId.h
Frameworkfwd.h
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
CosmicRateAnalyzer::track_FPIX
int track_FPIX
Definition: CosmicRateAnalyzer.cc:111
CosmicRateAnalyzer::pt
std::vector< double > pt
Definition: CosmicRateAnalyzer.cc:141
CosmicRateAnalyzer::chi2
std::vector< double > chi2
Definition: CosmicRateAnalyzer.cc:143
SiStripLatency.h
CosmicRateAnalyzer::nh_BPIX
std::vector< int > nh_BPIX
Definition: CosmicRateAnalyzer.cc:153
CosmicRateAnalyzer::endJob
void endJob() override
Definition: CosmicRateAnalyzer.cc:437
ParameterSet.h
reco::MuonTime::timeAtIpInOut
float timeAtIpInOut
Definition: MuonTime.h:13
CosmicRateAnalyzer::number_of_tracks_PIX
int number_of_tracks_PIX
Definition: CosmicRateAnalyzer.cc:127
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
MagneticField
Definition: MagneticField.h:19
SiStripCluster
Definition: SiStripCluster.h:8
GlobalPoint.h
CosmicRateAnalyzer::charge
std::vector< double > charge
Definition: CosmicRateAnalyzer.cc:142
DetSetVectorNew.h
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