CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
PackedCandidateTrackValidator Class Reference
Inheritance diagram for PackedCandidateTrackValidator:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 PackedCandidateTrackValidator (const edm::ParameterSet &pset)
 
virtual ~PackedCandidateTrackValidator ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

MonitorElementh_diffCharge
 
MonitorElementh_diffDxy
 
MonitorElementh_diffDxyError
 
MonitorElementh_diffDz
 
MonitorElementh_diffDzError
 
MonitorElementh_diffEta
 
MonitorElementh_diffEtaError
 
MonitorElementh_diffHitPatternHasValidHitInFirstPixelBarrel
 
MonitorElementh_diffHitPatternNumberOfLostInnerHits
 
MonitorElementh_diffHitPatternNumberOfValidHits
 
MonitorElementh_diffHitPatternNumberOfValidPixelHits
 
MonitorElementh_diffIsHighPurity
 
MonitorElementh_diffLostInnerHits
 
MonitorElementh_diffNdof
 
MonitorElementh_diffNormalizedChi2
 
MonitorElementh_diffNumberOfHits
 
MonitorElementh_diffNumberOfPixelHits
 
MonitorElementh_diffPhi
 
MonitorElementh_diffPhiError
 
MonitorElementh_diffPt
 
MonitorElementh_diffPtError
 
MonitorElementh_diffPx
 
MonitorElementh_diffPy
 
MonitorElementh_diffPz
 
MonitorElementh_diffQoverp
 
MonitorElementh_diffQoverpError
 
MonitorElementh_diffTheta
 
MonitorElementh_diffThetaError
 
MonitorElementh_diffVx
 
MonitorElementh_diffVy
 
MonitorElementh_diffVz
 
MonitorElementh_selectionFlow
 
std::string rootFolder_
 
edm::EDGetTokenT< edm::View
< reco::Track > > 
tracksToken_
 
edm::EDGetTokenT
< edm::Association
< pat::PackedCandidateCollection > > 
trackToPackedCandidateToken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 13 of file PackedCandidateTrackValidator.cc.

Constructor & Destructor Documentation

PackedCandidateTrackValidator::PackedCandidateTrackValidator ( const edm::ParameterSet pset)

Definition at line 72 of file PackedCandidateTrackValidator.cc.

72  :
73  tracksToken_(consumes<edm::View<reco::Track>>(iConfig.getUntrackedParameter<edm::InputTag>("tracks"))),
74  trackToPackedCandidateToken_(consumes<edm::Association<pat::PackedCandidateCollection>>(iConfig.getUntrackedParameter<edm::InputTag>("trackToPackedCandiadteAssociation"))),
75  rootFolder_(iConfig.getUntrackedParameter<std::string>("rootFolder"))
76 {}
edm::EDGetTokenT< edm::View< reco::Track > > tracksToken_
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > trackToPackedCandidateToken_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
PackedCandidateTrackValidator::~PackedCandidateTrackValidator ( )
virtual

Definition at line 78 of file PackedCandidateTrackValidator.cc.

78 {}

Member Function Documentation

void PackedCandidateTrackValidator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 151 of file PackedCandidateTrackValidator.cc.

References funct::abs(), reco::TrackBase::charge(), reco::TrackBase::dxy(), reco::TrackBase::dxyError(), reco::TrackBase::dz(), reco::TrackBase::dzError(), reco::TrackBase::eta(), reco::TrackBase::etaError(), MonitorElement::Fill(), edm::Event::getByToken(), h_diffCharge, h_diffDxy, h_diffDxyError, h_diffDz, h_diffDzError, h_diffEta, h_diffEtaError, h_diffHitPatternHasValidHitInFirstPixelBarrel, h_diffHitPatternNumberOfLostInnerHits, h_diffHitPatternNumberOfValidHits, h_diffHitPatternNumberOfValidPixelHits, h_diffIsHighPurity, h_diffLostInnerHits, h_diffNdof, h_diffNormalizedChi2, h_diffNumberOfHits, h_diffNumberOfPixelHits, h_diffPhi, h_diffPhiError, h_diffPt, h_diffPtError, h_diffPx, h_diffPy, h_diffPz, h_diffQoverp, h_diffQoverpError, h_diffTheta, h_diffThetaError, h_diffVx, h_diffVy, h_diffVz, h_selectionFlow, reco::HitPattern::hasValidHitInFirstPixelBarrel(), reco::TrackBase::highPurity, reco::TrackBase::hitPattern(), i, edm::Ref< C, T, F >::isNull(), reco::HitPattern::MISSING_INNER_HITS, pat::PackedCandidate::moreLostInnerHits, reco::TrackBase::ndof(), pat::PackedCandidate::noLostInnerHits, reco::TrackBase::normalizedChi2(), reco::HitPattern::numberOfLostHits(), reco::HitPattern::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), pat::PackedCandidate::oneLostInnerHit, reco::TrackBase::phi(), reco::TrackBase::phiError(), reco::TrackBase::pt(), reco::TrackBase::ptError(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), reco::TrackBase::qoverp(), reco::TrackBase::qoverpError(), reco::TrackBase::quality(), reco::TrackBase::theta(), reco::TrackBase::thetaError(), testEve_cfg::tracks, tracksToken_, trackToPackedCandidateToken_, pat::PackedCandidate::validHitInFirstPixelBarrelLayer, reco::TrackBase::vx(), reco::TrackBase::vy(), and reco::TrackBase::vz().

151  {
153  iEvent.getByToken(tracksToken_, htracks);
154  const auto& tracks = *htracks;
155 
158  const auto& trackToPackedCandidate = *hassoc;
159 
160  for(size_t i=0; i<tracks.size(); ++i) {
161  auto trackPtr = tracks.ptrAt(i);
162  const reco::Track& track = *trackPtr;
163  h_selectionFlow->Fill(0.5);
164 
165  pat::PackedCandidateRef pcRef = trackToPackedCandidate[trackPtr];
166  if(pcRef.isNull()) {
167  continue;
168  }
169  h_selectionFlow->Fill(1.5);
170 
171  const reco::Track *trackPcPtr = pcRef->bestTrack();
172  if(!trackPcPtr) {
173  continue;
174  }
175  h_selectionFlow->Fill(2.5);
176 
177  // Filter out electrons to avoid comparisons to PackedCandidates with GsfTrack
178  if(std::abs(pcRef->pdgId()) == 11) {
179  continue;
180  }
181  h_selectionFlow->Fill(3.5);
182 
183  // Filter out PackedCandidate-tracks with no hits, as they won't have their details filled
184  const reco::Track& trackPc = *trackPcPtr;
185  if(trackPc.hitPattern().numberOfValidHits() == 0) {
186  continue;
187  }
188  h_selectionFlow->Fill(4.5);
189 
190 
191  fillNoFlow(h_diffPx, trackPc.px() - track.px());
192  fillNoFlow(h_diffPy, trackPc.py() - track.py());
193  fillNoFlow(h_diffPz, trackPc.pz() - track.pz());
194 
195  fillNoFlow(h_diffVx, trackPc.vx() - track.vx());
196  fillNoFlow(h_diffVy, trackPc.vy() - track.vy());
197  fillNoFlow(h_diffVz, trackPc.vz() - track.vz());
198 
199  fillNoFlow(h_diffNormalizedChi2, trackPc.normalizedChi2() - track.normalizedChi2());
200  fillNoFlow(h_diffNdof, trackPc.ndof() - track.ndof());
201 
202  fillNoFlow(h_diffCharge, trackPc.charge() - track.charge());
204 
205  fillNoFlow(h_diffQoverp, trackPc.qoverp() - track.qoverp());
206  fillNoFlow(h_diffPt , trackPc.pt() - track.pt() );
207  fillNoFlow(h_diffEta , trackPc.eta() - track.eta() );
208  fillNoFlow(h_diffTheta , trackPc.theta() - track.theta() );
209  fillNoFlow(h_diffPhi , trackPc.phi() - track.phi() );
210  fillNoFlow(h_diffDxy , trackPc.dxy() - track.dxy() );
211  fillNoFlow(h_diffDz , trackPc.dz() - track.dz() );
212 
213  fillNoFlow(h_diffQoverpError, trackPc.qoverpError() - track.qoverpError());
214  fillNoFlow(h_diffPtError , trackPc.ptError() - track.ptError() );
215  fillNoFlow(h_diffEtaError , trackPc.etaError() - track.etaError() );
216  fillNoFlow(h_diffThetaError , trackPc.thetaError() - track.thetaError() );
217  fillNoFlow(h_diffPhiError , trackPc.phiError() - track.phiError() );
218  fillNoFlow(h_diffDxyError , trackPc.dxyError() - track.dxyError() );
219  fillNoFlow(h_diffDzError , trackPc.dzError() - track.dzError() );
220 
221  fillNoFlow(h_diffNumberOfPixelHits, pcRef->numberOfPixelHits() - track.hitPattern().numberOfValidPixelHits());
222  fillNoFlow(h_diffNumberOfHits, pcRef->numberOfHits() - track.hitPattern().numberOfValidHits());
223 
224  int diffLostInnerHits = 0;
225  const auto trackLostInnerHits = track.hitPattern().numberOfLostHits(reco::HitPattern::MISSING_INNER_HITS);
226  switch(pcRef->lostInnerHits()) {
229  diffLostInnerHits = -trackLostInnerHits;
230  break;
232  diffLostInnerHits = 1-trackLostInnerHits;
233  break;
235  diffLostInnerHits = trackLostInnerHits>=2 ? 0 : 2-trackLostInnerHits;
236  break;
237  }
238  fillNoFlow(h_diffLostInnerHits, diffLostInnerHits);
239 
243 
245  }
246 }
double qoverp() const
q / p
Definition: TrackBase.h:526
int i
Definition: DBlmapReader.cc:9
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
Definition: TrackBase.h:514
edm::EDGetTokenT< edm::View< reco::Track > > tracksToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
double theta() const
polar angle
Definition: TrackBase.h:532
double dxyError() const
error on dxy
Definition: TrackBase.h:749
int numberOfValidHits() const
Definition: HitPattern.h:734
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > trackToPackedCandidateToken_
double etaError() const
error on eta
Definition: TrackBase.h:737
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:598
double px() const
x coordinate of momentum vector
Definition: TrackBase.h:580
void Fill(long long x)
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:604
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:508
double pt() const
track transverse momentum
Definition: TrackBase.h:574
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
Definition: TrackBase.h:716
double phiError() const
error on phi
Definition: TrackBase.h:743
MonitorElement * h_diffHitPatternHasValidHitInFirstPixelBarrel
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool isNull() const
Checks for null.
Definition: Ref.h:249
double pz() const
z coordinate of momentum vector
Definition: TrackBase.h:592
double qoverpError() const
error on signed transverse curvature
Definition: TrackBase.h:710
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:562
double dzError() const
error on dz
Definition: TrackBase.h:767
double vz() const
z coordinate of the reference point on track
Definition: TrackBase.h:622
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:411
tuple tracks
Definition: testEve_cfg.py:39
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:463
int numberOfLostHits(HitCategory category) const
Definition: HitPattern.h:804
double vy() const
y coordinate of the reference point on track
Definition: TrackBase.h:616
int numberOfValidPixelHits() const
Definition: HitPattern.h:749
int charge() const
track electric charge
Definition: TrackBase.h:520
bool hasValidHitInFirstPixelBarrel() const
Definition: HitPattern.cc:276
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:544
double py() const
y coordinate of momentum vector
Definition: TrackBase.h:586
double vx() const
x coordinate of the reference point on track
Definition: TrackBase.h:610
double thetaError() const
error on theta
Definition: TrackBase.h:725
void PackedCandidateTrackValidator::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 90 of file PackedCandidateTrackValidator.cc.

References DQMStore::IBooker::book1D(), constexpr, diffTreeTool::diff, alignCSCRings::e, h_diffCharge, h_diffDxy, h_diffDxyError, h_diffDz, h_diffDzError, h_diffEta, h_diffEtaError, h_diffHitPatternHasValidHitInFirstPixelBarrel, h_diffHitPatternNumberOfLostInnerHits, h_diffHitPatternNumberOfValidHits, h_diffHitPatternNumberOfValidPixelHits, h_diffIsHighPurity, h_diffLostInnerHits, h_diffNdof, h_diffNormalizedChi2, h_diffNumberOfHits, h_diffNumberOfPixelHits, h_diffPhi, h_diffPhiError, h_diffPt, h_diffPtError, h_diffPx, h_diffPy, h_diffPz, h_diffQoverp, h_diffQoverpError, h_diffTheta, h_diffThetaError, h_diffVx, h_diffVy, h_diffVz, h_selectionFlow, rootFolder_, MonitorElement::setBinLabel(), and DQMStore::IBooker::setCurrentFolder().

90  {
92 
93  h_selectionFlow = iBooker.book1D("selectionFlow", "Track selection flow", 5, 0, 5);
94  h_selectionFlow->setBinLabel(1, "All tracks");
95  h_selectionFlow->setBinLabel(2, "Associated to PackedCandidate");
96  h_selectionFlow->setBinLabel(3, "PackedCandidate has track");
97  h_selectionFlow->setBinLabel(4, "PackedCandidate is not electron");
98  h_selectionFlow->setBinLabel(5, "PackedCandidate has hits");
99 
100  constexpr int diffBins = 50;
101  constexpr float diff = 1e-4;
102  constexpr float diffP = 5e-3;
103 
104  h_diffPx = iBooker.book1D("diffPx", "PackedCandidate::bestTrack() - reco::Track in px()", diffBins, -diffP, diffP);
105  h_diffPy = iBooker.book1D("diffPy", "PackedCandidate::bestTrack() - reco::Track in py()", diffBins, -diffP, diffP);
106  h_diffPz = iBooker.book1D("diffPz", "PackedCandidate::bestTrack() - reco::Track in pz()", diffBins, -diffP, diffP);
107 
108  h_diffVx = iBooker.book1D("diffVx", "PackedCandidate::bestTrack() - reco::Track in vx()", diffBins, -diffP, diffP);
109  h_diffVy = iBooker.book1D("diffVy", "PackedCandidate::bestTrack() - reco::Track in vy()", diffBins, -diffP, diffP);
110  h_diffVz = iBooker.book1D("diffVz", "PackedCandidate::bestTrack() - reco::Track in vz()", diffBins, -diffP, diffP);
111 
112  h_diffNormalizedChi2 = iBooker.book1D("diffNormalizedChi2", "PackedCandidate::bestTrack() - reco::Track in normalizedChi2()", 30, -1.5, 1.5);
113  h_diffNdof = iBooker.book1D("diffNdof", "PackedCandidate::bestTrack() - reco::Track in ndof()", 33, -30.5, 2.5);
114 
115  h_diffCharge = iBooker.book1D("diffCharge", "PackedCandidate::bestTrack() - reco::Track in charge()", 5, -2.5, 2.5);
116  h_diffIsHighPurity = iBooker.book1D("diffIsHighPurity", "PackedCandidate::bestTrack() - reco::Track in quality(highPurity)", 3, -1.5, 1.5);
117 
118  h_diffQoverp = iBooker.book1D("diffQoverp", "PackedCandidate::bestTrack() - reco::Track in qoverp()", diffBins, -1e-3, 1e-3);
119  h_diffPt = iBooker.book1D("diffPt", "PackedCandidate::bestTrack() - reco::Track in pt()", diffBins, -diffP, diffP);
120  h_diffEta = iBooker.book1D("diffEta", "PackedCandidate::bestTrack() - reco::Track in eta()", diffBins, -diff, diff);
121  h_diffTheta = iBooker.book1D("diffTheta", "PackedCandidate::bestTrack() - reco::Track in theta()", diffBins, -diff, diff);
122  h_diffPhi = iBooker.book1D("diffPhi", "PackedCandidate::bestTrack() - reco::Track in phi()", diffBins, -diff, diff);
123  h_diffDxy = iBooker.book1D("diffDxy", "PackedCandidate::bestTrack() - reco::Track in dxy()", diffBins, -2e-5, 2e-5);
124  h_diffDz = iBooker.book1D("diffDz", "PackedCandidate::bestTrack() - reco::Track in dz()", diffBins, -4e-5, 4e-5);
125 
126  h_diffQoverpError = iBooker.book1D("diffQoverpError", "PackedCandidate::bestTrack() - reco::Track in qoverpError()", diffBins, -1e-3, 1e-3);
127  h_diffPtError = iBooker.book1D("diffPtError", "PackedCandidate::bestTrack() - reco::Track in ptError()", diffBins, -diffP, diffP);
128  h_diffEtaError = iBooker.book1D("diffEtaError", "PackedCandidate::bestTrack() - reco::Track in etaError()", diffBins, -diff, diff);
129  h_diffThetaError = iBooker.book1D("diffThetaError", "PackedCandidate::bestTrack() - reco::Track in thetaError()", diffBins, -diff, diff);
130  h_diffPhiError = iBooker.book1D("diffPhiError", "PackedCandidate::bestTrack() - reco::Track in phiError()", diffBins, -diff, diff);
131  h_diffDxyError = iBooker.book1D("diffDxyError", "PackedCandidate::bestTrack() - reco::Track in dxyError()", diffBins, -2e-5, 2e-5);
132  h_diffDzError = iBooker.book1D("diffDzError", "PackedCandidate::bestTrack() - reco::Track in dzError()", diffBins, -4e-5, 4e-5);
133 
134  h_diffNumberOfPixelHits = iBooker.book1D("diffNumberOfPixelHits", "PackedCandidate::numberOfPixelHits() - reco::Track::hitPattern::numberOfValidPixelHits()", 5, -2.5, 2.5);
135  h_diffNumberOfHits = iBooker.book1D("diffNumberOfHits", "PackedCandidate::numberHits() - reco::Track::hitPattern::numberOfValidHits()", 5, -2.5, 2.5);
136  h_diffLostInnerHits = iBooker.book1D("diffLostInnerHits", "PackedCandidate::lostInnerHits() - reco::Track::hitPattern::numberOfLostHits(MISSING_INNER_HITS)", 5, -2.5, 2.5);
137 
138  h_diffHitPatternNumberOfValidPixelHits = iBooker.book1D("diffHitPatternNumberOfValidPixelHits", "PackedCandidate::bestTrack() - reco::Track in hitPattern::numberOfValidPixelHits()", 5, -2.5, 2.5);
139  h_diffHitPatternNumberOfValidHits = iBooker.book1D("diffHitPatternNumberOfValidHits", "PackedCandidate::bestTrack() - reco::Track in hitPattern::numberOfValidHits()", 5, -2.5, 2.5);
140  h_diffHitPatternNumberOfLostInnerHits = iBooker.book1D("diffHitPatternNumberOfLostPixelHits", "PackedCandidate::bestTrack() - reco::Track in hitPattern::numberOfLostHits(MISSING_INNER_HITS)", 13, -10.5, 2.5);
141  h_diffHitPatternHasValidHitInFirstPixelBarrel = iBooker.book1D("diffHitPatternHasValidHitInFirstPixelBarrel", "PackedCandidate::bestTrack() - reco::Track in hitPattern::hasValidHitInFirstPixelBarrel", 3, -1.5, 1.5);
142 
143 }
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
#define constexpr
MonitorElement * h_diffHitPatternHasValidHitInFirstPixelBarrel
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
void PackedCandidateTrackValidator::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 80 of file PackedCandidateTrackValidator.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), HLT_25ns14e33_v1_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

80  {
82 
83  desc.addUntracked<edm::InputTag>("tracks", edm::InputTag("generalTracks"));
84  desc.addUntracked<edm::InputTag>("trackToPackedCandiadteAssociation", edm::InputTag("packedPFCandidates"));
85  desc.addUntracked<std::string>("rootFolder", "Tracking/PackedCandidate");
86 
87  descriptions.add("packedCandidateTrackValidator", desc);
88 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

MonitorElement* PackedCandidateTrackValidator::h_diffCharge
private

Definition at line 43 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffDxy
private

Definition at line 51 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffDxyError
private

Definition at line 59 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffDz
private

Definition at line 52 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffDzError
private

Definition at line 60 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffEta
private

Definition at line 48 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffEtaError
private

Definition at line 56 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffHitPatternHasValidHitInFirstPixelBarrel
private

Definition at line 69 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffHitPatternNumberOfLostInnerHits
private

Definition at line 68 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffHitPatternNumberOfValidHits
private

Definition at line 67 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffHitPatternNumberOfValidPixelHits
private

Definition at line 66 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffIsHighPurity
private

Definition at line 44 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffLostInnerHits
private

Definition at line 64 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffNdof
private

Definition at line 41 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffNormalizedChi2
private

Definition at line 40 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffNumberOfHits
private

Definition at line 63 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffNumberOfPixelHits
private

Definition at line 62 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPhi
private

Definition at line 50 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPhiError
private

Definition at line 58 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPt
private

Definition at line 47 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPtError
private

Definition at line 55 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPx
private

Definition at line 32 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPy
private

Definition at line 33 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffPz
private

Definition at line 34 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffQoverp
private

Definition at line 46 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffQoverpError
private

Definition at line 54 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffTheta
private

Definition at line 49 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffThetaError
private

Definition at line 57 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffVx
private

Definition at line 36 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffVy
private

Definition at line 37 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_diffVz
private

Definition at line 38 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* PackedCandidateTrackValidator::h_selectionFlow
private

Definition at line 30 of file PackedCandidateTrackValidator.cc.

Referenced by analyze(), and bookHistograms().

std::string PackedCandidateTrackValidator::rootFolder_
private

Definition at line 28 of file PackedCandidateTrackValidator.cc.

Referenced by bookHistograms().

edm::EDGetTokenT<edm::View<reco::Track> > PackedCandidateTrackValidator::tracksToken_
private

Definition at line 25 of file PackedCandidateTrackValidator.cc.

Referenced by analyze().

edm::EDGetTokenT<edm::Association<pat::PackedCandidateCollection> > PackedCandidateTrackValidator::trackToPackedCandidateToken_
private

Definition at line 26 of file PackedCandidateTrackValidator.cc.

Referenced by analyze().