CMS 3D CMS Logo

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

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

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

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

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

Static Private Member Functions

static double stampToReal (edm::Timestamp time)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
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 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)
 

Detailed Description

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

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

Definition at line 79 of file CosmicRateAnalyzer.cc.

Constructor & Destructor Documentation

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

Definition at line 171 of file CosmicRateAnalyzer.cc.

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

171  :
172  trackTags_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksInputTag"))),
174  muonTags_(consumes<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("muonsInputTag")))
175 {
176  //now do what ever initialization is needed
177  //
178  usesResource(TFileService::kSharedResource);
179  treeEvent = fs->make<TTree>("Event","");
180  treeRun = fs->make<TTree>("Run","");
181  treeCluster = fs->make<TTree>("Cluster","");
182 
183 }
static const std::string kSharedResource
Definition: TFileService.h:76
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > trackTags_
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< reco::MuonCollection > muonTags_
edm::Service< TFileService > fs
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
CosmicRateAnalyzer::~CosmicRateAnalyzer ( )
override

Definition at line 186 of file CosmicRateAnalyzer.cc.

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

Member Function Documentation

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

Definition at line 217 of file CosmicRateAnalyzer.cc.

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

218 {
219  using namespace edm;
220 
221  using reco::TrackCollection;
223  iEvent.getByToken(trackTags_, tracks);
224 
226  iSetup.get<IdealMagneticFieldRecord>().get(magfield);
227 
229  iSetup.get<TrackerTopologyRcd>().get(tTopo);
230 
231  edm::Timestamp ts_begin = iEvent.getRun().beginTime();
232  double t_begin = stampToReal(ts_begin);
233  edm::Timestamp ts_end = iEvent.getRun().endTime();
234  double t_end = stampToReal(ts_end);
235 
236  lastruntime = t_end - t_begin;
237  lastrunnum = iEvent.getRun().run();
238 
240  iSetup.get<SiStripLatencyRcd>().get(apvlat);
241 
242  if (!tracks->empty()) v_ntrk.push_back(tracks->size());
243 
244  ntrk = 0;
245  for(TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1)
246  {
247  pt .push_back(itTrack1->pt());
248  charge .push_back(itTrack1->charge());
249  chi2 .push_back(itTrack1->chi2());
250  chi2_ndof .push_back(itTrack1->normalizedChi2());
251  eta .push_back(itTrack1->eta());
252  theta .push_back(itTrack1->theta());
253  phi .push_back(itTrack1->phi());
254  p .push_back(itTrack1->p());
255  d0 .push_back(itTrack1->d0());
256  dz .push_back(itTrack1->dz());
257  nvh .push_back(itTrack1->numberOfValidHits());
258 
259  int nhitinBPIX = 0;
260  int nhitinFPIX = 0;
261  int nhitinPIXEL = 0;
262  int nhitinTEC = 0;
263  int nhitinTOB = 0;
264  int nhitinTIB = 0;
265  int nhitinTID = 0;
266  int nhitinTECminus= 0;
267  int nhitinTECplus = 0;
268  int nhitinTIDminus= 0;
269  int nhitinTIDplus = 0;
270  int countHit = 0;
271 
272  for(trackingRecHit_iterator iHit1 = itTrack1->recHitsBegin(); iHit1 != itTrack1->recHitsEnd(); ++iHit1)
273  {
274 
275  const DetId detId1((*iHit1)->geographicalId());
276  const int subdetId1 = detId1.subdetId();
277  if (!(*iHit1)->isValid()) continue; // only real hits count as in itTrack1->numberOfValidHits()
278 
280 // Hit information in PixelBarrel //
282  if (PixelSubdetector::PixelBarrel == subdetId1)
283  {
284  ++nhitinBPIX; ++nhitinPIXEL;
285  PixelBarrelName pxbId1(detId1);
286  }
288 // Hit information in PixelEndcap //
290  else if (PixelSubdetector::PixelEndcap == subdetId1)
291  {
292  ++nhitinFPIX; ++nhitinPIXEL;
293  }
295 // Hit information in TEC //
297  else if (SiStripDetId::TEC == subdetId1)
298  {
299  ++nhitinTEC;
300 
301  if (tTopo->tecIsZMinusSide(detId1))
302  {
303  ++nhitinTECminus;
304  }
305  else
306  {
307  ++nhitinTECplus;
308  }
309  }
311 // Hit information in TOB //
313  else if (SiStripDetId::TOB == subdetId1)
314  {
315  ++nhitinTOB;
316  }
318 // Hit information in TIB //
320  else if (SiStripDetId::TIB == subdetId1)
321  {
322  ++nhitinTIB;
323  }
325 // Hit information in TID //
327  else if (SiStripDetId::TID == subdetId1)
328  {
329  ++nhitinTID;
330 
331  if (tTopo->tidIsZMinusSide(detId1))
332  {
333  ++nhitinTIDminus;
334  }
335  else
336  {
337  ++nhitinTIDplus;
338  }
339  }
340 
341  countHit++;
342  } // for Loop over Hits
343 
344  if (nhitinBPIX > 0 ) {track_BPIX++ ;}
345  if (nhitinFPIX > 0 ) {track_FPIX++ ;}
346  if (nhitinPIXEL > 0 ) {track_PIXEL++ ;}
347  if (nhitinTEC > 0 ) {track_TEC++ ;}
348  if (nhitinTECminus > 0 ) {track_TECM++ ;}
349  if (nhitinTECplus > 0 ) {track_TECP++ ;}
350  if (nhitinTOB > 0 ) {track_TOB++ ;}
351  if (nhitinTIB > 0 ) {track_TIB++ ;}
352  if (nhitinTID > 0 ) {track_TID++ ;}
353  if (nhitinTIDminus > 0 ) {track_TIDM++ ;}
354  if (nhitinTIDplus > 0 ) {track_TIDP++ ;}
355 
356  ntrk++;
357  ntrk_runnum++;
358  } // for Loop over TrackCollection
359  events++;
360 
362  iEvent.getByToken(clustercollectionToken_,cluster);
363 
364  for(edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin();det!=cluster->end();++det)
365  {
366  DetectorID = (det->detId());
367  treeCluster->Fill();
368  }
369 
371  iEvent.getByToken(muonTags_, muH);
372  const reco::MuonCollection& muonsT0 = *(muH.product());
373  float time = -9999.;
374  for (unsigned int i=0; i<muonsT0.size(); i++)
375  {
376  //DT time
377  reco::MuonTime mt0 = muonsT0[i].time();
378  time = mt0.timeAtIpInOut;
379  DTtime.push_back(time);
380  }
381  treeEvent ->Fill();
383 
384 } //Event Loop
std::vector< double > theta
std::vector< double > dz
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Timestamp const & endTime() const
Definition: RunBase.h:42
RunNumber_t run() const
Definition: RunBase.h:40
edm::EDGetTokenT< reco::TrackCollection > trackTags_
std::vector< double > pt
std::vector< double > d0
std::vector< double > eta
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
std::vector< double > charge
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::RunNumber_t lastrunnum
Run const & getRun() const
Definition: Event.cc:114
bool tecIsZMinusSide(const DetId &id) const
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
bool tidIsZMinusSide(const DetId &id) const
std::vector< double > DTtime
std::vector< double > nvh
edm::EDGetTokenT< reco::MuonCollection > muonTags_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
std::vector< double > phi
std::vector< double > chi2
std::vector< int > v_ntrk
std::vector< double > p
Definition: DetId.h:18
T const * product() const
Definition: Handle.h:81
Timestamp const & beginTime() const
Definition: RunBase.h:41
HLT enums.
std::vector< double > chi2_ndof
T get() const
Definition: EventSetup.h:63
static double stampToReal(edm::Timestamp time)
float timeAtIpInOut
Definition: MuonTime.h:14
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
void CosmicRateAnalyzer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 388 of file CosmicRateAnalyzer.cc.

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

389 {
390  treeEvent ->Branch("pt",&pt);
391  treeEvent ->Branch("charge",&charge);
392  treeEvent ->Branch("chi2",&chi2);
393  treeEvent ->Branch("chi2_ndof",&chi2_ndof);
394  treeEvent ->Branch("eta",&eta);
395  treeEvent ->Branch("theta",&theta);
396  treeEvent ->Branch("phi",&phi);
397  treeEvent ->Branch("p",&p);
398  treeEvent ->Branch("d0",&d0);
399  treeEvent ->Branch("dz",&dz);
400  treeEvent ->Branch("nvh",&nvh);
401  treeEvent ->Branch("ntrk",&ntrk);
402  treeEvent ->Branch("DTtime",&DTtime);
403  treeRun ->Branch("run_time",&run_time);
404  treeRun ->Branch("runnum",&runnum);
405  treeRun ->Branch("number_of_events",&number_of_events);
406  treeRun ->Branch("number_of_tracks",&number_of_tracks);
407  treeRun ->Branch("number_of_tracks_PIX",&number_of_tracks_PIX);
408  treeRun ->Branch("number_of_tracks_FPIX",&number_of_tracks_FPIX);
409  treeRun ->Branch("number_of_tracks_BPIX",&number_of_tracks_BPIX);
410  treeRun ->Branch("number_of_tracks_TID",&number_of_tracks_TID);
411  treeRun ->Branch("number_of_tracks_TIDM",&number_of_tracks_TIDM);
412  treeRun ->Branch("number_of_tracks_TIDP",&number_of_tracks_TIDP);
413  treeRun ->Branch("number_of_tracks_TIB",&number_of_tracks_TIB);
414  treeRun ->Branch("number_of_tracks_TEC",&number_of_tracks_TEC);
415  treeRun ->Branch("number_of_tracks_TECP",&number_of_tracks_TECP);
416  treeRun ->Branch("number_of_tracks_TECM",&number_of_tracks_TECM);
417  treeRun ->Branch("number_of_tracks_TOB",&number_of_tracks_TOB);
418  treeCluster ->Branch("DetID",&DetectorID);
419 
420 }
std::vector< double > theta
std::vector< double > dz
std::vector< double > pt
std::vector< double > d0
std::vector< double > eta
std::vector< double > charge
std::vector< double > DTtime
std::vector< double > nvh
std::vector< double > phi
std::vector< double > chi2
std::vector< double > p
edm::RunNumber_t runnum
std::vector< double > chi2_ndof
void CosmicRateAnalyzer::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivate

Definition at line 430 of file CosmicRateAnalyzer.cc.

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.

431 {
432  lastruntime = 0.0;
433  lastrunnum = 0.0;
434  ntrk_runnum = 0.0;
435  events = 0.0;
436  track_BPIX = 0.0;
437  track_FPIX = 0.0;
438  track_PIXEL = 0.0;
439  track_TEC = 0.0;
440  track_TECM = 0.0;
441  track_TECP = 0.0;
442  track_TOB = 0.0;
443  track_TIB = 0.0;
444  track_TID = 0.0;
445  track_TIDM = 0.0;
446  track_TIDP = 0.0;
447 }
edm::RunNumber_t lastrunnum
void CosmicRateAnalyzer::ClearInEndRun ( )
private

Referenced by stampToReal().

void CosmicRateAnalyzer::ClearInEventLoop ( )
private

Definition at line 198 of file CosmicRateAnalyzer.cc.

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

Referenced by analyze(), and stampToReal().

198  {
199 
200  pt .clear();
201  charge .clear();
202  chi2 .clear();
203  chi2_ndof .clear();
204  eta .clear();
205  theta .clear();
206  phi .clear();
207  p .clear();
208  d0 .clear();
209  dz .clear();
210  nvh .clear();
211  DTtime .clear();
212 
213 }
std::vector< double > theta
std::vector< double > dz
std::vector< double > pt
std::vector< double > d0
std::vector< double > eta
std::vector< double > charge
std::vector< double > DTtime
std::vector< double > nvh
std::vector< double > phi
std::vector< double > chi2
std::vector< double > p
std::vector< double > chi2_ndof
void CosmicRateAnalyzer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 424 of file CosmicRateAnalyzer.cc.

Referenced by o2olib.O2ORunMgr::executeJob().

425 {
426 }
void CosmicRateAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivate

Definition at line 453 of file CosmicRateAnalyzer.cc.

References events, lastrunnum, lastruntime, ntrk_runnum, 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, 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.

454 {
457  runnum = lastrunnum;
470  treeRun ->Fill();
471 }
edm::RunNumber_t lastrunnum
edm::RunNumber_t runnum
void CosmicRateAnalyzer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 475 of file CosmicRateAnalyzer.cc.

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

475  {
477  desc.setComment("Create tuple with all variables required to calculate cosmic event and track rates.");
478  desc.add<edm::InputTag> ("tracksInputTag",edm::InputTag("ALCARECOTkAlCosmicsCTF0T"));
479  desc.add<edm::InputTag> ("muonsInputTag",edm::InputTag("muons1Leg"));
480  descriptions.add("cosmicRateAnalyzer", desc);
481 }
void setComment(std::string const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static double CosmicRateAnalyzer::stampToReal ( edm::Timestamp  time)
inlinestaticprivate

Definition at line 95 of file CosmicRateAnalyzer.cc.

References ClearInEndRun(), ClearInEventLoop(), MillePedeFileConverter_cfg::e, edm::Timestamp::microsecondOffset(), and edm::Timestamp::unixTime().

Referenced by analyze().

95  {
96  return time.unixTime() + time.microsecondOffset()*1e-6;
97  }
unsigned int microsecondOffset() const
Microseconds offset within second.
Definition: Timestamp.h:52
unsigned int unixTime() const
Time in seconds since January 1, 1970.
Definition: Timestamp.h:46

Member Data Documentation

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

Definition at line 147 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 148 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 102 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

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

Definition at line 153 of file CosmicRateAnalyzer.cc.

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

unsigned int CosmicRateAnalyzer::DetectorID
private

Definition at line 108 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

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

Definition at line 156 of file CosmicRateAnalyzer.cc.

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

std::vector<double> CosmicRateAnalyzer::dz
private
std::vector<double> CosmicRateAnalyzer::eta
private
int CosmicRateAnalyzer::events
private
edm::Service<TFileService> CosmicRateAnalyzer::fs
private

Definition at line 106 of file CosmicRateAnalyzer.cc.

Referenced by CosmicRateAnalyzer().

edm::RunNumber_t CosmicRateAnalyzer::lastrunnum
private

Definition at line 104 of file CosmicRateAnalyzer.cc.

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

double CosmicRateAnalyzer::lastruntime
private

Definition at line 105 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 103 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

int CosmicRateAnalyzer::ntrk
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::number_of_events
private

Definition at line 142 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 130 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 133 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 131 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 134 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 139 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 141 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 140 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

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

Definition at line 155 of file CosmicRateAnalyzer.cc.

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

std::vector<double> CosmicRateAnalyzer::p
private
std::vector<double> CosmicRateAnalyzer::phi
private
std::vector<double> CosmicRateAnalyzer::pt
private
double CosmicRateAnalyzer::run_time
private

Definition at line 144 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 143 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

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

Definition at line 150 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_BPIX
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 116 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TEC
private

Definition at line 117 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TECM
private

Definition at line 118 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TECP
private

Definition at line 119 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIB
private

Definition at line 121 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TID
private

Definition at line 122 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 123 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 124 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TOB
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 101 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

TTree* CosmicRateAnalyzer::treeCluster
private

Definition at line 111 of file CosmicRateAnalyzer.cc.

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

TTree* CosmicRateAnalyzer::treeEvent
private

Definition at line 109 of file CosmicRateAnalyzer.cc.

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

TTree* CosmicRateAnalyzer::treeRun
private

Definition at line 110 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 126 of file CosmicRateAnalyzer.cc.

Referenced by analyze().