test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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

virtual void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void beginJob () override
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void ClearInEndRun ()
 
void ClearInEventLoop ()
 
virtual void endJob () override
 
virtual 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::MuonCollection
muonTags_
 
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::TrackCollection
trackTags_
 
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 83 of file CosmicRateAnalyzer.cc.

Constructor & Destructor Documentation

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

Definition at line 175 of file CosmicRateAnalyzer.cc.

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

175  :
176  trackTags_(consumes<reco::TrackCollection>(iConfig.getParameter<edm::InputTag>("tracksInputTag"))),
178  muonTags_(consumes<reco::MuonCollection>(iConfig.getParameter<edm::InputTag>("muonsInputTag")))
179 {
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 }
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 ( )

Definition at line 190 of file CosmicRateAnalyzer.cc.

191 {
192 
193  // do anything here that needs to be done at desctruction time
194  // (e.g. close files, deallocate resources etc.)
195 
196 }

Member Function Documentation

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

Implements edm::one::EDAnalyzerBase.

Definition at line 221 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(), i, TIDDetId::isZMinusSide(), TECDetId::isZMinusSide(), lastrunnum, lastruntime, HLT_ES_cff::magfield, muonTags_, ntrk, ntrk_runnum, nvh, p, phi, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pt, edm::RunBase::run(), stampToReal(), DetId::subdetId(), SiStripDetId::TEC, theta, SiStripDetId::TIB, SiStripDetId::TID, 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, testEve_cfg::tracks, trackTags_, treeCluster, treeEvent, and v_ntrk.

222 {
223  using namespace edm;
224 
225  using reco::TrackCollection;
227  iEvent.getByToken(trackTags_, tracks);
228 
230  iSetup.get<IdealMagneticFieldRecord>().get(magfield);
231 
232  edm::Timestamp ts_begin = iEvent.getRun().beginTime();
233  double t_begin = stampToReal(ts_begin);
234  edm::Timestamp ts_end = iEvent.getRun().endTime();
235  double t_end = stampToReal(ts_end);
236 
237  lastruntime = t_end - t_begin;
238  lastrunnum = iEvent.getRun().run();
239 
241  iSetup.get<SiStripLatencyRcd>().get(apvlat);
242 
243  if (tracks->size()>0) v_ntrk.push_back(tracks->size());
244 
245  ntrk = 0;
246  for(TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1)
247  {
248  pt .push_back(itTrack1->pt());
249  charge .push_back(itTrack1->charge());
250  chi2 .push_back(itTrack1->chi2());
251  chi2_ndof .push_back(itTrack1->normalizedChi2());
252  eta .push_back(itTrack1->eta());
253  theta .push_back(itTrack1->theta());
254  phi .push_back(itTrack1->phi());
255  p .push_back(itTrack1->p());
256  d0 .push_back(itTrack1->d0());
257  dz .push_back(itTrack1->dz());
258  nvh .push_back(itTrack1->numberOfValidHits());
259 
260  int nhitinBPIX = 0;
261  int nhitinFPIX = 0;
262  int nhitinPIXEL = 0;
263  int nhitinTEC = 0;
264  int nhitinTOB = 0;
265  int nhitinTIB = 0;
266  int nhitinTID = 0;
267  int nhitinTECminus= 0;
268  int nhitinTECplus = 0;
269  int nhitinTIDminus= 0;
270  int nhitinTIDplus = 0;
271  int countHit = 0;
272 
273  for(trackingRecHit_iterator iHit1 = itTrack1->recHitsBegin(); iHit1 != itTrack1->recHitsEnd(); ++iHit1)
274  {
275 
276  const DetId detId1((*iHit1)->geographicalId());
277  const int subdetId1 = detId1.subdetId();
278  if (!(*iHit1)->isValid()) continue; // only real hits count as in itTrack1->numberOfValidHits()
279 
281 // Hit information in PixelBarrel //
283  if (PixelSubdetector::PixelBarrel == subdetId1)
284  {
285  ++nhitinBPIX; ++nhitinPIXEL;
286  PixelBarrelName pxbId1(detId1);
287  }
289 // Hit information in PixelEndcap //
291  else if (PixelSubdetector::PixelEndcap == subdetId1)
292  {
293  ++nhitinFPIX; ++nhitinPIXEL;
294  }
296 // Hit information in TEC //
298  else if (SiStripDetId::TEC == subdetId1)
299  {
300  ++nhitinTEC;
301  TECDetId tecId1(detId1);
302  if (tecId1.isZMinusSide())
303  {
304  ++nhitinTECminus;
305  }
306  else
307  {
308  ++nhitinTECplus;
309  }
310  }
312 // Hit information in TOB //
314  else if (SiStripDetId::TOB == subdetId1)
315  {
316  ++nhitinTOB;
317  TOBDetId tobId1(detId1);
318  }
320 // Hit information in TIB //
322  else if (SiStripDetId::TIB == subdetId1)
323  {
324  ++nhitinTIB;
325  TIBDetId tibId1(detId1);
326  }
328 // Hit information in TID //
330  else if (SiStripDetId::TID == subdetId1)
331  {
332  ++nhitinTID;
333  TIDDetId tidId1(detId1);
334  if (tidId1.isZMinusSide())
335  {
336  ++nhitinTIDminus;
337  }
338  else
339  {
340  ++nhitinTIDplus;
341  }
342  }
343 
344  countHit++;
345  } // for Loop over Hits
346 
347  if (nhitinBPIX > 0 ) {track_BPIX++ ;}
348  if (nhitinFPIX > 0 ) {track_FPIX++ ;}
349  if (nhitinPIXEL > 0 ) {track_PIXEL++ ;}
350  if (nhitinTEC > 0 ) {track_TEC++ ;}
351  if (nhitinTECminus > 0 ) {track_TECM++ ;}
352  if (nhitinTECplus > 0 ) {track_TECP++ ;}
353  if (nhitinTOB > 0 ) {track_TOB++ ;}
354  if (nhitinTIB > 0 ) {track_TIB++ ;}
355  if (nhitinTID > 0 ) {track_TID++ ;}
356  if (nhitinTIDminus > 0 ) {track_TIDM++ ;}
357  if (nhitinTIDplus > 0 ) {track_TIDP++ ;}
358 
359  ntrk++;
360  ntrk_runnum++;
361  } // for Loop over TrackCollection
362  events++;
363 
365  iEvent.getByToken(clustercollectionToken_,cluster);
366 
367  for(edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin();det!=cluster->end();++det)
368  {
369  DetectorID = (det->detId());
370  treeCluster->Fill();
371  }
372 
374  iEvent.getByToken(muonTags_, muH);
375  const reco::MuonCollection& muonsT0 = *(muH.product());
376  float time = -9999.;
377  for (unsigned int i=0; i<muonsT0.size(); i++)
378  {
379  //DT time
380  reco::MuonTime mt0 = muonsT0[i].time();
381  time = mt0.timeAtIpInOut;
382  DTtime.push_back(time);
383  }
384  treeEvent ->Fill();
386 
387 } //Event Loop
std::vector< double > theta
int i
Definition: DBlmapReader.cc:9
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:462
std::vector< double > charge
tuple magfield
Definition: HLT_ES_cff.py:2311
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::RunNumber_t lastrunnum
Run const & getRun() const
Definition: Event.cc:65
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
std::vector< double > DTtime
std::vector< double > nvh
edm::EDGetTokenT< reco::MuonCollection > muonTags_
std::vector< double > phi
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
std::vector< double > chi2
std::vector< int > v_ntrk
std::vector< double > p
Definition: DetId.h:18
tuple tracks
Definition: testEve_cfg.py:39
const T & get() const
Definition: EventSetup.h:56
Timestamp const & beginTime() const
Definition: RunBase.h:41
std::vector< double > chi2_ndof
static double stampToReal(edm::Timestamp time)
float timeAtIpInOut
Definition: MuonTime.h:14
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
void CosmicRateAnalyzer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

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

392 {
393  treeEvent ->Branch("pt",&pt);
394  treeEvent ->Branch("charge",&charge);
395  treeEvent ->Branch("chi2",&chi2);
396  treeEvent ->Branch("chi2_ndof",&chi2_ndof);
397  treeEvent ->Branch("eta",&eta);
398  treeEvent ->Branch("theta",&theta);
399  treeEvent ->Branch("phi",&phi);
400  treeEvent ->Branch("p",&p);
401  treeEvent ->Branch("d0",&d0);
402  treeEvent ->Branch("dz",&dz);
403  treeEvent ->Branch("nvh",&nvh);
404  treeEvent ->Branch("ntrk",&ntrk);
405  treeEvent ->Branch("DTtime",&DTtime);
406  treeRun ->Branch("run_time",&run_time);
407  treeRun ->Branch("runnum",&runnum);
408  treeRun ->Branch("number_of_events",&number_of_events);
409  treeRun ->Branch("number_of_tracks",&number_of_tracks);
410  treeRun ->Branch("number_of_tracks_PIX",&number_of_tracks_PIX);
411  treeRun ->Branch("number_of_tracks_FPIX",&number_of_tracks_FPIX);
412  treeRun ->Branch("number_of_tracks_BPIX",&number_of_tracks_BPIX);
413  treeRun ->Branch("number_of_tracks_TID",&number_of_tracks_TID);
414  treeRun ->Branch("number_of_tracks_TIDM",&number_of_tracks_TIDM);
415  treeRun ->Branch("number_of_tracks_TIDP",&number_of_tracks_TIDP);
416  treeRun ->Branch("number_of_tracks_TIB",&number_of_tracks_TIB);
417  treeRun ->Branch("number_of_tracks_TEC",&number_of_tracks_TEC);
418  treeRun ->Branch("number_of_tracks_TECP",&number_of_tracks_TECP);
419  treeRun ->Branch("number_of_tracks_TECM",&number_of_tracks_TECM);
420  treeRun ->Branch("number_of_tracks_TOB",&number_of_tracks_TOB);
421  treeCluster ->Branch("DetID",&DetectorID);
422 
423 }
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 &   
)
overrideprivatevirtual

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

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

Definition at line 202 of file CosmicRateAnalyzer.cc.

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

Referenced by analyze().

202  {
203 
204  pt .clear();
205  charge .clear();
206  chi2 .clear();
207  chi2_ndof .clear();
208  eta .clear();
209  theta .clear();
210  phi .clear();
211  p .clear();
212  d0 .clear();
213  dz .clear();
214  nvh .clear();
215  DTtime .clear();
216 
217 }
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 427 of file CosmicRateAnalyzer.cc.

Referenced by o2o.O2ORunMgr::executeJob().

428 {
429 }
void CosmicRateAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

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

457 {
460  runnum = lastrunnum;
473  treeRun ->Fill();
474 }
edm::RunNumber_t lastrunnum
edm::RunNumber_t runnum
void CosmicRateAnalyzer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 478 of file CosmicRateAnalyzer.cc.

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

478  {
480  desc.setComment("Create tuple with all variables required to calculate cosmic event and track rates.");
481  desc.add<edm::InputTag> ("tracksInputTag",edm::InputTag("ALCARECOTkAlCosmicsCTF0T"));
482  desc.add<edm::InputTag> ("muonsInputTag",edm::InputTag("muons1Leg"));
483  descriptions.add("cosmicRateAnalyzer", desc);
484 }
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 99 of file CosmicRateAnalyzer.cc.

References alignCSCRings::e, edm::Timestamp::microsecondOffset(), and edm::Timestamp::unixTime().

Referenced by analyze().

99  {
100  return time.unixTime() + time.microsecondOffset()*1e-6;
101  }
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 151 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 152 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 106 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

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

Definition at line 157 of file CosmicRateAnalyzer.cc.

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

unsigned int CosmicRateAnalyzer::DetectorID
private

Definition at line 112 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

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

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

Referenced by CosmicRateAnalyzer().

edm::RunNumber_t CosmicRateAnalyzer::lastrunnum
private

Definition at line 108 of file CosmicRateAnalyzer.cc.

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

double CosmicRateAnalyzer::lastruntime
private

Definition at line 109 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 107 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

int CosmicRateAnalyzer::ntrk
private

Definition at line 131 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::number_of_events
private

Definition at line 146 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 134 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 140 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 139 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 142 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 143 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 145 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 144 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 141 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

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

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

Referenced by beginJob(), and endRun().

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 147 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

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

Definition at line 154 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_BPIX
private

Definition at line 118 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 119 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TEC
private

Definition at line 121 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TECM
private

Definition at line 122 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TECP
private

Definition at line 123 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIB
private

Definition at line 125 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TID
private

Definition at line 126 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TOB
private

Definition at line 124 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 105 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

TTree* CosmicRateAnalyzer::treeCluster
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

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

TTree* CosmicRateAnalyzer::treeEvent
private

Definition at line 113 of file CosmicRateAnalyzer.cc.

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

TTree* CosmicRateAnalyzer::treeRun
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 130 of file CosmicRateAnalyzer.cc.

Referenced by analyze().