CMS 3D CMS Logo

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

#include <Alignment/OfflineValidation/plugins/GeneralPurposeTrackAnalyzer.cc>

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

Public Member Functions

 GeneralPurposeTrackAnalyzer (const edm::ParameterSet &pset)
 
template<class OBJECT_TYPE >
int GetIndex (const std::vector< OBJECT_TYPE * > &vec, const TString &name)
 
 ~GeneralPurposeTrackAnalyzer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 
- 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 &event, const edm::EventSetup &setup) override
 
void beginJob () override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endJob () override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
bool isHit2D (const TrackingRecHit &hit)
 

Private Attributes

edm::InputTag BeamSpotTag_
 
edm::EDGetTokenT< reco::BeamSpotbeamspotToken
 
std::map< int, std::pair< int, float > > conditionsMap_
 
float etaMax_
 
TH1D * evtsByTrigger_
 
TH1D * fieldByRun_
 
bool firstEvent_
 
edm::Service< TFileServicefs
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgeomToken_
 
TH1D * hCharge
 
TH1D * hchi2ndof
 
TH1D * hchi2ndofhp
 
TH1D * hchi2Probhp
 
TH1D * hd0
 
TH1D * hd0BS
 
TH1D * hd0PV
 
TH2D * hd0PVvseta
 
TH2D * hd0PVvsphi
 
TH2D * hd0PVvspt
 
TH2D * hd0vseta
 
TH2D * hd0vsphi
 
TH2D * hd0vspt
 
TH1D * hDeltaEta
 
TH1D * hDeltaPhi
 
TH1D * hDeltaR
 
TH1D * hdxy
 
TH1D * hdxyBS
 
TH1D * hdxyPV
 
TH1D * hdz
 
TH1D * hdzBS
 
TH1D * hdzPV
 
TH1D * hEta
 
TH1D * hEtahp
 
TH1D * hEtaMinus
 
TH1D * hEtaPlus
 
TH1D * hHit
 
TH1D * hHit2D
 
TH1D * hHitComposition
 
TH1D * hHitCountVsPhiBPix
 
TH1D * hHitCountVsPhiFPix
 
TH1D * hHitCountVsThetaBPix
 
TH1D * hHitCountVsThetaFPix
 
TH1D * hHitCountVsXBPix
 
TH1D * hHitCountVsXFPix
 
TH1D * hHitCountVsYBPix
 
TH1D * hHitCountVsYFPix
 
TH1D * hHitCountVsZBPix
 
TH1D * hHitCountVsZFPix
 
TH1D * hHithp
 
TH1D * hHitMinus
 
TH1D * hHitPlus
 
edm::EDGetTokenT< edm::TriggerResultshltresultsToken
 
TH1D * hlumi
 
TH1D * hMinPt
 
TH1D * hMultCand
 
TH1D * hNhighPurity
 
TH1D * hnhpxb
 
TH1D * hnhpxe
 
TH1D * hnhTEC
 
TH1D * hnhTIB
 
TH1D * hnhTID
 
TH1D * hnhTOB
 
TH1D * hNtrk
 
TH1D * hNtrkZoom
 
TH1D * hP
 
TH1D * hPhi
 
TH1D * hPhiBarrel
 
TH1D * hPhiEndcapMinus
 
TH1D * hPhiEndcapPlus
 
TH1D * hPhihp
 
TH1D * hPhiMinus
 
TH1D * hPhiOverlapMinus
 
TH1D * hPhiOverlapPlus
 
TH1D * hPhiPlus
 
TH1D * hPhp
 
TH1D * hPMinus
 
TH1D * hPPlus
 
TH1D * hPt
 
TH1D * hPthp
 
TH1D * hPtMinus
 
TH1D * hPtPlus
 
TH1D * hQoverP
 
TH1D * hQoverPZoom
 
TH1D * hrun
 
TH1I * htrkAlgo
 
TH1I * htrkOriAlgo
 
TH1I * htrkQuality
 
TH1D * hvx
 
TH1D * hvy
 
TH1D * hvz
 
int ievt
 
bool isCosmics_
 
bool isPhase1_
 
int itrks
 
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcdlatencyToken_
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken_
 
edm::ESHandle< MagneticFieldmagneticField_
 
int mode
 
TH1D * modeByRun_
 
std::unique_ptr< Phase1PixelMapspixelmap
 
std::unique_ptr< TrackerMappmap
 
TProfile * pNBpixHitsVsVx
 
TProfile * pNBpixHitsVsVy
 
TProfile * pNBpixHitsVsVz
 
std::map< int, std::pair< int, int > > runInfoMap_
 
edm::EDGetTokenT< reco::TrackCollectiontheTrackCollectionToken
 
TH1D * tksByTrigger_
 
edm::InputTag TkTag_
 
std::unique_ptr< TrackerMaptmap
 
const TrackerGeometrytrackerGeometry_
 
std::map< std::string, std::pair< int, int > > triggerMap_
 
edm::InputTag TriggerResultsTag_
 
edm::EDGetTokenT< reco::VertexCollectionvertexToken
 
edm::InputTag VerticesTag_
 
std::vector< TH1 * > vTrack2DHistos_
 
std::vector< TH1 * > vTrackHistos_
 
std::vector< TH1 * > vTrackProfiles_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 85 of file GeneralPurposeTrackAnalyzer.cc.

Constructor & Destructor Documentation

◆ GeneralPurposeTrackAnalyzer()

GeneralPurposeTrackAnalyzer::GeneralPurposeTrackAnalyzer ( const edm::ParameterSet pset)
inline

Definition at line 87 of file GeneralPurposeTrackAnalyzer.cc.

88  : geomToken_(esConsumes<TrackerGeometry, TrackerDigiGeometryRecord>()),
89  magFieldToken_(esConsumes<MagneticField, IdealMagneticFieldRecord, edm::Transition::BeginRun>()),
90  latencyToken_(esConsumes<SiStripLatency, SiStripLatencyRcd, edm::Transition::BeginRun>()) {
91  usesResource(TFileService::kSharedResource);
92 
93  TkTag_ = pset.getParameter<edm::InputTag>("TkTag");
94  theTrackCollectionToken = consumes<reco::TrackCollection>(TkTag_);
95 
96  TriggerResultsTag_ = pset.getParameter<edm::InputTag>("TriggerResultsTag");
97  hltresultsToken = consumes<edm::TriggerResults>(TriggerResultsTag_);
98 
99  BeamSpotTag_ = pset.getParameter<edm::InputTag>("BeamSpotTag");
100  beamspotToken = consumes<reco::BeamSpot>(BeamSpotTag_);
101 
102  VerticesTag_ = pset.getParameter<edm::InputTag>("VerticesTag");
103  vertexToken = consumes<reco::VertexCollection>(VerticesTag_);
104 
105  isCosmics_ = pset.getParameter<bool>("isCosmics");
106 
107  pmap = std::make_unique<TrackerMap>("Pixel");
108  pmap->onlyPixel(true);
109  pmap->setTitle("Pixel Hit entries");
110  pmap->setPalette(1);
111 
112  tmap = std::make_unique<TrackerMap>("Strip");
113  tmap->setTitle("Strip Hit entries");
114  tmap->setPalette(1);
115 
116  pixelmap = std::make_unique<Phase1PixelMaps>("COLZ0 L");
117  pixelmap->bookBarrelHistograms("entriesBarrel", "# hits", "# pixel hits");
118  pixelmap->bookForwardHistograms("entriesForward", "# hits", "# pixel hits");
119  }

References BeamSpotTag_, beamspotToken, hltresultsToken, isCosmics_, TFileService::kSharedResource, pixelmap, pmap, muonDTDigis_cfi::pset, theTrackCollectionToken, TkTag_, tmap, TriggerResultsTag_, vertexToken, and VerticesTag_.

◆ ~GeneralPurposeTrackAnalyzer()

GeneralPurposeTrackAnalyzer::~GeneralPurposeTrackAnalyzer ( )
inlineoverride

Definition at line 121 of file GeneralPurposeTrackAnalyzer.cc.

121 {}

Member Function Documentation

◆ analyze()

void GeneralPurposeTrackAnalyzer::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
inlineoverrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 287 of file GeneralPurposeTrackAnalyzer.cc.

289  {
290  ievt++;
291 
293  event.getByToken(theTrackCollectionToken, trackCollection);
294 
295  // geometry setup
297  const TrackerGeometry *theGeometry = &(*geometry);
298 
299  // switch on the phase1
300  if ((theGeometry->isThere(GeomDetEnumerators::P1PXB)) || (theGeometry->isThere(GeomDetEnumerators::P1PXEC))) {
301  isPhase1_ = true;
302  } else {
303  isPhase1_ = false;
304  }
305 
306  const reco::TrackCollection tC = *(trackCollection.product());
307  itrks += tC.size();
308 
309  runInfoMap_[event.run()].first += 1;
310  runInfoMap_[event.run()].second += tC.size();
311 
312  if (DEBUG) {
313  edm::LogInfo("GeneralPurposeTrackAnalyzer") << "Reconstructed " << tC.size() << " tracks" << std::endl;
314  }
315  //int iCounter=0;
316 
318  event.getByToken(hltresultsToken, hltresults);
319  if (hltresults.isValid()) {
320  const edm::TriggerNames &triggerNames_ = event.triggerNames(*hltresults);
321  int ntrigs = hltresults->size();
322  //const vector<std::string> &triggernames = triggerNames_.triggerNames();
323 
324  for (int itrig = 0; itrig != ntrigs; ++itrig) {
325  const std::string &trigName = triggerNames_.triggerName(itrig);
326  bool accept = hltresults->accept(itrig);
327  if (accept == 1) {
328  if (DEBUG) {
329  edm::LogInfo("GeneralPurposeTrackAnalyzer")
330  << trigName << " " << accept << " ,track size: " << tC.size() << std::endl;
331  }
332  triggerMap_[trigName].first += 1;
333  triggerMap_[trigName].second += tC.size();
334  // triggerInfo.push_back(pair <std::string, int> (trigName, accept));
335  }
336  }
337  }
338 
339  hrun->Fill(event.run());
340  hlumi->Fill(event.luminosityBlock());
341 
342  int nHighPurityTracks = 0;
343 
344  for (auto track = tC.cbegin(); track != tC.cend(); track++) {
345  unsigned int nHit2D = 0;
346  for (auto iHit = track->recHitsBegin(); iHit != track->recHitsEnd(); ++iHit) {
347  if (this->isHit2D(**iHit)) {
348  ++nHit2D;
349  }
350 
351  const DetId &detId = (*iHit)->geographicalId();
352  const GeomDet *geomDet(theGeometry->idToDet(detId));
353 
354  const SiPixelRecHit *pixhit = dynamic_cast<const SiPixelRecHit *>(*iHit);
355 
356  if (pixhit) {
357  if (pixhit->isValid()) {
358  unsigned int subid = detId.subdetId();
359  int detid_db = detId.rawId();
360 
361  if (!isPhase1_) {
362  pmap->fill(detid_db, 1);
363  } else {
364  if (subid == PixelSubdetector::PixelBarrel) {
365  pixelmap->fillBarrelBin("entriesBarrel", detid_db, 1);
366  } else {
367  pixelmap->fillForwardBin("entriesForward", detid_db, 1);
368  }
369  }
370 
371  LocalPoint lp = (*iHit)->localPosition();
372  //LocalError le = (*iHit)->localPositionError();
373 
374  GlobalPoint GP = geomDet->surface().toGlobal(lp);
375 
376  if ((subid == PixelSubdetector::PixelBarrel) || (subid == PixelSubdetector::PixelEndcap)) {
377  // 1 = PXB, 2 = PXF
378  if (subid == PixelSubdetector::PixelBarrel) {
379  hHitCountVsThetaBPix->Fill(GP.theta());
380  hHitCountVsPhiBPix->Fill(GP.phi());
381 
382  hHitCountVsZBPix->Fill(GP.z());
383  hHitCountVsXBPix->Fill(GP.x());
384  hHitCountVsYBPix->Fill(GP.y());
385 
386  } else if (subid == PixelSubdetector::PixelEndcap) {
387  hHitCountVsThetaFPix->Fill(GP.theta());
388  hHitCountVsPhiFPix->Fill(GP.phi());
389 
390  hHitCountVsZFPix->Fill(GP.z());
391  hHitCountVsXFPix->Fill(GP.x());
392  hHitCountVsYFPix->Fill(GP.y());
393  }
394  }
395  }
396  } else {
397  if ((*iHit)->isValid()) {
398  tmap->fill(detId.rawId(), 1);
399  }
400  }
401  }
402 
403  hHit2D->Fill(nHit2D);
404  hHit->Fill(track->numberOfValidHits());
405  hnhpxb->Fill(track->hitPattern().numberOfValidPixelBarrelHits());
406  hnhpxe->Fill(track->hitPattern().numberOfValidPixelEndcapHits());
407  hnhTIB->Fill(track->hitPattern().numberOfValidStripTIBHits());
408  hnhTID->Fill(track->hitPattern().numberOfValidStripTIDHits());
409  hnhTOB->Fill(track->hitPattern().numberOfValidStripTOBHits());
410  hnhTEC->Fill(track->hitPattern().numberOfValidStripTECHits());
411 
412  // fill hit composition histogram
413  if (track->hitPattern().numberOfValidPixelBarrelHits() != 0) {
414  hHitComposition->Fill(0., track->hitPattern().numberOfValidPixelBarrelHits());
415 
416  pNBpixHitsVsVx->Fill(track->vx(), track->hitPattern().numberOfValidPixelBarrelHits());
417  pNBpixHitsVsVy->Fill(track->vy(), track->hitPattern().numberOfValidPixelBarrelHits());
418  pNBpixHitsVsVz->Fill(track->vz(), track->hitPattern().numberOfValidPixelBarrelHits());
419  }
420  if (track->hitPattern().numberOfValidPixelEndcapHits() != 0) {
421  hHitComposition->Fill(1., track->hitPattern().numberOfValidPixelEndcapHits());
422  }
423  if (track->hitPattern().numberOfValidStripTIBHits() != 0) {
424  hHitComposition->Fill(2., track->hitPattern().numberOfValidStripTIBHits());
425  }
426  if (track->hitPattern().numberOfValidStripTIDHits() != 0) {
427  hHitComposition->Fill(3., track->hitPattern().numberOfValidStripTIDHits());
428  }
429  if (track->hitPattern().numberOfValidStripTOBHits() != 0) {
430  hHitComposition->Fill(4., track->hitPattern().numberOfValidStripTOBHits());
431  }
432  if (track->hitPattern().numberOfValidStripTECHits() != 0) {
433  hHitComposition->Fill(5., track->hitPattern().numberOfValidStripTECHits());
434  }
435 
436  hCharge->Fill(track->charge());
437  hQoverP->Fill(track->qoverp());
438  hQoverPZoom->Fill(track->qoverp());
439  hPt->Fill(track->pt());
440  hP->Fill(track->p());
441  hchi2ndof->Fill(track->normalizedChi2());
442  hEta->Fill(track->eta());
443  hPhi->Fill(track->phi());
444 
445  if (fabs(track->eta()) < 0.8) {
446  hPhiBarrel->Fill(track->phi());
447  }
448  if (track->eta() > 0.8 && track->eta() < 1.4) {
449  hPhiOverlapPlus->Fill(track->phi());
450  }
451  if (track->eta() < -0.8 && track->eta() > -1.4) {
452  hPhiOverlapMinus->Fill(track->phi());
453  }
454  if (track->eta() > 1.4) {
455  hPhiEndcapPlus->Fill(track->phi());
456  }
457  if (track->eta() < -1.4) {
458  hPhiEndcapMinus->Fill(track->phi());
459  }
460 
461  hd0->Fill(track->d0());
462  hdz->Fill(track->dz());
463  hdxy->Fill(track->dxy());
464  hvx->Fill(track->vx());
465  hvy->Fill(track->vy());
466  hvz->Fill(track->vz());
467 
468  htrkAlgo->Fill(static_cast<int>(track->algo()));
469  htrkOriAlgo->Fill(static_cast<int>(track->originalAlgo()));
470 
471  int myquality = -99;
472  if (track->quality(reco::TrackBase::undefQuality)) {
473  myquality = -1;
474  htrkQuality->Fill(myquality);
475  }
476  if (track->quality(reco::TrackBase::loose)) {
477  myquality = 0;
478  htrkQuality->Fill(myquality);
479  }
480  if (track->quality(reco::TrackBase::tight)) {
481  myquality = 1;
482  htrkQuality->Fill(myquality);
483  }
484  if (track->quality(reco::TrackBase::highPurity) && (!isCosmics_)) {
485  myquality = 2;
486  htrkQuality->Fill(myquality);
487  hPhp->Fill(track->p());
488  hPthp->Fill(track->pt());
489  hHithp->Fill(track->numberOfValidHits());
490  hEtahp->Fill(track->eta());
491  hPhihp->Fill(track->phi());
492  hchi2ndofhp->Fill(track->normalizedChi2());
493  hchi2Probhp->Fill(TMath::Prob(track->chi2(), track->ndof()));
494  nHighPurityTracks++;
495  }
496  if (track->quality(reco::TrackBase::confirmed)) {
497  myquality = 3;
498  htrkQuality->Fill(myquality);
499  }
500  if (track->quality(reco::TrackBase::goodIterative)) {
501  myquality = 4;
502  htrkQuality->Fill(myquality);
503  }
504 
505  // Fill 1D track histos
506  static const int etaindex = this->GetIndex(vTrackHistos_, "h_tracketa");
507  vTrackHistos_[etaindex]->Fill(track->eta());
508  static const int phiindex = this->GetIndex(vTrackHistos_, "h_trackphi");
509  vTrackHistos_[phiindex]->Fill(track->phi());
510  static const int numOfValidHitsindex = this->GetIndex(vTrackHistos_, "h_trackNumberOfValidHits");
511  vTrackHistos_[numOfValidHitsindex]->Fill(track->numberOfValidHits());
512  static const int numOfLostHitsindex = this->GetIndex(vTrackHistos_, "h_trackNumberOfLostHits");
513  vTrackHistos_[numOfLostHitsindex]->Fill(track->numberOfLostHits());
514 
515  GlobalPoint gPoint(track->vx(), track->vy(), track->vz());
516  double theLocalMagFieldInInverseGeV = magneticField_->inInverseGeV(gPoint).z();
517  double kappa = -track->charge() * theLocalMagFieldInInverseGeV / track->pt();
518 
519  static const int kappaindex = this->GetIndex(vTrackHistos_, "h_curvature");
520  vTrackHistos_[kappaindex]->Fill(kappa);
521  static const int kappaposindex = this->GetIndex(vTrackHistos_, "h_curvature_pos");
522  if (track->charge() > 0)
523  vTrackHistos_[kappaposindex]->Fill(fabs(kappa));
524  static const int kappanegindex = this->GetIndex(vTrackHistos_, "h_curvature_neg");
525  if (track->charge() < 0)
526  vTrackHistos_[kappanegindex]->Fill(fabs(kappa));
527 
528  double chi2Prob = TMath::Prob(track->chi2(), track->ndof());
529  double normchi2 = track->normalizedChi2();
530 
531  static const int normchi2index = this->GetIndex(vTrackHistos_, "h_normchi2");
532  vTrackHistos_[normchi2index]->Fill(normchi2);
533  static const int chi2index = this->GetIndex(vTrackHistos_, "h_chi2");
534  vTrackHistos_[chi2index]->Fill(track->chi2());
535  static const int chi2Probindex = this->GetIndex(vTrackHistos_, "h_chi2Prob");
536  vTrackHistos_[chi2Probindex]->Fill(chi2Prob);
537  static const int ptindex = this->GetIndex(vTrackHistos_, "h_pt");
538  static const int pt2index = this->GetIndex(vTrackHistos_, "h_ptrebin");
539  vTrackHistos_[ptindex]->Fill(track->pt());
540  vTrackHistos_[pt2index]->Fill(track->pt());
541  if (track->ptError() != 0.) {
542  static const int ptResolutionindex = this->GetIndex(vTrackHistos_, "h_ptResolution");
543  vTrackHistos_[ptResolutionindex]->Fill(track->ptError() / track->pt());
544  }
545  // Fill track profiles
546  static const int d0phiindex = this->GetIndex(vTrackProfiles_, "p_d0_vs_phi");
547  vTrackProfiles_[d0phiindex]->Fill(track->phi(), track->d0());
548  static const int dzphiindex = this->GetIndex(vTrackProfiles_, "p_dz_vs_phi");
549  vTrackProfiles_[dzphiindex]->Fill(track->phi(), track->dz());
550  static const int d0etaindex = this->GetIndex(vTrackProfiles_, "p_d0_vs_eta");
551  vTrackProfiles_[d0etaindex]->Fill(track->eta(), track->d0());
552  static const int dzetaindex = this->GetIndex(vTrackProfiles_, "p_dz_vs_eta");
553  vTrackProfiles_[dzetaindex]->Fill(track->eta(), track->dz());
554  static const int chiProbphiindex = this->GetIndex(vTrackProfiles_, "p_chi2Prob_vs_phi");
555  vTrackProfiles_[chiProbphiindex]->Fill(track->phi(), chi2Prob);
556  static const int chiProbabsd0index = this->GetIndex(vTrackProfiles_, "p_chi2Prob_vs_d0");
557  vTrackProfiles_[chiProbabsd0index]->Fill(fabs(track->d0()), chi2Prob);
558  static const int chiProbabsdzindex = this->GetIndex(vTrackProfiles_, "p_chi2Prob_vs_dz");
559  vTrackProfiles_[chiProbabsdzindex]->Fill(track->dz(), chi2Prob);
560  static const int chiphiindex = this->GetIndex(vTrackProfiles_, "p_chi2_vs_phi");
561  vTrackProfiles_[chiphiindex]->Fill(track->phi(), track->chi2());
562  static const int normchiphiindex = this->GetIndex(vTrackProfiles_, "p_normchi2_vs_phi");
563  vTrackProfiles_[normchiphiindex]->Fill(track->phi(), normchi2);
564  static const int chietaindex = this->GetIndex(vTrackProfiles_, "p_chi2_vs_eta");
565  vTrackProfiles_[chietaindex]->Fill(track->eta(), track->chi2());
566  static const int normchiptindex = this->GetIndex(vTrackProfiles_, "p_normchi2_vs_pt");
567  vTrackProfiles_[normchiptindex]->Fill(track->pt(), normchi2);
568  static const int normchipindex = this->GetIndex(vTrackProfiles_, "p_normchi2_vs_p");
569  vTrackProfiles_[normchipindex]->Fill(track->p(), normchi2);
570  static const int chiProbetaindex = this->GetIndex(vTrackProfiles_, "p_chi2Prob_vs_eta");
571  vTrackProfiles_[chiProbetaindex]->Fill(track->eta(), chi2Prob);
572  static const int normchietaindex = this->GetIndex(vTrackProfiles_, "p_normchi2_vs_eta");
573  vTrackProfiles_[normchietaindex]->Fill(track->eta(), normchi2);
574  static const int kappaphiindex = this->GetIndex(vTrackProfiles_, "p_kappa_vs_phi");
575  vTrackProfiles_[kappaphiindex]->Fill(track->phi(), kappa);
576  static const int kappaetaindex = this->GetIndex(vTrackProfiles_, "p_kappa_vs_eta");
577  vTrackProfiles_[kappaetaindex]->Fill(track->eta(), kappa);
578  static const int ptResphiindex = this->GetIndex(vTrackProfiles_, "p_ptResolution_vs_phi");
579  vTrackProfiles_[ptResphiindex]->Fill(track->phi(), track->ptError() / track->pt());
580  static const int ptResetaindex = this->GetIndex(vTrackProfiles_, "p_ptResolution_vs_eta");
581  vTrackProfiles_[ptResetaindex]->Fill(track->eta(), track->ptError() / track->pt());
582 
583  // Fill 2D track histos
584  static const int d0phiindex_2d = this->GetIndex(vTrack2DHistos_, "h2_d0_vs_phi");
585  vTrack2DHistos_[d0phiindex_2d]->Fill(track->phi(), track->d0());
586  static const int dzphiindex_2d = this->GetIndex(vTrack2DHistos_, "h2_dz_vs_phi");
587  vTrack2DHistos_[dzphiindex_2d]->Fill(track->phi(), track->dz());
588  static const int d0etaindex_2d = this->GetIndex(vTrack2DHistos_, "h2_d0_vs_eta");
589  vTrack2DHistos_[d0etaindex_2d]->Fill(track->eta(), track->d0());
590  static const int dzetaindex_2d = this->GetIndex(vTrack2DHistos_, "h2_dz_vs_eta");
591  vTrack2DHistos_[dzetaindex_2d]->Fill(track->eta(), track->dz());
592  static const int chiphiindex_2d = this->GetIndex(vTrack2DHistos_, "h2_chi2_vs_phi");
593  vTrack2DHistos_[chiphiindex_2d]->Fill(track->phi(), track->chi2());
594  static const int chiProbphiindex_2d = this->GetIndex(vTrack2DHistos_, "h2_chi2Prob_vs_phi");
595  vTrack2DHistos_[chiProbphiindex_2d]->Fill(track->phi(), chi2Prob);
596  static const int chiProbabsd0index_2d = this->GetIndex(vTrack2DHistos_, "h2_chi2Prob_vs_d0");
597  vTrack2DHistos_[chiProbabsd0index_2d]->Fill(fabs(track->d0()), chi2Prob);
598  static const int normchiphiindex_2d = this->GetIndex(vTrack2DHistos_, "h2_normchi2_vs_phi");
599  vTrack2DHistos_[normchiphiindex_2d]->Fill(track->phi(), normchi2);
600  static const int chietaindex_2d = this->GetIndex(vTrack2DHistos_, "h2_chi2_vs_eta");
601  vTrack2DHistos_[chietaindex_2d]->Fill(track->eta(), track->chi2());
602  static const int chiProbetaindex_2d = this->GetIndex(vTrack2DHistos_, "h2_chi2Prob_vs_eta");
603  vTrack2DHistos_[chiProbetaindex_2d]->Fill(track->eta(), chi2Prob);
604  static const int normchietaindex_2d = this->GetIndex(vTrack2DHistos_, "h2_normchi2_vs_eta");
605  vTrack2DHistos_[normchietaindex_2d]->Fill(track->eta(), normchi2);
606  static const int kappaphiindex_2d = this->GetIndex(vTrack2DHistos_, "h2_kappa_vs_phi");
607  vTrack2DHistos_[kappaphiindex_2d]->Fill(track->phi(), kappa);
608  static const int kappaetaindex_2d = this->GetIndex(vTrack2DHistos_, "h2_kappa_vs_eta");
609  vTrack2DHistos_[kappaetaindex_2d]->Fill(track->eta(), kappa);
610  static const int normchi2kappa_2d = this->GetIndex(vTrack2DHistos_, "h2_normchi2_vs_kappa");
611  vTrack2DHistos_[normchi2kappa_2d]->Fill(normchi2, kappa);
612 
613  //dxy with respect to the beamspot
615  edm::Handle<reco::BeamSpot> beamSpotHandle;
616  event.getByToken(beamspotToken, beamSpotHandle);
617  if (beamSpotHandle.isValid()) {
618  beamSpot = *beamSpotHandle;
619  math::XYZPoint point(beamSpot.x0(), beamSpot.y0(), beamSpot.z0());
620  double dxy = track->dxy(point);
621  double dz = track->dz(point);
622  hdxyBS->Fill(dxy);
623  hd0BS->Fill(-dxy);
624  hdzBS->Fill(dz);
625  }
626 
627  //dxy with respect to the primary vertex
628  reco::Vertex pvtx;
631  event.getByLabel("offlinePrimaryVertices", vertexHandle);
632  double mindxy = 100.;
633  double dz = 100;
634  if (vertexHandle.isValid() && !isCosmics_) {
635  for (auto pvtx = vertexHandle->cbegin(); pvtx != vertexHandle->cend(); ++pvtx) {
636  math::XYZPoint mypoint(pvtx->x(), pvtx->y(), pvtx->z());
637  if (abs(mindxy) > abs(track->dxy(mypoint))) {
638  mindxy = track->dxy(mypoint);
639  dz = track->dz(mypoint);
640  }
641  }
642 
643  hdxyPV->Fill(mindxy);
644  hd0PV->Fill(-mindxy);
645  hdzPV->Fill(dz);
646 
647  hd0PVvsphi->Fill(track->phi(), -mindxy);
648  hd0PVvseta->Fill(track->eta(), -mindxy);
649  hd0PVvspt->Fill(track->pt(), -mindxy);
650 
651  } else {
652  hdxyPV->Fill(100);
653  hd0PV->Fill(100);
654  hdzPV->Fill(100);
655 
656  hd0vsphi->Fill(track->phi(), -track->dxy());
657  hd0vseta->Fill(track->eta(), -track->dxy());
658  hd0vspt->Fill(track->pt(), -track->dxy());
659  }
660 
661  if (DEBUG) {
662  edm::LogInfo("GeneralPurposeTrackAnalyzer") << "end of track loop" << std::endl;
663  }
664  }
665 
666  hNtrk->Fill(tC.size());
667  hNtrkZoom->Fill(tC.size());
668  hNhighPurity->Fill(nHighPurityTracks);
669 
670  if (DEBUG) {
671  edm::LogInfo("GeneralPurposeTrackAnalyzer") << "end of analysis" << std::endl;
672  }
673  }

References funct::abs(), accept(), pwdgSkimBPark_cfi::beamSpot, beamspotToken, reco::TrackBase::confirmed, DEBUG, PVValHelper::dxy, PVValHelper::dz, HcalObjRepresent::Fill(), geomToken_, GetIndex(), reco::TrackBase::goodIterative, hCharge, hchi2ndof, hchi2ndofhp, hchi2Probhp, hd0, hd0BS, hd0PV, hd0PVvseta, hd0PVvsphi, hd0PVvspt, hd0vseta, hd0vsphi, hd0vspt, hdxy, hdxyBS, hdxyPV, hdz, hdzBS, hdzPV, hEta, hEtahp, hHit, hHit2D, hHitComposition, hHitCountVsPhiBPix, hHitCountVsPhiFPix, hHitCountVsThetaBPix, hHitCountVsThetaFPix, hHitCountVsXBPix, hHitCountVsXFPix, hHitCountVsYBPix, hHitCountVsYFPix, hHitCountVsZBPix, hHitCountVsZFPix, hHithp, reco::TrackBase::highPurity, HLTBitAnalyser_cfi::hltresults, hltresultsToken, hlumi, hNhighPurity, hnhpxb, hnhpxe, hnhTEC, hnhTIB, hnhTID, hnhTOB, hNtrk, hNtrkZoom, hP, hPhi, hPhiBarrel, hPhiEndcapMinus, hPhiEndcapPlus, hPhihp, hPhiOverlapMinus, hPhiOverlapPlus, hPhp, hPt, hPthp, hQoverP, hQoverPZoom, hrun, htrkAlgo, htrkOriAlgo, htrkQuality, hvx, hvy, hvz, TrackerGeometry::idToDet(), ievt, MagneticField::inInverseGeV(), isCosmics_, isHit2D(), isPhase1_, TrackerGeometry::isThere(), edm::HandleBase::isValid(), itrks, HLTEgPhaseIITestSequence_cff::kappa, reco::TrackBase::loose, magneticField_, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, PV3DBase< T, PVType, FrameType >::phi(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pixelmap, pmap, pNBpixHitsVsVx, pNBpixHitsVsVy, pNBpixHitsVsVz, point, DetId::rawId(), runInfoMap_, singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), PV3DBase< T, PVType, FrameType >::theta(), theTrackCollectionToken, reco::TrackBase::tight, tmap, HLT_FULL_cff::track, duplicaterechits_cfi::trackCollection, triggerMap_, edm::TriggerNames::triggerName(), edm::TriggerNames::triggerNames(), EgHLTOffTrigSelection_cfi::trigName, reco::TrackBase::undefQuality, spclusmultinvestigator_cfi::vertexCollection, vTrack2DHistos_, vTrackHistos_, vTrackProfiles_, PV3DBase< T, PVType, FrameType >::x(), reco::Vertex::x(), PV3DBase< T, PVType, FrameType >::y(), reco::Vertex::y(), PV3DBase< T, PVType, FrameType >::z(), and reco::Vertex::z().

◆ beginJob()

void GeneralPurposeTrackAnalyzer::beginJob ( void  )
inlineoverrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 705 of file GeneralPurposeTrackAnalyzer.cc.

707  {
708  if (DEBUG) {
709  edm::LogInfo("GeneralPurposeTrackAnalyzer") << __LINE__ << std::endl;
710  }
711 
712  TH1D::SetDefaultSumw2(kTRUE);
713 
714  isPhase1_ = true;
715  etaMax_ = 3.0;
716 
717  ievt = 0;
718  itrks = 0;
719 
720  hrun = fs->make<TH1D>("h_run", "run", 100000, 230000, 240000);
721  hlumi = fs->make<TH1D>("h_lumi", "lumi", 1000, 0, 1000);
722 
723  hchi2ndof = fs->make<TH1D>("h_chi2ndof", "chi2/ndf;#chi^{2}/ndf;tracks", 100, 0, 5.);
724  hCharge = fs->make<TH1D>("h_charge", "charge;Charge of the track;tracks", 5, -2.5, 2.5);
725  hNtrk = fs->make<TH1D>("h_Ntrk", "ntracks;Number of Tracks;events", 200, 0., 200.);
726  hNtrkZoom = fs->make<TH1D>("h_NtrkZoom", "Number of tracks; number of tracks;events", 10, 0., 10.);
727  hNhighPurity =
728  fs->make<TH1D>("h_NhighPurity", "n. high purity tracks;Number of high purity tracks;events", 200, 0., 200.);
729 
730  htrkAlgo = fs->make<TH1I>("h_trkAlgo",
731  "tracking step;iterative tracking step;tracks",
733  0.,
734  double(reco::TrackBase::algoSize));
735 
736  htrkOriAlgo = fs->make<TH1I>("h_trkOriAlgo",
737  "original tracking step;original iterative tracking step;tracks",
739  0.,
740  double(reco::TrackBase::algoSize));
741 
742  for (size_t ibin = 0; ibin < reco::TrackBase::algoSize - 1; ibin++) {
743  htrkAlgo->GetXaxis()->SetBinLabel(ibin + 1, (reco::TrackBase::algoNames[ibin]).c_str());
744  htrkOriAlgo->GetXaxis()->SetBinLabel(ibin + 1, (reco::TrackBase::algoNames[ibin]).c_str());
745  }
746 
747  htrkQuality = fs->make<TH1I>("h_trkQuality", "track quality;track quality;tracks", 6, -1, 5);
748  std::string qualities[7] = {"undef", "loose", "tight", "highPurity", "confirmed", "goodIterative"};
749  for (int nbin = 1; nbin <= htrkQuality->GetNbinsX(); nbin++) {
750  htrkQuality->GetXaxis()->SetBinLabel(nbin, (qualities[nbin - 1]).c_str());
751  }
752 
753  hP = fs->make<TH1D>("h_P", "Momentum;track momentum [GeV];tracks", 100, 0., 100.);
754  hQoverP = fs->make<TH1D>("h_qoverp", "Track q/p; track q/p [GeV^{-1}];tracks", 100, -1., 1.);
755  hQoverPZoom = fs->make<TH1D>("h_qoverpZoom", "Track q/p; track q/p [GeV^{-1}];tracks", 100, -0.1, 0.1);
756  hPt = fs->make<TH1D>("h_Pt", "Transverse Momentum;track p_{T} [GeV];tracks", 100, 0., 100.);
757  hHit = fs->make<TH1D>("h_nHits", "Number of hits;track n. hits;tracks", 50, -0.5, 49.5);
758  hHit2D = fs->make<TH1D>("h_nHit2D", "Number of 2D hits; number of 2D hits;tracks", 20, 0, 20);
759 
760  hHitCountVsZBPix = fs->make<TH1D>("h_HitCountVsZBpix", "Number of BPix hits vs z;hit global z;hits", 60, -30, 30);
762  fs->make<TH1D>("h_HitCountVsZFpix", "Number of FPix hits vs z;hit global z;hits", 100, -100, 100);
763 
764  hHitCountVsXBPix = fs->make<TH1D>("h_HitCountVsXBpix", "Number of BPix hits vs x;hit global x;hits", 20, -20, 20);
765  hHitCountVsXFPix = fs->make<TH1D>("h_HitCountVsXFpix", "Number of FPix hits vs x;hit global x;hits", 20, -20, 20);
766 
767  hHitCountVsYBPix = fs->make<TH1D>("h_HitCountVsYBpix", "Number of BPix hits vs y;hit global y;hits", 20, -20, 20);
768  hHitCountVsYFPix = fs->make<TH1D>("h_HitCountVsYFpix", "Number of FPix hits vs y;hit global y;hits", 20, -20, 20);
769 
771  fs->make<TH1D>("h_HitCountVsThetaBpix", "Number of BPix hits vs #theta;hit global #theta;hits", 20, 0., M_PI);
773  fs->make<TH1D>("h_HitCountVsPhiBpix", "Number of BPix hits vs #phi;hit global #phi;hits", 20, -M_PI, M_PI);
774 
776  fs->make<TH1D>("h_HitCountVsThetaFpix", "Number of FPix hits vs #theta;hit global #theta;hits", 40, 0., M_PI);
778  fs->make<TH1D>("h_HitCountVsPhiFpix", "Number of FPix hits vs #phi;hit global #phi;hits", 20, -M_PI, M_PI);
779 
780  hEta = fs->make<TH1D>("h_Eta", "Track pseudorapidity; track #eta;tracks", 100, -etaMax_, etaMax_);
781  hPhi = fs->make<TH1D>("h_Phi", "Track azimuth; track #phi;tracks", 100, -M_PI, M_PI);
782 
783  hPhiBarrel = fs->make<TH1D>("h_PhiBarrel", "hPhiBarrel (0<|#eta|<0.8);track #Phi;tracks", 100, -M_PI, M_PI);
785  fs->make<TH1D>("h_PhiOverlapPlus", "hPhiOverlapPlus (0.8<#eta<1.4);track #phi;tracks", 100, -M_PI, M_PI);
787  fs->make<TH1D>("h_PhiOverlapMinus", "hPhiOverlapMinus (-1.4<#eta<-0.8);track #phi;tracks", 100, -M_PI, M_PI);
788  hPhiEndcapPlus = fs->make<TH1D>("h_PhiEndcapPlus", "hPhiEndcapPlus (#eta>1.4);track #phi;track", 100, -M_PI, M_PI);
790  fs->make<TH1D>("h_PhiEndcapMinus", "hPhiEndcapMinus (#eta<1.4);track #phi;tracks", 100, -M_PI, M_PI);
791 
792  if (!isCosmics_) {
793  hPhp = fs->make<TH1D>("h_P_hp", "Momentum (high purity);track momentum [GeV];tracks", 100, 0., 100.);
794  hPthp = fs->make<TH1D>("h_Pt_hp", "Transverse Momentum (high purity);track p_{T} [GeV];tracks", 100, 0., 100.);
795  hHithp = fs->make<TH1D>("h_nHit_hp", "Number of hits (high purity);track n. hits;tracks", 30, 0, 30);
796  hEtahp =
797  fs->make<TH1D>("h_Eta_hp", "Track pseudorapidity (high purity); track #eta;tracks", 100, -etaMax_, etaMax_);
798  hPhihp = fs->make<TH1D>("h_Phi_hp", "Track azimuth (high purity); track #phi;tracks", 100, -M_PI, M_PI);
799  hchi2ndofhp = fs->make<TH1D>("h_chi2ndof_hp", "chi2/ndf (high purity);#chi^{2}/ndf;tracks", 100, 0, 5.);
800  hchi2Probhp = fs->make<TH1D>(
801  "h_chi2_Prob_hp", "#chi^{2} probability (high purity);#chi^{2}prob_{Track};Number of Tracks", 100, 0.0, 1.);
802 
803  hvx = fs->make<TH1D>("h_vx", "Track v_{x} ; track v_{x} [cm];tracks", 100, -1.5, 1.5);
804  hvy = fs->make<TH1D>("h_vy", "Track v_{y} ; track v_{y} [cm];tracks", 100, -1.5, 1.5);
805  hvz = fs->make<TH1D>("h_vz", "Track v_{z} ; track v_{z} [cm];tracks", 100, -20., 20.);
806  hd0 = fs->make<TH1D>("h_d0", "Track d_{0} ; track d_{0} [cm];tracks", 100, -1., 1.);
807  hdxy = fs->make<TH1D>("h_dxy", "Track d_{xy}; track d_{xy} [cm]; tracks", 100, -0.5, 0.5);
808  hdz = fs->make<TH1D>("h_dz", "Track d_{z} ; track d_{z} [cm]; tracks", 100, -20, 20);
809 
810  hd0PVvsphi =
811  fs->make<TH2D>("h2_d0PVvsphi", "hd0PVvsphi;track #phi;track d_{0}(PV) [cm]", 160, -M_PI, M_PI, 100, -1., 1.);
812  hd0PVvseta =
813  fs->make<TH2D>("h2_d0PVvseta", "hdPV0vseta;track #eta;track d_{0}(PV) [cm]", 160, -2.5, 2.5, 100, -1., 1.);
814  hd0PVvspt = fs->make<TH2D>("h2_d0PVvspt", "hdPV0vspt;track p_{T};d_{0}(PV) [cm]", 50, 0., 100., 100, -1, 1.);
815 
816  hdxyBS = fs->make<TH1D>("h_dxyBS", "hdxyBS; track d_{xy}(BS) [cm];tracks", 100, -0.1, 0.1);
817  hd0BS = fs->make<TH1D>("h_d0BS", "hd0BS ; track d_{0}(BS) [cm];tracks", 100, -0.1, 0.1);
818  hdzBS = fs->make<TH1D>("h_dzBS", "hdzBS ; track d_{z}(BS) [cm];tracks", 100, -12, 12);
819  hdxyPV = fs->make<TH1D>("h_dxyPV", "hdxyPV; track d_{xy}(PV) [cm];tracks", 100, -0.1, 0.1);
820  hd0PV = fs->make<TH1D>("h_d0PV", "hd0PV ; track d_{0}(PV) [cm];tracks", 100, -0.15, 0.15);
821  hdzPV = fs->make<TH1D>("h_dzPV", "hdzPV ; track d_{z}(PV) [cm];tracks", 100, -0.1, 0.1);
822 
823  hnhTIB = fs->make<TH1D>("h_nHitTIB", "nhTIB;# hits in TIB; tracks", 20, 0., 20.);
824  hnhTID = fs->make<TH1D>("h_nHitTID", "nhTID;# hits in TID; tracks", 20, 0., 20.);
825  hnhTOB = fs->make<TH1D>("h_nHitTOB", "nhTOB;# hits in TOB; tracks", 20, 0., 20.);
826  hnhTEC = fs->make<TH1D>("h_nHitTEC", "nhTEC;# hits in TEC; tracks", 20, 0., 20.);
827 
828  } else {
829  hvx = fs->make<TH1D>("h_vx", "Track v_{x};track v_{x} [cm];tracks", 100, -100., 100.);
830  hvy = fs->make<TH1D>("h_vy", "Track v_{y};track v_{y} [cm];tracks", 100, -100., 100.);
831  hvz = fs->make<TH1D>("h_vz", "Track v_{z};track v_{z} [cm];track", 100, -100., 100.);
832  hd0 = fs->make<TH1D>("h_d0", "Track d_{0};track d_{0} [cm];track", 100, -100., 100.);
833  hdxy = fs->make<TH1D>("h_dxy", "Track d_{xy};track d_{xy} [cm];tracks", 100, -100, 100);
834  hdz = fs->make<TH1D>("h_dz", "Track d_{z};track d_{z} [cm];tracks", 100, -200, 200);
835 
836  hd0vsphi = fs->make<TH2D>(
837  "h2_d0vsphi", "Track d_{0} vs #phi; track #phi;track d_{0} [cm]", 160, -3.20, 3.20, 100, -100., 100.);
838  hd0vseta = fs->make<TH2D>(
839  "h2_d0vseta", "Track d_{0} vs #eta; track #eta;track d_{0} [cm]", 160, -3.20, 3.20, 100, -100., 100.);
840  hd0vspt = fs->make<TH2D>(
841  "h2_d0vspt", "Track d_{0} vs p_{T};track p_{T};track d_{0} [cm]", 50, 0., 100., 100, -100, 100);
842 
843  hdxyBS = fs->make<TH1D>("h_dxyBS", "Track d_{xy}(BS);d_{xy}(BS) [cm];tracks", 100, -100., 100.);
844  hd0BS = fs->make<TH1D>("h_d0BS", "Track d_{0}(BS);d_{0}(BS) [cm];tracks", 100, -100., 100.);
845  hdzBS = fs->make<TH1D>("h_dzBS", "Track d_{z}(BS);d_{z}(BS) [cm];tracks", 100, -100., 100.);
846  hdxyPV = fs->make<TH1D>("h_dxyPV", "Track d_{xy}(PV); d_{xy}(PV) [cm];tracks", 100, -100., 100.);
847  hd0PV = fs->make<TH1D>("h_d0PV", "Track d_{0}(PV); d_{0}(PV) [cm];tracks", 100, -100., 100.);
848  hdzPV = fs->make<TH1D>("h_dzPV", "Track d_{z}(PV); d_{z}(PV) [cm];tracks", 100, -100., 100.);
849 
850  hnhTIB = fs->make<TH1D>("h_nHitTIB", "nhTIB;# hits in TIB; tracks", 30, 0., 30.);
851  hnhTID = fs->make<TH1D>("h_nHitTID", "nhTID;# hits in TID; tracks", 30, 0., 30.);
852  hnhTOB = fs->make<TH1D>("h_nHitTOB", "nhTOB;# hits in TOB; tracks", 30, 0., 30.);
853  hnhTEC = fs->make<TH1D>("h_nHitTEC", "nhTEC;# hits in TEC; tracks", 30, 0., 30.);
854  }
855 
856  hnhpxb = fs->make<TH1D>("h_nHitPXB", "nhpxb;# hits in Pixel Barrel; tracks", 10, 0., 10.);
857  hnhpxe = fs->make<TH1D>("h_nHitPXE", "nhpxe;# hits in Pixel Endcap; tracks", 10, 0., 10.);
858 
859  hHitComposition = fs->make<TH1D>("h_hitcomposition", "track hit composition;;# hits", 6, -0.5, 5.5);
860 
862  fs->make<TProfile>("p_NpixHits_vs_Vx", "n. Barrel Pixel hits vs. v_{x};v_{x} (cm);n. BPix hits", 20, -20, 20);
863 
865  fs->make<TProfile>("p_NpixHits_vs_Vy", "n. Barrel Pixel hits vs. v_{y};v_{y} (cm);n. BPix hits", 20, -20, 20);
866 
868  fs->make<TProfile>("p_NpixHits_vs_Vz", "n. Barrel Pixel hits vs. v_{z};v_{z} (cm);n. BPix hits", 20, -100, 100);
869 
870  std::string dets[6] = {"PXB", "PXF", "TIB", "TID", "TOB", "TEC"};
871 
872  for (int i = 1; i <= hHitComposition->GetNbinsX(); i++) {
873  hHitComposition->GetXaxis()->SetBinLabel(i, (dets[i - 1]).c_str());
874  }
875 
876  vTrackHistos_.push_back(
877  fs->make<TH1F>("h_tracketa", "Track #eta;#eta_{Track};Number of Tracks", 90, -etaMax_, etaMax_));
878  vTrackHistos_.push_back(fs->make<TH1F>("h_trackphi", "Track #phi;#phi_{Track};Number of Tracks", 90, -M_PI, M_PI));
879  vTrackHistos_.push_back(fs->make<TH1F>(
880  "h_trackNumberOfValidHits", "Track # of valid hits;# of valid hits _{Track};Number of Tracks", 40, 0., 40.));
881  vTrackHistos_.push_back(fs->make<TH1F>(
882  "h_trackNumberOfLostHits", "Track # of lost hits;# of lost hits _{Track};Number of Tracks", 10, 0., 10.));
883  vTrackHistos_.push_back(
884  fs->make<TH1F>("h_curvature", "Curvature #kappa;#kappa_{Track};Number of Tracks", 100, -.05, .05));
885  vTrackHistos_.push_back(fs->make<TH1F>(
886  "h_curvature_pos", "Curvature |#kappa| Positive Tracks;|#kappa_{pos Track}|;Number of Tracks", 100, .0, .05));
887  vTrackHistos_.push_back(fs->make<TH1F>(
888  "h_curvature_neg", "Curvature |#kappa| Negative Tracks;|#kappa_{neg Track}|;Number of Tracks", 100, .0, .05));
889  vTrackHistos_.push_back(
890  fs->make<TH1F>("h_diff_curvature",
891  "Curvature |#kappa| Tracks Difference;|#kappa_{Track}|;# Pos Tracks - # Neg Tracks",
892  100,
893  .0,
894  .05));
895 
896  vTrackHistos_.push_back(
897  fs->make<TH1F>("h_chi2", "Track #chi^{2};#chi^{2}_{Track};Number of Tracks", 500, -0.01, 500.));
898  vTrackHistos_.push_back(
899  fs->make<TH1F>("h_chi2Prob", "#chi^{2} probability;Track Prob(#chi^{2},ndof);Number of Tracks", 100, 0.0, 1.));
900  vTrackHistos_.push_back(
901  fs->make<TH1F>("h_normchi2", "#chi^{2}/ndof;#chi^{2}/ndof;Number of Tracks", 100, -0.01, 10.));
902  //variable binning for chi2/ndof vs. pT
903  double xBins[19] = {0., 0.15, 0.5, 1., 1.5, 2., 2.5, 3., 3.5, 4., 4.5, 5., 7., 10., 15., 25., 40., 100., 200.};
904  vTrackHistos_.push_back(fs->make<TH1F>("h_pt", "Track p_{T};p_{T}^{track} [GeV];Number of Tracks", 250, 0., 250));
905  vTrackHistos_.push_back(fs->make<TH1F>("h_ptrebin", "Track p_{T};p_{T}^{track} [GeV];Number of Tracks", 18, xBins));
906  vTrackHistos_.push_back(fs->make<TH1F>(
907  "h_ptResolution", "#delta_{p_{T}}/p_{T}^{track};#delta_{p_{T}}/p_{T}^{track};Number of Tracks", 100, 0., 0.5));
908  vTrackProfiles_.push_back(fs->make<TProfile>(
909  "p_d0_vs_phi", "Transverse Impact Parameter vs. #phi;#phi_{Track};#LT d_{0} #GT [cm]", 100, -M_PI, M_PI));
910  vTrackProfiles_.push_back(fs->make<TProfile>(
911  "p_dz_vs_phi", "Longitudinal Impact Parameter vs. #phi;#phi_{Track};#LT d_{z} #GT [cm]", 100, -M_PI, M_PI));
912  vTrackProfiles_.push_back(fs->make<TProfile>(
913  "p_d0_vs_eta", "Transverse Impact Parameter vs. #eta;#eta_{Track};#LT d_{0} #GT [cm]", 100, -etaMax_, etaMax_));
914  vTrackProfiles_.push_back(
915  fs->make<TProfile>("p_dz_vs_eta",
916  "Longitudinal Impact Parameter vs. #eta;#eta_{Track};#LT d_{z} #GT [cm]",
917  100,
918  -etaMax_,
919  etaMax_));
920  vTrackProfiles_.push_back(
921  fs->make<TProfile>("p_chi2_vs_phi", "#chi^{2} vs. #phi;#phi_{Track};#LT #chi^{2} #GT", 100, -M_PI, M_PI));
922  vTrackProfiles_.push_back(
923  fs->make<TProfile>("p_chi2Prob_vs_phi",
924  "#chi^{2} probablility vs. #phi;#phi_{Track};#LT #chi^{2} probability#GT",
925  100,
926  -M_PI,
927  M_PI));
928 
929  vTrackProfiles_.push_back(fs->make<TProfile>(
930  "p_chi2Prob_vs_d0", "#chi^{2} probablility vs. |d_{0}|;|d_{0}|[cm];#LT #chi^{2} probability#GT", 100, 0, 80));
931  vTrackProfiles_.push_back(fs->make<TProfile>(
932  "p_chi2Prob_vs_dz", "#chi^{2} probablility vs. dz;d_{z} [cm];#LT #chi^{2} probability#GT", 100, -30, 30));
933  vTrackProfiles_.push_back(fs->make<TProfile>(
934  "p_normchi2_vs_phi", "#chi^{2}/ndof vs. #phi;#phi_{Track};#LT #chi^{2}/ndof #GT", 100, -M_PI, M_PI));
935  vTrackProfiles_.push_back(
936  fs->make<TProfile>("p_chi2_vs_eta", "#chi^{2} vs. #eta;#eta_{Track};#LT #chi^{2} #GT", 100, -etaMax_, etaMax_));
937  vTrackProfiles_.push_back(fs->make<TProfile>(
938  "p_normchi2_vs_pt", "norm #chi^{2} vs. p_{T}_{Track}; p_{T}_{Track};#LT #chi^{2}/ndof #GT", 18, xBins));
939  vTrackProfiles_.push_back(fs->make<TProfile>(
940  "p_normchi2_vs_p", "#chi^{2}/ndof vs. p_{Track};p_{Track};#LT #chi^{2}/ndof #GT", 18, xBins));
941  vTrackProfiles_.push_back(
942  fs->make<TProfile>("p_chi2Prob_vs_eta",
943  "#chi^{2} probability vs. #eta;#eta_{Track};#LT #chi^{2} probability #GT",
944  100,
945  -etaMax_,
946  etaMax_));
947 
948  vTrackProfiles_.push_back(fs->make<TProfile>(
949  "p_normchi2_vs_eta", "#chi^{2}/ndof vs. #eta;#eta_{Track};#LT #chi^{2}/ndof #GT", 100, -etaMax_, etaMax_));
950  vTrackProfiles_.push_back(
951  fs->make<TProfile>("p_kappa_vs_phi", "#kappa vs. #phi;#phi_{Track};#kappa", 100, -M_PI, M_PI));
952  vTrackProfiles_.push_back(
953  fs->make<TProfile>("p_kappa_vs_eta", "#kappa vs. #eta;#eta_{Track};#kappa", 100, -etaMax_, etaMax_));
954  vTrackProfiles_.push_back(
955  fs->make<TProfile>("p_ptResolution_vs_phi",
956  "#delta_{p_{T}}/p_{T}^{track};#phi^{track};#delta_{p_{T}}/p_{T}^{track}",
957  100,
958  -M_PI,
959  M_PI));
960 
961  vTrackProfiles_.push_back(
962  fs->make<TProfile>("p_ptResolution_vs_eta",
963  "#delta_{p_{T}}/p_{T}^{track};#eta^{track};#delta_{p_{T}}/p_{T}^{track}",
964  100,
965  -etaMax_,
966  etaMax_));
967 
968  vTrack2DHistos_.push_back(fs->make<TH2F>(
969  "h2_d0_vs_phi", "Transverse Impact Parameter vs. #phi;#phi_{Track};d_{0} [cm]", 100, -M_PI, M_PI, 100, -1., 1.));
970  vTrack2DHistos_.push_back(fs->make<TH2F>("h2_dz_vs_phi",
971  "Longitudinal Impact Parameter vs. #phi;#phi_{Track};d_{z} [cm]",
972  100,
973  -M_PI,
974  M_PI,
975  100,
976  -100.,
977  100.));
978 
979  vTrack2DHistos_.push_back(fs->make<TH2F>("h2_d0_vs_eta",
980  "Transverse Impact Parameter vs. #eta;#eta_{Track};d_{0} [cm]",
981  100,
982  -etaMax_,
983  etaMax_,
984  100,
985  -1.,
986  1.));
987  vTrack2DHistos_.push_back(fs->make<TH2F>("h2_dz_vs_eta",
988  "Longitudinal Impact Parameter vs. #eta;#eta_{Track};d_{z} [cm]",
989  100,
990  -etaMax_,
991  etaMax_,
992  100,
993  -100.,
994  100.));
995 
996  vTrack2DHistos_.push_back(
997  fs->make<TH2F>("h2_chi2_vs_phi", "#chi^{2} vs. #phi;#phi_{Track};#chi^{2}", 100, -M_PI, M_PI, 500, 0., 500.));
998  vTrack2DHistos_.push_back(fs->make<TH2F>("h2_chi2Prob_vs_phi",
999  "#chi^{2} probability vs. #phi;#phi_{Track};#chi^{2} probability",
1000  100,
1001  -M_PI,
1002  M_PI,
1003  100,
1004  0.,
1005  1.));
1006 
1007  vTrack2DHistos_.push_back(fs->make<TH2F>("h2_chi2Prob_vs_d0",
1008  "#chi^{2} probability vs. |d_{0}|;|d_{0}| [cm];#chi^{2} probability",
1009  100,
1010  0,
1011  80,
1012  100,
1013  0.,
1014  1.));
1015 
1016  vTrack2DHistos_.push_back(fs->make<TH2F>(
1017  "h2_normchi2_vs_phi", "#chi^{2}/ndof vs. #phi;#phi_{Track};#chi^{2}/ndof", 100, -M_PI, M_PI, 100, 0., 10.));
1018  vTrack2DHistos_.push_back(fs->make<TH2F>(
1019  "h2_chi2_vs_eta", "#chi^{2} vs. #eta;#eta_{Track};#chi^{2}", 100, -etaMax_, etaMax_, 500, 0., 500.));
1020  vTrack2DHistos_.push_back(fs->make<TH2F>("h2_chi2Prob_vs_eta",
1021  "#chi^{2} probaility vs. #eta;#eta_{Track};#chi^{2} probability",
1022  100,
1023  -etaMax_,
1024  etaMax_,
1025  100,
1026  0.,
1027  1.));
1028 
1029  vTrack2DHistos_.push_back(fs->make<TH2F>(
1030  "h2_normchi2_vs_eta", "#chi^{2}/ndof vs. #eta;#eta_{Track};#chi^{2}/ndof", 100, -etaMax_, etaMax_, 100, 0., 10.));
1031  vTrack2DHistos_.push_back(
1032  fs->make<TH2F>("h2_kappa_vs_phi", "#kappa vs. #phi;#phi_{Track};#kappa", 100, -M_PI, M_PI, 100, .0, .05));
1033  vTrack2DHistos_.push_back(
1034  fs->make<TH2F>("h2_kappa_vs_eta", "#kappa vs. #eta;#eta_{Track};#kappa", 100, -etaMax_, etaMax_, 100, .0, .05));
1035  vTrack2DHistos_.push_back(fs->make<TH2F>(
1036  "h2_normchi2_vs_kappa", "#kappa vs. #chi^{2}/ndof;#chi^{2}/ndof;#kappa", 100, 0., 10, 100, -.03, .03));
1037 
1038  firstEvent_ = true;
1039 
1040  } //beginJob

References reco::TrackBase::algoNames, reco::TrackBase::algoSize, DEBUG, etaMax_, firstEvent_, fs, hCharge, hchi2ndof, hchi2ndofhp, hchi2Probhp, hd0, hd0BS, hd0PV, hd0PVvseta, hd0PVvsphi, hd0PVvspt, hd0vseta, hd0vsphi, hd0vspt, hdxy, hdxyBS, hdxyPV, hdz, hdzBS, hdzPV, hEta, hEtahp, hHit, hHit2D, hHitComposition, hHitCountVsPhiBPix, hHitCountVsPhiFPix, hHitCountVsThetaBPix, hHitCountVsThetaFPix, hHitCountVsXBPix, hHitCountVsXFPix, hHitCountVsYBPix, hHitCountVsYFPix, hHitCountVsZBPix, hHitCountVsZFPix, hHithp, hlumi, hNhighPurity, hnhpxb, hnhpxe, hnhTEC, hnhTIB, hnhTID, hnhTOB, hNtrk, hNtrkZoom, hP, hPhi, hPhiBarrel, hPhiEndcapMinus, hPhiEndcapPlus, hPhihp, hPhiOverlapMinus, hPhiOverlapPlus, hPhp, hPt, hPthp, hQoverP, hQoverPZoom, hrun, htrkAlgo, htrkOriAlgo, htrkQuality, hvx, hvy, hvz, mps_fire::i, ievt, isCosmics_, isPhase1_, itrks, M_PI, TFileService::make(), pNBpixHitsVsVx, pNBpixHitsVsVy, pNBpixHitsVsVz, AlCaHLTBitMon_QueryRunRegistry::string, vTrack2DHistos_, vTrackHistos_, vTrackProfiles_, and multiplicitycorr_cfi::xBins.

◆ beginRun()

void GeneralPurposeTrackAnalyzer::beginRun ( edm::Run const &  run,
edm::EventSetup const &  setup 
)
inlineoverrideprivate

Definition at line 676 of file GeneralPurposeTrackAnalyzer.cc.

678  {
679  // Magnetic Field setup
680  magneticField_ = setup.getHandle(magFieldToken_);
681  float B_ = magneticField_.product()->inTesla(GlobalPoint(0, 0, 0)).mag();
682 
683  if (DEBUG) {
684  edm::LogInfo("GeneralPurposeTrackAnalyzer")
685  << "run number:" << run.run() << " magnetic field: " << B_ << " [T]" << std::endl;
686  }
687 
688  //SiStrip Latency
690  if (apvlat->singleReadOutMode() == 1) {
691  mode = 1; // peak mode
692  } else if (apvlat->singleReadOutMode() == 0) {
693  mode = -1; // deco mode
694  }
695 
696  conditionsMap_[run.run()].first = mode;
697  conditionsMap_[run.run()].second = B_;
698  }

References conditionsMap_, DEBUG, MagneticField::inTesla(), latencyToken_, PV3DBase< T, PVType, FrameType >::mag(), magFieldToken_, magneticField_, mode, edm::ESHandle< T >::product(), writedatasetfile::run, singleTopDQM_cfi::setup, and SiStripLatency::singleReadOutMode().

◆ endJob()

void GeneralPurposeTrackAnalyzer::endJob ( void  )
inlineoverrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 1043 of file GeneralPurposeTrackAnalyzer.cc.

1045  {
1046  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "*******************************" << std::endl;
1047  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "Events run in total: " << ievt << std::endl;
1048  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "n. tracks: " << itrks << std::endl;
1049  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "*******************************" << std::endl;
1050 
1051  int nFiringTriggers = triggerMap_.size();
1052  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "firing triggers: " << nFiringTriggers << std::endl;
1053  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "*******************************" << std::endl;
1054 
1055  tksByTrigger_ = fs->make<TH1D>(
1056  "tksByTrigger", "tracks by HLT path;;% of # traks", nFiringTriggers, -0.5, nFiringTriggers - 0.5);
1057  evtsByTrigger_ = fs->make<TH1D>(
1058  "evtsByTrigger", "events by HLT path;;% of # events", nFiringTriggers, -0.5, nFiringTriggers - 0.5);
1059 
1060  int i = 0;
1061  for (const auto &it : triggerMap_) {
1062  i++;
1063 
1064  double trkpercent = ((it.second).second) * 100. / double(itrks);
1065  double evtpercent = ((it.second).first) * 100. / double(ievt);
1066 
1067  std::cout.precision(4);
1068 
1069  edm::LogPrint("GeneralPurposeTrackAnalyzer")
1070  << "HLT path: " << std::setw(60) << std::left << it.first << " | events firing: " << std::right
1071  << std::setw(8) << (it.second).first << " (" << std::setw(8) << std::fixed << std::setprecision(4)
1072  << evtpercent << "%)"
1073  << " | tracks collected: " << std::setw(10) << (it.second).second << " (" << std::setw(8) << std::fixed
1074  << std::setprecision(4) << trkpercent << "%)";
1075 
1076  tksByTrigger_->SetBinContent(i, trkpercent);
1077  tksByTrigger_->GetXaxis()->SetBinLabel(i, (it.first).c_str());
1078 
1079  evtsByTrigger_->SetBinContent(i, evtpercent);
1080  evtsByTrigger_->GetXaxis()->SetBinLabel(i, (it.first).c_str());
1081  }
1082 
1083  int nRuns = conditionsMap_.size();
1084 
1085  std::vector<int> theRuns_;
1086  for (const auto &it : conditionsMap_) {
1087  theRuns_.push_back(it.first);
1088  }
1089 
1090  sort(theRuns_.begin(), theRuns_.end());
1091  int runRange = theRuns_.back() - theRuns_.front() + 1;
1092 
1093  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "*******************************" << std::endl;
1094  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "first run: " << theRuns_.front() << std::endl;
1095  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "last run: " << theRuns_.back() << std::endl;
1096  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "considered runs: " << nRuns << std::endl;
1097  edm::LogPrint("GeneralPurposeTrackAnalyzer") << "*******************************" << std::endl;
1098 
1099  modeByRun_ = fs->make<TH1D>("modeByRun",
1100  "Strip APV mode by run number;;APV mode (-1=deco,+1=peak)",
1101  runRange,
1102  theRuns_.front() - 0.5,
1103  theRuns_.back() + 0.5);
1104 
1105  fieldByRun_ = fs->make<TH1D>("fieldByRun",
1106  "CMS B-field intensity by run number;;B-field intensity [T]",
1107  runRange,
1108  theRuns_.front() - 0.5,
1109  theRuns_.back() + 0.5);
1110 
1111  for (const auto &the_r : theRuns_) {
1112  if (conditionsMap_.find(the_r)->second.first != 0) {
1113  edm::LogPrint("GeneralPurposeTrackAnalyzer")
1114  << "run:" << the_r << " | isPeak: " << std::setw(4) << conditionsMap_.find(the_r)->second.first
1115  << "| B-field: " << conditionsMap_.find(the_r)->second.second << " [T]"
1116  << "| events: " << std::setw(10) << runInfoMap_.find(the_r)->second.first << ", tracks " << std::setw(10)
1117  << runInfoMap_.find(the_r)->second.second << std::endl;
1118  }
1119 
1120  modeByRun_->SetBinContent((the_r - theRuns_.front()) + 1, conditionsMap_.find(the_r)->second.first);
1121  fieldByRun_->SetBinContent((the_r - theRuns_.front()) + 1, conditionsMap_.find(the_r)->second.second);
1122  modeByRun_->GetXaxis()->SetBinLabel((the_r - theRuns_.front()) + 1, std::to_string(the_r).c_str());
1123  fieldByRun_->GetXaxis()->SetBinLabel((the_r - theRuns_.front()) + 1, std::to_string(the_r).c_str());
1124  }
1125 
1126  pmap->save(true, 0, 0, "PixelHitMap.pdf", 600, 800);
1127  pmap->save(true, 0, 0, "PixelHitMap.png", 500, 750);
1128 
1129  tmap->save(true, 0, 0, "StripHitMap.pdf");
1130  tmap->save(true, 0, 0, "StripHitMap.png");
1131 
1132  gStyle->SetPalette(kRainBow);
1133  pixelmap->beautifyAllHistograms();
1134 
1135  TCanvas cB("CanvBarrel", "CanvBarrel", 1200, 1000);
1136  pixelmap->drawBarrelMaps("entriesBarrel", cB);
1137  cB.SaveAs("pixelBarrelEntries.png");
1138 
1139  TCanvas cF("CanvForward", "CanvForward", 1600, 1000);
1140  pixelmap->drawForwardMaps("entriesForward", cF);
1141  cF.SaveAs("pixelForwardEntries.png");
1142  }

References conditionsMap_, gather_cfg::cout, evtsByTrigger_, fieldByRun_, first, alignBH_cfg::fixed, fs, mps_fire::i, ievt, itrks, TFileService::make(), modeByRun_, pixelmap, pmap, runInfoMap_, edm::second(), jetUpdater_cfi::sort, tksByTrigger_, tmap, and triggerMap_.

Referenced by o2olib.O2ORunMgr::executeJob().

◆ endRun()

void GeneralPurposeTrackAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprivate

Definition at line 701 of file GeneralPurposeTrackAnalyzer.cc.

701 {}

◆ fillDescriptions()

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

Definition at line 1189 of file GeneralPurposeTrackAnalyzer.cc.

1191 {
1193  desc.setComment("Generic track analyzer to check ALCARECO sample quantities");
1194  desc.add<edm::InputTag>("TkTag", edm::InputTag("generalTracks"));
1195  desc.add<edm::InputTag>("TriggerResultsTag", edm::InputTag("TriggerResults", "", "HLT"));
1196  desc.add<edm::InputTag>("BeamSpotTag", edm::InputTag("offlineBeamSpot"));
1197  desc.add<edm::InputTag>("VerticesTag", edm::InputTag("offlinePrimaryVertices"));
1198  desc.add<bool>("isCosmics", false);
1199  descriptions.add("GeneralPurposeTrackAnalyzer", desc);
1200 }

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

◆ GetIndex()

template<class OBJECT_TYPE >
int GeneralPurposeTrackAnalyzer::GetIndex ( const std::vector< OBJECT_TYPE * > &  vec,
const TString &  name 
)
inline

Definition at line 126 of file GeneralPurposeTrackAnalyzer.cc.

126  {
127  for (const auto &iter : vec | boost::adaptors::indexed(0)) {
128  if (iter.value() && iter.value()->GetName() == name) {
129  return iter.index();
130  }
131  }
132  edm::LogError("GeneralPurposeTrackAnalyzer") << "@SUB=GeneralPurposeTrackAnalyzer::GetIndex"
133  << " could not find " << name;
134  return -1;
135  }

References Skims_PA_cff::name.

Referenced by analyze().

◆ isHit2D()

bool GeneralPurposeTrackAnalyzer::isHit2D ( const TrackingRecHit hit)
inlineprivate

Definition at line 1145 of file GeneralPurposeTrackAnalyzer.cc.

1147  {
1148  bool countStereoHitAs2D_ = true;
1149  // we count SiStrip stereo modules as 2D if selected via countStereoHitAs2D_
1150  // (since they provide theta information)
1151  if (!hit.isValid() ||
1152  (hit.dimension() < 2 && !countStereoHitAs2D_ && !dynamic_cast<const SiStripRecHit1D *>(&hit))) {
1153  return false; // real RecHit1D - but SiStripRecHit1D depends on countStereoHitAs2D_
1154  } else {
1155  const DetId detId(hit.geographicalId());
1156  if (detId.det() == DetId::Tracker) {
1157  if (detId.subdetId() == kBPIX || detId.subdetId() == kFPIX) {
1158  return true; // pixel is always 2D
1159  } else { // should be SiStrip now
1160  const SiStripDetId stripId(detId);
1161  if (stripId.stereo())
1162  return countStereoHitAs2D_; // stereo modules
1163  else if (dynamic_cast<const SiStripRecHit1D *>(&hit) || dynamic_cast<const SiStripRecHit2D *>(&hit))
1164  return false; // rphi modules hit
1165  //the following two are not used any more since ages...
1166  else if (dynamic_cast<const SiStripMatchedRecHit2D *>(&hit))
1167  return true; // matched is 2D
1168  else if (dynamic_cast<const ProjectedSiStripRecHit2D *>(&hit)) {
1169  const ProjectedSiStripRecHit2D *pH = static_cast<const ProjectedSiStripRecHit2D *>(&hit);
1170  return (countStereoHitAs2D_ && this->isHit2D(pH->originalHit())); // depends on original...
1171  } else {
1172  edm::LogError("UnknownType") << "@SUB=GeneralPurposeTrackAnalyzer::isHit2D"
1173  << "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
1174  << "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
1175  return false;
1176  }
1177  }
1178  } else { // not tracker??
1179  edm::LogWarning("DetectorMismatch") << "@SUB=GeneralPurposeTrackAnalyzer::isHit2D"
1180  << "Hit not in tracker with 'official' dimension >=2.";
1181  return true; // dimension() >= 2 so accept that...
1182  }
1183  }
1184  // never reached...
1185  }

References kBPIX, kFPIX, ProjectedSiStripRecHit2D::originalHit(), SiStripDetId::stereo(), and DetId::Tracker.

Referenced by analyze().

Member Data Documentation

◆ BeamSpotTag_

edm::InputTag GeneralPurposeTrackAnalyzer::BeamSpotTag_
private

Definition at line 272 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by GeneralPurposeTrackAnalyzer().

◆ beamspotToken

edm::EDGetTokenT<reco::BeamSpot> GeneralPurposeTrackAnalyzer::beamspotToken
private

Definition at line 279 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and GeneralPurposeTrackAnalyzer().

◆ conditionsMap_

std::map<int, std::pair<int, float> > GeneralPurposeTrackAnalyzer::conditionsMap_
private

Definition at line 283 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginRun(), and endJob().

◆ etaMax_

float GeneralPurposeTrackAnalyzer::etaMax_
private

Definition at line 266 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginJob().

◆ evtsByTrigger_

TH1D* GeneralPurposeTrackAnalyzer::evtsByTrigger_
private

Definition at line 256 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by endJob().

◆ fieldByRun_

TH1D* GeneralPurposeTrackAnalyzer::fieldByRun_
private

Definition at line 259 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by endJob().

◆ firstEvent_

bool GeneralPurposeTrackAnalyzer::firstEvent_
private

Definition at line 264 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginJob().

◆ fs

edm::Service<TFileService> GeneralPurposeTrackAnalyzer::fs
private

Definition at line 145 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginJob(), and endJob().

◆ geomToken_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> GeneralPurposeTrackAnalyzer::geomToken_
private

Definition at line 139 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze().

◆ hCharge

TH1D* GeneralPurposeTrackAnalyzer::hCharge
private

Definition at line 193 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hchi2ndof

TH1D* GeneralPurposeTrackAnalyzer::hchi2ndof
private

Definition at line 152 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hchi2ndofhp

TH1D* GeneralPurposeTrackAnalyzer::hchi2ndofhp
private

Definition at line 190 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hchi2Probhp

TH1D* GeneralPurposeTrackAnalyzer::hchi2Probhp
private

Definition at line 191 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0

TH1D* GeneralPurposeTrackAnalyzer::hd0
private

Definition at line 215 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0BS

TH1D* GeneralPurposeTrackAnalyzer::hd0BS
private

Definition at line 243 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0PV

TH1D* GeneralPurposeTrackAnalyzer::hd0PV
private

Definition at line 246 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0PVvseta

TH2D* GeneralPurposeTrackAnalyzer::hd0PVvseta
private

Definition at line 220 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0PVvsphi

TH2D* GeneralPurposeTrackAnalyzer::hd0PVvsphi
private

Definition at line 219 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0PVvspt

TH2D* GeneralPurposeTrackAnalyzer::hd0PVvspt
private

Definition at line 221 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0vseta

TH2D* GeneralPurposeTrackAnalyzer::hd0vseta
private

Definition at line 224 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0vsphi

TH2D* GeneralPurposeTrackAnalyzer::hd0vsphi
private

Definition at line 223 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hd0vspt

TH2D* GeneralPurposeTrackAnalyzer::hd0vspt
private

Definition at line 225 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hDeltaEta

TH1D* GeneralPurposeTrackAnalyzer::hDeltaEta
private

Definition at line 209 of file GeneralPurposeTrackAnalyzer.cc.

◆ hDeltaPhi

TH1D* GeneralPurposeTrackAnalyzer::hDeltaPhi
private

Definition at line 208 of file GeneralPurposeTrackAnalyzer.cc.

◆ hDeltaR

TH1D* GeneralPurposeTrackAnalyzer::hDeltaR
private

Definition at line 210 of file GeneralPurposeTrackAnalyzer.cc.

◆ hdxy

TH1D* GeneralPurposeTrackAnalyzer::hdxy
private

Definition at line 217 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hdxyBS

TH1D* GeneralPurposeTrackAnalyzer::hdxyBS
private

Definition at line 242 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hdxyPV

TH1D* GeneralPurposeTrackAnalyzer::hdxyPV
private

Definition at line 245 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hdz

TH1D* GeneralPurposeTrackAnalyzer::hdz
private

Definition at line 216 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hdzBS

TH1D* GeneralPurposeTrackAnalyzer::hdzBS
private

Definition at line 244 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hdzPV

TH1D* GeneralPurposeTrackAnalyzer::hdzPV
private

Definition at line 247 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hEta

TH1D* GeneralPurposeTrackAnalyzer::hEta
private

Definition at line 196 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hEtahp

TH1D* GeneralPurposeTrackAnalyzer::hEtahp
private

Definition at line 188 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hEtaMinus

TH1D* GeneralPurposeTrackAnalyzer::hEtaMinus
private

Definition at line 198 of file GeneralPurposeTrackAnalyzer.cc.

◆ hEtaPlus

TH1D* GeneralPurposeTrackAnalyzer::hEtaPlus
private

Definition at line 197 of file GeneralPurposeTrackAnalyzer.cc.

◆ hHit

TH1D* GeneralPurposeTrackAnalyzer::hHit
private

Definition at line 166 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHit2D

TH1D* GeneralPurposeTrackAnalyzer::hHit2D
private

Definition at line 167 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitComposition

TH1D* GeneralPurposeTrackAnalyzer::hHitComposition
private

Definition at line 234 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsPhiBPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsPhiBPix
private

Definition at line 177 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsPhiFPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsPhiFPix
private

Definition at line 180 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsThetaBPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsThetaBPix
private

Definition at line 176 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsThetaFPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsThetaFPix
private

Definition at line 179 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsXBPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsXBPix
private

Definition at line 169 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsXFPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsXFPix
private

Definition at line 170 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsYBPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsYBPix
private

Definition at line 171 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsYFPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsYFPix
private

Definition at line 172 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsZBPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsZBPix
private

Definition at line 173 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitCountVsZFPix

TH1D* GeneralPurposeTrackAnalyzer::hHitCountVsZFPix
private

Definition at line 174 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHithp

TH1D* GeneralPurposeTrackAnalyzer::hHithp
private

Definition at line 187 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hHitMinus

TH1D* GeneralPurposeTrackAnalyzer::hHitMinus
private

Definition at line 183 of file GeneralPurposeTrackAnalyzer.cc.

◆ hHitPlus

TH1D* GeneralPurposeTrackAnalyzer::hHitPlus
private

Definition at line 182 of file GeneralPurposeTrackAnalyzer.cc.

◆ hltresultsToken

edm::EDGetTokenT<edm::TriggerResults> GeneralPurposeTrackAnalyzer::hltresultsToken
private

Definition at line 278 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and GeneralPurposeTrackAnalyzer().

◆ hlumi

TH1D* GeneralPurposeTrackAnalyzer::hlumi
private

Definition at line 249 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hMinPt

TH1D* GeneralPurposeTrackAnalyzer::hMinPt
private

Definition at line 163 of file GeneralPurposeTrackAnalyzer.cc.

◆ hMultCand

TH1D* GeneralPurposeTrackAnalyzer::hMultCand
private

Definition at line 240 of file GeneralPurposeTrackAnalyzer.cc.

◆ hNhighPurity

TH1D* GeneralPurposeTrackAnalyzer::hNhighPurity
private

Definition at line 158 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hnhpxb

TH1D* GeneralPurposeTrackAnalyzer::hnhpxb
private

Definition at line 227 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hnhpxe

TH1D* GeneralPurposeTrackAnalyzer::hnhpxe
private

Definition at line 228 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hnhTEC

TH1D* GeneralPurposeTrackAnalyzer::hnhTEC
private

Definition at line 232 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hnhTIB

TH1D* GeneralPurposeTrackAnalyzer::hnhTIB
private

Definition at line 229 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hnhTID

TH1D* GeneralPurposeTrackAnalyzer::hnhTID
private

Definition at line 230 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hnhTOB

TH1D* GeneralPurposeTrackAnalyzer::hnhTOB
private

Definition at line 231 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hNtrk

TH1D* GeneralPurposeTrackAnalyzer::hNtrk
private

Definition at line 153 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hNtrkZoom

TH1D* GeneralPurposeTrackAnalyzer::hNtrkZoom
private

Definition at line 154 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hP

TH1D* GeneralPurposeTrackAnalyzer::hP
private

Definition at line 159 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhi

TH1D* GeneralPurposeTrackAnalyzer::hPhi
private

Definition at line 199 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhiBarrel

TH1D* GeneralPurposeTrackAnalyzer::hPhiBarrel
private

Definition at line 200 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhiEndcapMinus

TH1D* GeneralPurposeTrackAnalyzer::hPhiEndcapMinus
private

Definition at line 204 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhiEndcapPlus

TH1D* GeneralPurposeTrackAnalyzer::hPhiEndcapPlus
private

Definition at line 203 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhihp

TH1D* GeneralPurposeTrackAnalyzer::hPhihp
private

Definition at line 189 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhiMinus

TH1D* GeneralPurposeTrackAnalyzer::hPhiMinus
private

Definition at line 206 of file GeneralPurposeTrackAnalyzer.cc.

◆ hPhiOverlapMinus

TH1D* GeneralPurposeTrackAnalyzer::hPhiOverlapMinus
private

Definition at line 202 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhiOverlapPlus

TH1D* GeneralPurposeTrackAnalyzer::hPhiOverlapPlus
private

Definition at line 201 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPhiPlus

TH1D* GeneralPurposeTrackAnalyzer::hPhiPlus
private

Definition at line 205 of file GeneralPurposeTrackAnalyzer.cc.

◆ hPhp

TH1D* GeneralPurposeTrackAnalyzer::hPhp
private

Definition at line 185 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPMinus

TH1D* GeneralPurposeTrackAnalyzer::hPMinus
private

Definition at line 161 of file GeneralPurposeTrackAnalyzer.cc.

◆ hPPlus

TH1D* GeneralPurposeTrackAnalyzer::hPPlus
private

Definition at line 160 of file GeneralPurposeTrackAnalyzer.cc.

◆ hPt

TH1D* GeneralPurposeTrackAnalyzer::hPt
private

Definition at line 162 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPthp

TH1D* GeneralPurposeTrackAnalyzer::hPthp
private

Definition at line 186 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hPtMinus

TH1D* GeneralPurposeTrackAnalyzer::hPtMinus
private

Definition at line 165 of file GeneralPurposeTrackAnalyzer.cc.

◆ hPtPlus

TH1D* GeneralPurposeTrackAnalyzer::hPtPlus
private

Definition at line 164 of file GeneralPurposeTrackAnalyzer.cc.

◆ hQoverP

TH1D* GeneralPurposeTrackAnalyzer::hQoverP
private

Definition at line 194 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hQoverPZoom

TH1D* GeneralPurposeTrackAnalyzer::hQoverPZoom
private

Definition at line 195 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hrun

TH1D* GeneralPurposeTrackAnalyzer::hrun
private

Definition at line 248 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ htrkAlgo

TH1I* GeneralPurposeTrackAnalyzer::htrkAlgo
private

Definition at line 156 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ htrkOriAlgo

TH1I* GeneralPurposeTrackAnalyzer::htrkOriAlgo
private

Definition at line 157 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ htrkQuality

TH1I* GeneralPurposeTrackAnalyzer::htrkQuality
private

Definition at line 155 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hvx

TH1D* GeneralPurposeTrackAnalyzer::hvx
private

Definition at line 212 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hvy

TH1D* GeneralPurposeTrackAnalyzer::hvy
private

Definition at line 213 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hvz

TH1D* GeneralPurposeTrackAnalyzer::hvz
private

Definition at line 214 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ ievt

int GeneralPurposeTrackAnalyzer::ievt
private

Definition at line 261 of file GeneralPurposeTrackAnalyzer.cc.

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

◆ isCosmics_

bool GeneralPurposeTrackAnalyzer::isCosmics_
private

Definition at line 275 of file GeneralPurposeTrackAnalyzer.cc.

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

◆ isPhase1_

bool GeneralPurposeTrackAnalyzer::isPhase1_
private

Definition at line 265 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ itrks

int GeneralPurposeTrackAnalyzer::itrks
private

Definition at line 262 of file GeneralPurposeTrackAnalyzer.cc.

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

◆ latencyToken_

const edm::ESGetToken<SiStripLatency, SiStripLatencyRcd> GeneralPurposeTrackAnalyzer::latencyToken_
private

Definition at line 141 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginRun().

◆ magFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> GeneralPurposeTrackAnalyzer::magFieldToken_
private

Definition at line 140 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginRun().

◆ magneticField_

edm::ESHandle<MagneticField> GeneralPurposeTrackAnalyzer::magneticField_
private

Definition at line 143 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginRun().

◆ mode

int GeneralPurposeTrackAnalyzer::mode
private

Definition at line 263 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by beginRun(), and alignment.Alignment::restrictTo().

◆ modeByRun_

TH1D* GeneralPurposeTrackAnalyzer::modeByRun_
private

Definition at line 258 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by endJob().

◆ pixelmap

std::unique_ptr<Phase1PixelMaps> GeneralPurposeTrackAnalyzer::pixelmap
private

Definition at line 150 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), endJob(), and GeneralPurposeTrackAnalyzer().

◆ pmap

std::unique_ptr<TrackerMap> GeneralPurposeTrackAnalyzer::pmap
private

Definition at line 148 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), endJob(), and GeneralPurposeTrackAnalyzer().

◆ pNBpixHitsVsVx

TProfile* GeneralPurposeTrackAnalyzer::pNBpixHitsVsVx
private

Definition at line 236 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ pNBpixHitsVsVy

TProfile* GeneralPurposeTrackAnalyzer::pNBpixHitsVsVy
private

Definition at line 237 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ pNBpixHitsVsVz

TProfile* GeneralPurposeTrackAnalyzer::pNBpixHitsVsVz
private

Definition at line 238 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ runInfoMap_

std::map<int, std::pair<int, int> > GeneralPurposeTrackAnalyzer::runInfoMap_
private

Definition at line 284 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and endJob().

◆ theTrackCollectionToken

edm::EDGetTokenT<reco::TrackCollection> GeneralPurposeTrackAnalyzer::theTrackCollectionToken
private

Definition at line 277 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and GeneralPurposeTrackAnalyzer().

◆ tksByTrigger_

TH1D* GeneralPurposeTrackAnalyzer::tksByTrigger_
private

Definition at line 255 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by endJob().

◆ TkTag_

edm::InputTag GeneralPurposeTrackAnalyzer::TkTag_
private

Definition at line 270 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by GeneralPurposeTrackAnalyzer().

◆ tmap

std::unique_ptr<TrackerMap> GeneralPurposeTrackAnalyzer::tmap
private

Definition at line 147 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), endJob(), and GeneralPurposeTrackAnalyzer().

◆ trackerGeometry_

const TrackerGeometry* GeneralPurposeTrackAnalyzer::trackerGeometry_
private

Definition at line 268 of file GeneralPurposeTrackAnalyzer.cc.

◆ triggerMap_

std::map<std::string, std::pair<int, int> > GeneralPurposeTrackAnalyzer::triggerMap_
private

Definition at line 282 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and endJob().

◆ TriggerResultsTag_

edm::InputTag GeneralPurposeTrackAnalyzer::TriggerResultsTag_
private

Definition at line 271 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by GeneralPurposeTrackAnalyzer().

◆ vertexToken

edm::EDGetTokenT<reco::VertexCollection> GeneralPurposeTrackAnalyzer::vertexToken
private

Definition at line 280 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by GeneralPurposeTrackAnalyzer().

◆ VerticesTag_

edm::InputTag GeneralPurposeTrackAnalyzer::VerticesTag_
private

Definition at line 273 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by GeneralPurposeTrackAnalyzer().

◆ vTrack2DHistos_

std::vector<TH1 *> GeneralPurposeTrackAnalyzer::vTrack2DHistos_
private

Definition at line 253 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ vTrackHistos_

std::vector<TH1 *> GeneralPurposeTrackAnalyzer::vTrackHistos_
private

Definition at line 251 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ vTrackProfiles_

std::vector<TH1 *> GeneralPurposeTrackAnalyzer::vTrackProfiles_
private

Definition at line 252 of file GeneralPurposeTrackAnalyzer.cc.

Referenced by analyze(), and beginJob().

TrackerGeometry::idToDet
const TrackerGeomDet * idToDet(DetId) const override
Definition: TrackerGeometry.cc:193
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
GeneralPurposeTrackAnalyzer::hHitCountVsYBPix
TH1D * hHitCountVsYBPix
Definition: GeneralPurposeTrackAnalyzer.cc:171
GeneralPurposeTrackAnalyzer::itrks
int itrks
Definition: GeneralPurposeTrackAnalyzer.cc:262
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
GeneralPurposeTrackAnalyzer::conditionsMap_
std::map< int, std::pair< int, float > > conditionsMap_
Definition: GeneralPurposeTrackAnalyzer.cc:283
MagneticField::inTesla
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
mps_fire.i
i
Definition: mps_fire.py:428
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
GeneralPurposeTrackAnalyzer::hnhTOB
TH1D * hnhTOB
Definition: GeneralPurposeTrackAnalyzer.cc:231
reco::TrackBase::tight
Definition: TrackBase.h:153
GeneralPurposeTrackAnalyzer::hd0BS
TH1D * hd0BS
Definition: GeneralPurposeTrackAnalyzer.cc:243
PixelSubdetector::PixelEndcap
Definition: PixelSubdetector.h:11
reco::TrackBase::loose
Definition: TrackBase.h:152
GeomDet
Definition: GeomDet.h:27
PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
reco::TrackBase::goodIterative
Definition: TrackBase.h:156
HLTBitAnalyser_cfi.hltresults
hltresults
Definition: HLTBitAnalyser_cfi.py:13
GeneralPurposeTrackAnalyzer::triggerMap_
std::map< std::string, std::pair< int, int > > triggerMap_
Definition: GeneralPurposeTrackAnalyzer.cc:282
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
GeneralPurposeTrackAnalyzer::vTrack2DHistos_
std::vector< TH1 * > vTrack2DHistos_
Definition: GeneralPurposeTrackAnalyzer.cc:253
reco::Vertex::z
double z() const
z coordinate
Definition: Vertex.h:133
reco::TrackBase::confirmed
Definition: TrackBase.h:155
GeneralPurposeTrackAnalyzer::isHit2D
bool isHit2D(const TrackingRecHit &hit)
Definition: GeneralPurposeTrackAnalyzer.cc:1145
GeneralPurposeTrackAnalyzer::hd0
TH1D * hd0
Definition: GeneralPurposeTrackAnalyzer.cc:215
GeneralPurposeTrackAnalyzer::hPthp
TH1D * hPthp
Definition: GeneralPurposeTrackAnalyzer.cc:186
PV3DBase::theta
Geom::Theta< T > theta() const
Definition: PV3DBase.h:72
reco::TrackBase::undefQuality
Definition: TrackBase.h:151
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
gather_cfg.cout
cout
Definition: gather_cfg.py:144
geometry
Definition: geometry.py:1
edm::LogPrint
Log< level::Warning, true > LogPrint
Definition: MessageLogger.h:130
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
GeneralPurposeTrackAnalyzer::hvz
TH1D * hvz
Definition: GeneralPurposeTrackAnalyzer.cc:214
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
GeneralPurposeTrackAnalyzer::hNhighPurity
TH1D * hNhighPurity
Definition: GeneralPurposeTrackAnalyzer.cc:158
GeneralPurposeTrackAnalyzer::tksByTrigger_
TH1D * tksByTrigger_
Definition: GeneralPurposeTrackAnalyzer.cc:255
GeneralPurposeTrackAnalyzer::hnhpxb
TH1D * hnhpxb
Definition: GeneralPurposeTrackAnalyzer.cc:227
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
GeneralPurposeTrackAnalyzer::hHitCountVsPhiFPix
TH1D * hHitCountVsPhiFPix
Definition: GeneralPurposeTrackAnalyzer.cc:180
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
HLTEgPhaseIITestSequence_cff.kappa
kappa
Definition: HLTEgPhaseIITestSequence_cff.py:1343
GeneralPurposeTrackAnalyzer::TriggerResultsTag_
edm::InputTag TriggerResultsTag_
Definition: GeneralPurposeTrackAnalyzer.cc:271
GeneralPurposeTrackAnalyzer::hHitCountVsPhiBPix
TH1D * hHitCountVsPhiBPix
Definition: GeneralPurposeTrackAnalyzer.cc:177
GeneralPurposeTrackAnalyzer::magneticField_
edm::ESHandle< MagneticField > magneticField_
Definition: GeneralPurposeTrackAnalyzer.cc:143
GeneralPurposeTrackAnalyzer::hHitCountVsThetaFPix
TH1D * hHitCountVsThetaFPix
Definition: GeneralPurposeTrackAnalyzer.cc:179
edm::Handle< reco::TrackCollection >
GeneralPurposeTrackAnalyzer::beamspotToken
edm::EDGetTokenT< reco::BeamSpot > beamspotToken
Definition: GeneralPurposeTrackAnalyzer.cc:279
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
ProjectedSiStripRecHit2D
Definition: ProjectedSiStripRecHit2D.h:8
GeneralPurposeTrackAnalyzer::hd0PVvspt
TH2D * hd0PVvspt
Definition: GeneralPurposeTrackAnalyzer.cc:221
GeneralPurposeTrackAnalyzer::hdxy
TH1D * hdxy
Definition: GeneralPurposeTrackAnalyzer.cc:217
SiPixelRecHit
Our base class.
Definition: SiPixelRecHit.h:23
GeneralPurposeTrackAnalyzer::runInfoMap_
std::map< int, std::pair< int, int > > runInfoMap_
Definition: GeneralPurposeTrackAnalyzer.cc:284
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
GeneralPurposeTrackAnalyzer::modeByRun_
TH1D * modeByRun_
Definition: GeneralPurposeTrackAnalyzer.cc:258
GeneralPurposeTrackAnalyzer::hHitCountVsYFPix
TH1D * hHitCountVsYFPix
Definition: GeneralPurposeTrackAnalyzer.cc:172
GeneralPurposeTrackAnalyzer::hnhTEC
TH1D * hnhTEC
Definition: GeneralPurposeTrackAnalyzer.cc:232
GeneralPurposeTrackAnalyzer::BeamSpotTag_
edm::InputTag BeamSpotTag_
Definition: GeneralPurposeTrackAnalyzer.cc:272
DetId
Definition: DetId.h:17
GeneralPurposeTrackAnalyzer::hQoverPZoom
TH1D * hQoverPZoom
Definition: GeneralPurposeTrackAnalyzer.cc:195
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
GeneralPurposeTrackAnalyzer::hd0PVvseta
TH2D * hd0PVvseta
Definition: GeneralPurposeTrackAnalyzer.cc:220
GeneralPurposeTrackAnalyzer::isCosmics_
bool isCosmics_
Definition: GeneralPurposeTrackAnalyzer.cc:275
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
GeneralPurposeTrackAnalyzer::hlumi
TH1D * hlumi
Definition: GeneralPurposeTrackAnalyzer.cc:249
GeomDetEnumerators::P1PXEC
Definition: GeomDetEnumerators.h:26
GeneralPurposeTrackAnalyzer::hdxyBS
TH1D * hdxyBS
Definition: GeneralPurposeTrackAnalyzer.cc:242
GeneralPurposeTrackAnalyzer::hdz
TH1D * hdz
Definition: GeneralPurposeTrackAnalyzer.cc:216
GeneralPurposeTrackAnalyzer::hEta
TH1D * hEta
Definition: GeneralPurposeTrackAnalyzer.cc:196
reco::BeamSpot
Definition: BeamSpot.h:21
edm::ESHandle< TrackerGeometry >
GeneralPurposeTrackAnalyzer::hPhiOverlapMinus
TH1D * hPhiOverlapMinus
Definition: GeneralPurposeTrackAnalyzer.cc:202
ProjectedSiStripRecHit2D::originalHit
SiStripRecHit2D originalHit() const
Definition: ProjectedSiStripRecHit2D.h:56
kFPIX
const int kFPIX
Definition: GeneralPurposeTrackAnalyzer.cc:83
GeneralPurposeTrackAnalyzer::hd0PVvsphi
TH2D * hd0PVvsphi
Definition: GeneralPurposeTrackAnalyzer.cc:219
multiplicitycorr_cfi.xBins
xBins
Definition: multiplicitycorr_cfi.py:5
edm::TriggerNames::triggerNames
Strings const & triggerNames() const
Definition: TriggerNames.cc:48
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GeneralPurposeTrackAnalyzer::pNBpixHitsVsVx
TProfile * pNBpixHitsVsVx
Definition: GeneralPurposeTrackAnalyzer.cc:236
Point3DBase< float, LocalTag >
GeneralPurposeTrackAnalyzer::pNBpixHitsVsVy
TProfile * pNBpixHitsVsVy
Definition: GeneralPurposeTrackAnalyzer.cc:237
TrackerGeometry::isThere
bool isThere(GeomDetEnumerators::SubDetector subdet) const
Definition: TrackerGeometry.cc:219
GeneralPurposeTrackAnalyzer::hHit2D
TH1D * hHit2D
Definition: GeneralPurposeTrackAnalyzer.cc:167
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
GeneralPurposeTrackAnalyzer::VerticesTag_
edm::InputTag VerticesTag_
Definition: GeneralPurposeTrackAnalyzer.cc:273
GeneralPurposeTrackAnalyzer::hd0vseta
TH2D * hd0vseta
Definition: GeneralPurposeTrackAnalyzer.cc:224
MagneticField::inInverseGeV
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
Definition: MagneticField.h:36
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
DEBUG
#define DEBUG
Definition: GeneralPurposeTrackAnalyzer.cc:80
GeneralPurposeTrackAnalyzer::hchi2Probhp
TH1D * hchi2Probhp
Definition: GeneralPurposeTrackAnalyzer.cc:191
GeneralPurposeTrackAnalyzer::hHitCountVsThetaBPix
TH1D * hHitCountVsThetaBPix
Definition: GeneralPurposeTrackAnalyzer.cc:176
GeneralPurposeTrackAnalyzer::hPhp
TH1D * hPhp
Definition: GeneralPurposeTrackAnalyzer.cc:185
GeneralPurposeTrackAnalyzer::evtsByTrigger_
TH1D * evtsByTrigger_
Definition: GeneralPurposeTrackAnalyzer.cc:256
EgHLTOffTrigSelection_cfi.trigName
trigName
Definition: EgHLTOffTrigSelection_cfi.py:8
GeneralPurposeTrackAnalyzer::hPhiEndcapPlus
TH1D * hPhiEndcapPlus
Definition: GeneralPurposeTrackAnalyzer.cc:203
GeneralPurposeTrackAnalyzer::etaMax_
float etaMax_
Definition: GeneralPurposeTrackAnalyzer.cc:266
GeneralPurposeTrackAnalyzer::hvy
TH1D * hvy
Definition: GeneralPurposeTrackAnalyzer.cc:213
GeomDetEnumerators::P1PXB
Definition: GeomDetEnumerators.h:25
GeneralPurposeTrackAnalyzer::pmap
std::unique_ptr< TrackerMap > pmap
Definition: GeneralPurposeTrackAnalyzer.cc:148
GeneralPurposeTrackAnalyzer::latencyToken_
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcd > latencyToken_
Definition: GeneralPurposeTrackAnalyzer.cc:141
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
DetId::Tracker
Definition: DetId.h:25
GeneralPurposeTrackAnalyzer::htrkOriAlgo
TH1I * htrkOriAlgo
Definition: GeneralPurposeTrackAnalyzer.cc:157
duplicaterechits_cfi.trackCollection
trackCollection
Definition: duplicaterechits_cfi.py:4
GeneralPurposeTrackAnalyzer::hPhiBarrel
TH1D * hPhiBarrel
Definition: GeneralPurposeTrackAnalyzer.cc:200
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
reco::Vertex::x
double x() const
x coordinate
Definition: Vertex.h:129
GeneralPurposeTrackAnalyzer::vertexToken
edm::EDGetTokenT< reco::VertexCollection > vertexToken
Definition: GeneralPurposeTrackAnalyzer.cc:280
GeneralPurposeTrackAnalyzer::hEtahp
TH1D * hEtahp
Definition: GeneralPurposeTrackAnalyzer.cc:188
GeneralPurposeTrackAnalyzer::pNBpixHitsVsVz
TProfile * pNBpixHitsVsVz
Definition: GeneralPurposeTrackAnalyzer.cc:238
GeneralPurposeTrackAnalyzer::hnhpxe
TH1D * hnhpxe
Definition: GeneralPurposeTrackAnalyzer.cc:228
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:49
GeneralPurposeTrackAnalyzer::hrun
TH1D * hrun
Definition: GeneralPurposeTrackAnalyzer.cc:248
GeneralPurposeTrackAnalyzer::hchi2ndof
TH1D * hchi2ndof
Definition: GeneralPurposeTrackAnalyzer.cc:152
GeneralPurposeTrackAnalyzer::hnhTIB
TH1D * hnhTIB
Definition: GeneralPurposeTrackAnalyzer.cc:229
GeneralPurposeTrackAnalyzer::hHitCountVsZFPix
TH1D * hHitCountVsZFPix
Definition: GeneralPurposeTrackAnalyzer.cc:174
SiStripLatency::singleReadOutMode
int16_t singleReadOutMode() const
Definition: SiStripLatency.cc:122
GeneralPurposeTrackAnalyzer::tmap
std::unique_ptr< TrackerMap > tmap
Definition: GeneralPurposeTrackAnalyzer.cc:147
GeneralPurposeTrackAnalyzer::fs
edm::Service< TFileService > fs
Definition: GeneralPurposeTrackAnalyzer.cc:145
GeneralPurposeTrackAnalyzer::hP
TH1D * hP
Definition: GeneralPurposeTrackAnalyzer.cc:159
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
GeneralPurposeTrackAnalyzer::hHit
TH1D * hHit
Definition: GeneralPurposeTrackAnalyzer.cc:166
GeneralPurposeTrackAnalyzer::htrkAlgo
TH1I * htrkAlgo
Definition: GeneralPurposeTrackAnalyzer.cc:156
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalObjRepresent::Fill
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
Definition: HcalObjRepresent.h:1053
GeneralPurposeTrackAnalyzer::hnhTID
TH1D * hnhTID
Definition: GeneralPurposeTrackAnalyzer.cc:230
kBPIX
const int kBPIX
Definition: GeneralPurposeTrackAnalyzer.cc:82
GeneralPurposeTrackAnalyzer::hHithp
TH1D * hHithp
Definition: GeneralPurposeTrackAnalyzer.cc:187
GeneralPurposeTrackAnalyzer::hHitCountVsZBPix
TH1D * hHitCountVsZBPix
Definition: GeneralPurposeTrackAnalyzer.cc:173
edm::TriggerNames::triggerName
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:50
GeneralPurposeTrackAnalyzer::hPhihp
TH1D * hPhihp
Definition: GeneralPurposeTrackAnalyzer.cc:189
GeneralPurposeTrackAnalyzer::ievt
int ievt
Definition: GeneralPurposeTrackAnalyzer.cc:261
GeneralPurposeTrackAnalyzer::hvx
TH1D * hvx
Definition: GeneralPurposeTrackAnalyzer.cc:212
GeneralPurposeTrackAnalyzer::GetIndex
int GetIndex(const std::vector< OBJECT_TYPE * > &vec, const TString &name)
Definition: GeneralPurposeTrackAnalyzer.cc:126
PV3DBase::mag
T mag() const
Definition: PV3DBase.h:64
GeneralPurposeTrackAnalyzer::hdzPV
TH1D * hdzPV
Definition: GeneralPurposeTrackAnalyzer.cc:247
GeneralPurposeTrackAnalyzer::hPhiEndcapMinus
TH1D * hPhiEndcapMinus
Definition: GeneralPurposeTrackAnalyzer.cc:204
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
GeneralPurposeTrackAnalyzer::theTrackCollectionToken
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
Definition: GeneralPurposeTrackAnalyzer.cc:277
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
writedatasetfile.run
run
Definition: writedatasetfile.py:27
GeneralPurposeTrackAnalyzer::fieldByRun_
TH1D * fieldByRun_
Definition: GeneralPurposeTrackAnalyzer.cc:259
reco::Vertex::y
double y() const
y coordinate
Definition: Vertex.h:131
GeneralPurposeTrackAnalyzer::hHitCountVsXFPix
TH1D * hHitCountVsXFPix
Definition: GeneralPurposeTrackAnalyzer.cc:170
GeneralPurposeTrackAnalyzer::hNtrkZoom
TH1D * hNtrkZoom
Definition: GeneralPurposeTrackAnalyzer.cc:154
PVValHelper::dxy
Definition: PVValidationHelpers.h:48
reco::TrackBase::algoSize
Definition: TrackBase.h:141
PVValHelper::dz
Definition: PVValidationHelpers.h:51
GeneralPurposeTrackAnalyzer::mode
int mode
Definition: GeneralPurposeTrackAnalyzer.cc:263
spclusmultinvestigator_cfi.vertexCollection
vertexCollection
Definition: spclusmultinvestigator_cfi.py:4
GeneralPurposeTrackAnalyzer::magFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: GeneralPurposeTrackAnalyzer.cc:140
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
GeneralPurposeTrackAnalyzer::hNtrk
TH1D * hNtrk
Definition: GeneralPurposeTrackAnalyzer.cc:153
edm::TriggerNames
Definition: TriggerNames.h:55
GeneralPurposeTrackAnalyzer::hPhi
TH1D * hPhi
Definition: GeneralPurposeTrackAnalyzer.cc:199
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
GeneralPurposeTrackAnalyzer::hQoverP
TH1D * hQoverP
Definition: GeneralPurposeTrackAnalyzer.cc:194
GeneralPurposeTrackAnalyzer::hltresultsToken
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken
Definition: GeneralPurposeTrackAnalyzer.cc:278
GeneralPurposeTrackAnalyzer::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: GeneralPurposeTrackAnalyzer.cc:139
GeneralPurposeTrackAnalyzer::hdzBS
TH1D * hdzBS
Definition: GeneralPurposeTrackAnalyzer.cc:244
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GeneralPurposeTrackAnalyzer::isPhase1_
bool isPhase1_
Definition: GeneralPurposeTrackAnalyzer.cc:265
GeneralPurposeTrackAnalyzer::TkTag_
edm::InputTag TkTag_
Definition: GeneralPurposeTrackAnalyzer.cc:270
SiStripDetId
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:18
GeneralPurposeTrackAnalyzer::hHitCountVsXBPix
TH1D * hHitCountVsXBPix
Definition: GeneralPurposeTrackAnalyzer.cc:169
GeneralPurposeTrackAnalyzer::hPt
TH1D * hPt
Definition: GeneralPurposeTrackAnalyzer.cc:162
GeneralPurposeTrackAnalyzer::hchi2ndofhp
TH1D * hchi2ndofhp
Definition: GeneralPurposeTrackAnalyzer.cc:190
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
event
Definition: event.py:1
GeneralPurposeTrackAnalyzer::hHitComposition
TH1D * hHitComposition
Definition: GeneralPurposeTrackAnalyzer.cc:234
GeneralPurposeTrackAnalyzer::firstEvent_
bool firstEvent_
Definition: GeneralPurposeTrackAnalyzer.cc:264
GeneralPurposeTrackAnalyzer::hPhiOverlapPlus
TH1D * hPhiOverlapPlus
Definition: GeneralPurposeTrackAnalyzer.cc:201
GeneralPurposeTrackAnalyzer::vTrackHistos_
std::vector< TH1 * > vTrackHistos_
Definition: GeneralPurposeTrackAnalyzer.cc:251
GeneralPurposeTrackAnalyzer::hCharge
TH1D * hCharge
Definition: GeneralPurposeTrackAnalyzer.cc:193
GeneralPurposeTrackAnalyzer::hd0PV
TH1D * hd0PV
Definition: GeneralPurposeTrackAnalyzer.cc:246
reco::TrackBase::algoNames
static const std::string algoNames[]
Definition: TrackBase.h:147
GeneralPurposeTrackAnalyzer::hd0vsphi
TH2D * hd0vsphi
Definition: GeneralPurposeTrackAnalyzer.cc:223
edm::InputTag
Definition: InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
GeneralPurposeTrackAnalyzer::hd0vspt
TH2D * hd0vspt
Definition: GeneralPurposeTrackAnalyzer.cc:225
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
GeneralPurposeTrackAnalyzer::hdxyPV
TH1D * hdxyPV
Definition: GeneralPurposeTrackAnalyzer.cc:245
reco::Vertex
Definition: Vertex.h:35
hit
Definition: SiStripHitEffFromCalibTree.cc:88
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
GeneralPurposeTrackAnalyzer::pixelmap
std::unique_ptr< Phase1PixelMaps > pixelmap
Definition: GeneralPurposeTrackAnalyzer.cc:150
GeneralPurposeTrackAnalyzer::vTrackProfiles_
std::vector< TH1 * > vTrackProfiles_
Definition: GeneralPurposeTrackAnalyzer.cc:252
TrackerGeometry
Definition: TrackerGeometry.h:14
GeneralPurposeTrackAnalyzer::htrkQuality
TH1I * htrkQuality
Definition: GeneralPurposeTrackAnalyzer.cc:155
reco::TrackBase::highPurity
Definition: TrackBase.h:154