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 ()
 
- 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 ()
 
 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
 
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

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::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 84 of file CosmicRateAnalyzer.cc.

Constructor & Destructor Documentation

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

Definition at line 176 of file CosmicRateAnalyzer.cc.

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

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

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

Member Function Documentation

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

Definition at line 222 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, TIDDetId::isZMinusSide(), TECDetId::isZMinusSide(), 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, theta, SiStripDetId::TIB, SiStripDetId::TID, 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.

223 {
224  using namespace edm;
225 
226  using reco::TrackCollection;
228  iEvent.getByToken(trackTags_, tracks);
229 
231  iSetup.get<IdealMagneticFieldRecord>().get(magfield);
232 
233  edm::Timestamp ts_begin = iEvent.getRun().beginTime();
234  double t_begin = stampToReal(ts_begin);
235  edm::Timestamp ts_end = iEvent.getRun().endTime();
236  double t_end = stampToReal(ts_end);
237 
238  lastruntime = t_end - t_begin;
239  lastrunnum = iEvent.getRun().run();
240 
242  iSetup.get<SiStripLatencyRcd>().get(apvlat);
243 
244  if (tracks->size()>0) v_ntrk.push_back(tracks->size());
245 
246  ntrk = 0;
247  for(TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1)
248  {
249  pt .push_back(itTrack1->pt());
250  charge .push_back(itTrack1->charge());
251  chi2 .push_back(itTrack1->chi2());
252  chi2_ndof .push_back(itTrack1->normalizedChi2());
253  eta .push_back(itTrack1->eta());
254  theta .push_back(itTrack1->theta());
255  phi .push_back(itTrack1->phi());
256  p .push_back(itTrack1->p());
257  d0 .push_back(itTrack1->d0());
258  dz .push_back(itTrack1->dz());
259  nvh .push_back(itTrack1->numberOfValidHits());
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(trackingRecHit_iterator iHit1 = itTrack1->recHitsBegin(); iHit1 != itTrack1->recHitsEnd(); ++iHit1)
275  {
276 
277  const DetId detId1((*iHit1)->geographicalId());
278  const int subdetId1 = detId1.subdetId();
279  if (!(*iHit1)->isValid()) continue; // only real hits count as in itTrack1->numberOfValidHits()
280 
282 // Hit information in PixelBarrel //
284  if (PixelSubdetector::PixelBarrel == subdetId1)
285  {
286  ++nhitinBPIX; ++nhitinPIXEL;
287  PixelBarrelName pxbId1(detId1);
288  }
290 // Hit information in PixelEndcap //
292  else if (PixelSubdetector::PixelEndcap == subdetId1)
293  {
294  ++nhitinFPIX; ++nhitinPIXEL;
295  }
297 // Hit information in TEC //
299  else if (SiStripDetId::TEC == subdetId1)
300  {
301  ++nhitinTEC;
302  TECDetId tecId1(detId1);
303  if (tecId1.isZMinusSide())
304  {
305  ++nhitinTECminus;
306  }
307  else
308  {
309  ++nhitinTECplus;
310  }
311  }
313 // Hit information in TOB //
315  else if (SiStripDetId::TOB == subdetId1)
316  {
317  ++nhitinTOB;
318  TOBDetId tobId1(detId1);
319  }
321 // Hit information in TIB //
323  else if (SiStripDetId::TIB == subdetId1)
324  {
325  ++nhitinTIB;
326  TIBDetId tibId1(detId1);
327  }
329 // Hit information in TID //
331  else if (SiStripDetId::TID == subdetId1)
332  {
333  ++nhitinTID;
334  TIDDetId tidId1(detId1);
335  if (tidId1.isZMinusSide())
336  {
337  ++nhitinTIDminus;
338  }
339  else
340  {
341  ++nhitinTIDplus;
342  }
343  }
344 
345  countHit++;
346  } // for Loop over Hits
347 
348  if (nhitinBPIX > 0 ) {track_BPIX++ ;}
349  if (nhitinFPIX > 0 ) {track_FPIX++ ;}
350  if (nhitinPIXEL > 0 ) {track_PIXEL++ ;}
351  if (nhitinTEC > 0 ) {track_TEC++ ;}
352  if (nhitinTECminus > 0 ) {track_TECM++ ;}
353  if (nhitinTECplus > 0 ) {track_TECP++ ;}
354  if (nhitinTOB > 0 ) {track_TOB++ ;}
355  if (nhitinTIB > 0 ) {track_TIB++ ;}
356  if (nhitinTID > 0 ) {track_TID++ ;}
357  if (nhitinTIDminus > 0 ) {track_TIDM++ ;}
358  if (nhitinTIDplus > 0 ) {track_TIDP++ ;}
359 
360  ntrk++;
361  ntrk_runnum++;
362  } // for Loop over TrackCollection
363  events++;
364 
366  iEvent.getByToken(clustercollectionToken_,cluster);
367 
368  for(edmNew::DetSetVector<SiStripCluster>::const_iterator det = cluster->begin();det!=cluster->end();++det)
369  {
370  DetectorID = (det->detId());
371  treeCluster->Fill();
372  }
373 
375  iEvent.getByToken(muonTags_, muH);
376  const reco::MuonCollection& muonsT0 = *(muH.product());
377  float time = -9999.;
378  for (unsigned int i=0; i<muonsT0.size(); i++)
379  {
380  //DT time
381  reco::MuonTime mt0 = muonsT0[i].time();
382  time = mt0.timeAtIpInOut;
383  DTtime.push_back(time);
384  }
385  treeEvent ->Fill();
387 
388 } //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:460
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:66
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
T const * product() const
Definition: Handle.h:81
const T & get() const
Definition: EventSetup.h:56
Timestamp const & beginTime() const
Definition: RunBase.h:41
HLT enums.
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 392 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.

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

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

Referenced by stampToReal().

void CosmicRateAnalyzer::ClearInEventLoop ( )
private

Definition at line 203 of file CosmicRateAnalyzer.cc.

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

Referenced by analyze(), and stampToReal().

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

Referenced by o2olib.O2ORunMgr::executeJob().

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

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

458 {
461  runnum = lastrunnum;
474  treeRun ->Fill();
475 }
edm::RunNumber_t lastrunnum
edm::RunNumber_t runnum
void CosmicRateAnalyzer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 479 of file CosmicRateAnalyzer.cc.

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

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

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

Referenced by analyze().

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

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

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

Definition at line 153 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 107 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

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

Definition at line 158 of file CosmicRateAnalyzer.cc.

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

unsigned int CosmicRateAnalyzer::DetectorID
private

Definition at line 113 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

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

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

Referenced by CosmicRateAnalyzer().

edm::RunNumber_t CosmicRateAnalyzer::lastrunnum
private

Definition at line 109 of file CosmicRateAnalyzer.cc.

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

double CosmicRateAnalyzer::lastruntime
private

Definition at line 110 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 108 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

int CosmicRateAnalyzer::ntrk
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

Referenced by analyze(), and beginJob().

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 133 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::number_of_events
private

Definition at line 147 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 139 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 141 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 140 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 143 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 144 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 146 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 145 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 142 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

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

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

Referenced by beginJob(), and endRun().

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 148 of file CosmicRateAnalyzer.cc.

Referenced by beginJob(), and endRun().

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

Definition at line 155 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_BPIX
private

Definition at line 119 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 121 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TEC
private

Definition at line 122 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TECM
private

Definition at line 123 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TECP
private

Definition at line 124 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIB
private

Definition at line 126 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TID
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 129 of file CosmicRateAnalyzer.cc.

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

int CosmicRateAnalyzer::track_TOB
private

Definition at line 125 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 106 of file CosmicRateAnalyzer.cc.

Referenced by analyze().

TTree* CosmicRateAnalyzer::treeCluster
private

Definition at line 116 of file CosmicRateAnalyzer.cc.

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

TTree* CosmicRateAnalyzer::treeEvent
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

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

TTree* CosmicRateAnalyzer::treeRun
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

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

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

Definition at line 131 of file CosmicRateAnalyzer.cc.

Referenced by analyze().