25 , doTrackerSpecific_( conf_.getParameter<bool>(
"doTrackerSpecific") )
26 , doAllPlots_( conf_.getParameter<bool>(
"doAllPlots") )
27 , doBSPlots_ ( conf_.getParameter<bool>(
"doBeamSpotPlots") )
28 , doGoodTrackPlots_ ( conf_.getParameter<bool>(
"doGoodTrackPlots") )
29 , NumberOfRecHitsPerTrack(
NULL)
30 , NumberOfRecHitsFoundPerTrack(
NULL)
31 , NumberOfRecHitsLostPerTrack(
NULL)
32 , NumberOfLayersPerTrack(
NULL)
36 , DistanceOfClosestApproach(
NULL)
37 , DistanceOfClosestApproachToBS(
NULL)
38 , DistanceOfClosestApproachVsTheta(
NULL)
39 , DistanceOfClosestApproachVsPhi(
NULL)
40 , DistanceOfClosestApproachToBSVsPhi(
NULL)
41 , DistanceOfClosestApproachVsEta(
NULL)
42 , xPointOfClosestApproach(
NULL)
43 , xPointOfClosestApproachVsZ0(
NULL)
44 , yPointOfClosestApproach(
NULL)
45 , yPointOfClosestApproachVsZ0(
NULL)
46 , zPointOfClosestApproach(
NULL)
48 , NumberOfTOBRecHitsPerTrack(
NULL)
49 , NumberOfTOBRecHitsPerTrackVsPhiProfile(
NULL)
50 , NumberOfTOBRecHitsPerTrackVsEtaProfile(
NULL)
51 , NumberOfTOBLayersPerTrack(
NULL)
52 , NumberOfTOBLayersPerTrackVsPhiProfile(
NULL)
53 , NumberOfTOBLayersPerTrackVsEtaProfile(
NULL)
55 , NumberOfTIBRecHitsPerTrack(
NULL)
56 , NumberOfTIBRecHitsPerTrackVsPhiProfile(
NULL)
57 , NumberOfTIBRecHitsPerTrackVsEtaProfile(
NULL)
58 , NumberOfTIBLayersPerTrack(
NULL)
59 , NumberOfTIBLayersPerTrackVsPhiProfile(
NULL)
60 , NumberOfTIBLayersPerTrackVsEtaProfile(
NULL)
62 , NumberOfTIDRecHitsPerTrack(
NULL)
63 , NumberOfTIDRecHitsPerTrackVsPhiProfile(
NULL)
64 , NumberOfTIDRecHitsPerTrackVsEtaProfile(
NULL)
65 , NumberOfTIDLayersPerTrack(
NULL)
66 , NumberOfTIDLayersPerTrackVsPhiProfile(
NULL)
67 , NumberOfTIDLayersPerTrackVsEtaProfile(
NULL)
69 , NumberOfTECRecHitsPerTrack(
NULL)
70 , NumberOfTECRecHitsPerTrackVsPhiProfile(
NULL)
71 , NumberOfTECRecHitsPerTrackVsEtaProfile(
NULL)
72 , NumberOfTECLayersPerTrack(
NULL)
73 , NumberOfTECLayersPerTrackVsPhiProfile(
NULL)
74 , NumberOfTECLayersPerTrackVsEtaProfile(
NULL)
76 , NumberOfPixBarrelRecHitsPerTrack(
NULL)
77 , NumberOfPixBarrelRecHitsPerTrackVsPhiProfile(
NULL)
78 , NumberOfPixBarrelRecHitsPerTrackVsEtaProfile(
NULL)
79 , NumberOfPixBarrelLayersPerTrack(
NULL)
80 , NumberOfPixBarrelLayersPerTrackVsPhiProfile(
NULL)
81 , NumberOfPixBarrelLayersPerTrackVsEtaProfile(
NULL)
83 , NumberOfPixEndcapRecHitsPerTrack(
NULL)
84 , NumberOfPixEndcapRecHitsPerTrackVsPhiProfile(
NULL)
85 , NumberOfPixEndcapRecHitsPerTrackVsEtaProfile(
NULL)
86 , NumberOfPixEndcapLayersPerTrack(
NULL)
87 , NumberOfPixEndcapLayersPerTrackVsPhiProfile(
NULL)
88 , NumberOfPixEndcapLayersPerTrackVsEtaProfile(
NULL)
90 , GoodTrackChi2oNDF(
NULL)
91 , GoodTrackNumberOfRecHitsPerTrack(
NULL)
113 std::string CatagoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
186 histname =
"NumberOfRecHitsPerTrack_";
191 histname =
"NumberOfRecHitsFoundPerTrack_";
196 histname =
"NumberOfRecHitsLostPerTrack_";
201 histname =
"NumberOfLayersPerTrack_";
212 Chi2->setAxisTitle(
"Track #chi^{2}" ,1);
213 Chi2->setAxisTitle(
"Number of Tracks",2);
225 histname =
"DistanceOfClosestApproach_";
230 histname =
"DistanceOfClosestApproachVsPhi_";
236 histname =
"xPointOfClosestApproach_";
241 histname =
"yPointOfClosestApproach_";
246 histname =
"zPointOfClosestApproach_";
263 histname =
"DistanceOfClosestApproachToBS_";
268 histname =
"DistanceOfClosestApproachToBSVsPhi_";
274 histname =
"xPointOfClosestApproachVsZ0_";
279 histname =
"yPointOfClosestApproachVsZ0_";
290 histname =
"DistanceOfClosestApproachVsTheta_";
295 histname =
"DistanceOfClosestApproachVsEta_";
312 if (StateName ==
"All")
320 StateName !=
"OuterSurface" &&
321 StateName !=
"InnerSurface" &&
322 StateName !=
"ImpactPoint" &&
323 StateName !=
"default"
347 histname =
"GoodTrackNumberOfRecHitsPerTrack_";
411 if (StateName ==
"All")
419 StateName !=
"OuterSurface" &&
420 StateName !=
"InnerSurface" &&
421 StateName !=
"ImpactPoint" &&
422 StateName !=
"default"
456 std::string CatagoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
540 std::string histTag = (sname ==
"default") ? CatagoryName : sname +
"_" + CatagoryName;
548 histname =
"NumberOfRecHitsPerTrackVsPhi_" + histTag;
553 histname =
"NumberOfRecHitsPerTrackVsTheta_" + histTag;
558 histname =
"NumberOfRecHitsPerTrackVsEta_" + histTag;
563 histname =
"NumberOfLayersPerTrackVsPhi_" + histTag;
568 histname =
"NumberOfLayersPerTrackVsTheta_" + histTag;
573 histname =
"NumberOfLayersPerTrackVsEta_" + histTag;
581 histname =
"Chi2oNDFVsTheta_" + histTag;
586 histname =
"Chi2oNDFVsPhi_" + histTag;
591 histname =
"Chi2oNDFVsEta_" + histTag;
644 histname =
"TrackPErrOverP_" + histTag;
649 histname =
"TrackPtErrOverPt_" + histTag;
654 histname =
"TrackPxErrOverPx_" + histTag;
659 histname =
"TrackPyErrOverPy_" + histTag;
664 histname =
"TrackPzErrOverPz_" + histTag;
669 histname =
"TrackPhiErr_" + histTag;
674 histname =
"TrackEtaErr_" + histTag;
681 histname =
"NumberOfRecHitsPerTrackVsPhiProfile_" + histTag;
686 histname =
"NumberOfRecHitsPerTrackVsThetaProfile_" + histTag;
691 histname =
"NumberOfRecHitsPerTrackVsEtaProfile_" + histTag;
696 histname =
"NumberOfLayersPerTrackVsPhiProfile_" + histTag;
701 histname =
"NumberOfLayersPerTrackVsThetaProfile_" + histTag;
706 histname =
"NumberOfLayersPerTrackVsEtaProfile_" + histTag;
713 histname =
"GoodTrackPt_" + histTag;
718 histname =
"GoodTrackEta_" + histTag;
723 histname =
"GoodTrackPhi_" + histTag;
741 double pxerror, pyerror, pzerror, pterror, perror, phierror, etaerror;
745 if (sname ==
"default")
753 theta = track.
theta();
757 pterror = (pt) ? track.
ptError()/pt : 0.0;
803 std::map<std::string, TkParameterMEs>::iterator iPos =
TkParameterMEMap.find(sname);
863 if ( isHighPurity && pt > 1. ) {
883 std::string CatagoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
952 histname =
"NumberOfTOBRecHitsPerTrack_" + CatagoryName;
957 histname =
"NumberOfTOBRecHitsPerTrackVsPhiProfile_" + CatagoryName;
962 histname =
"NumberOfTOBRecHitsPerTrackVsEtaProfile_" + CatagoryName;
967 histname =
"NumberOfTOBLayersPerTrack_" + CatagoryName;
972 histname =
"NumberOfTOBLayersPerTrackVsPhiProfile_" + CatagoryName;
977 histname =
"NumberOfTOBLayersPerTrackVsEtaProfile_" + CatagoryName;
985 histname =
"NumberOfTIBRecHitsPerTrack_" + CatagoryName;
990 histname =
"NumberOfTIBRecHitsPerTrackVsPhiProfile_" + CatagoryName;
995 histname =
"NumberOfTIBRecHitsPerTrackVsEtaProfile_" + CatagoryName;
1000 histname =
"NumberOfTIBLayersPerTrack_" + CatagoryName;
1005 histname =
"NumberOfTIBLayersPerTrackVsPhiProfile_" + CatagoryName;
1010 histname =
"NumberOfTIBLayersPerTrackVsEtaProfile_" + CatagoryName;
1018 histname =
"NumberOfTIDRecHitsPerTrack_" + CatagoryName;
1023 histname =
"NumberOfTIDRecHitsPerTrackVsPhiProfile_" + CatagoryName;
1028 histname =
"NumberOfTIDRecHitsPerTrackVsEtaProfile_" + CatagoryName;
1033 histname =
"NumberOfTIDLayersPerTrack_" + CatagoryName;
1038 histname =
"NumberOfTIDLayersPerTrackVsPhiProfile_" + CatagoryName;
1043 histname =
"NumberOfTIDLayersPerTrackVsEtaProfile_" + CatagoryName;
1051 histname =
"NumberOfTECRecHitsPerTrack_"+ CatagoryName;
1056 histname =
"NumberOfTECRecHitsPerTrackVsPhiProfile_" + CatagoryName;
1061 histname =
"NumberOfTECRecHitsPerTrackVsEtaProfile_" + CatagoryName;
1066 histname =
"NumberOfTECLayersPerTrack_"+ CatagoryName;
1071 histname =
"NumberOfTECLayersPerTrackVsPhiProfile_" + CatagoryName;
1076 histname =
"NumberOfTECLayersPerTrackVsEtaProfile_" + CatagoryName;
1084 histname =
"NumberOfPixBarrelRecHitsPerTrack_" + CatagoryName;
1089 histname =
"NumberOfPixBarrelRecHitsPerTrackVsPhiProfile_" + CatagoryName;
1094 histname =
"NumberOfPixBarrelRecHitsPerTrackVsEtaProfile_" + CatagoryName;
1099 histname =
"NumberOfPixBarrelLayersPerTrack_" + CatagoryName;
1104 histname =
"NumberOfPixBarrelLayersPerTrackVsPhiProfile_" + CatagoryName;
1109 histname =
"NumberOfPixBarrelLayersPerTrackVsEtaProfile_" + CatagoryName;
1117 histname =
"NumberOfPixEndcapRecHitsPerTrack_" + CatagoryName;
1122 histname =
"NumberOfPixEndcapRecHitsPerTrackVsPhiProfile_" + CatagoryName;
1127 histname =
"NumberOfPixEndcapRecHitsPerTrackVsEtaProfile_" + CatagoryName;
1132 histname =
"NumberOfPixEndcapLayersPerTrack_" + CatagoryName;
1137 histname =
"NumberOfPixEndcapLayersPerTrackVsPhiProfile_" + CatagoryName;
1142 histname =
"NumberOfPixEndcapLayersPerTrackVsEtaProfile_" + CatagoryName;
1152 double phi = track.
phi();
1153 double eta = track.
eta();
MonitorElement * GoodTrackEta
MonitorElement * NumberOfRecHitsPerTrackVsPhi
double p() const
momentum vector magnitude
MonitorElement * NumberOfLayersPerTrackVsPhi
int stripTOBLayersWithMeasurement() const
T getParameter(std::string const &) const
MonitorElement * NumberOfPixEndcapLayersPerTrackVsEtaProfile
MonitorElement * NumberOfRecHitsFoundPerTrack
MonitorElement * TrackPErr
MonitorElement * NumberOfLayersPerTrackVsEtaProfile
MonitorElement * NumberOfPixEndcapLayersPerTrack
int numberOfValidHits() const
unsigned short lost() const
Number of lost (=invalid) hits on track.
MonitorElement * NumberOfPixBarrelLayersPerTrack
TrackCharge charge() const
double d0() const
dxy parameter in perigee convention (d0 = - dxy)
MonitorElement * GoodTrackNumberOfRecHitsPerTrack
MonitorElement * NumberOfTOBLayersPerTrackVsPhiProfile
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * NumberOfTIDRecHitsPerTrackVsPhiProfile
int stripTIBLayersWithMeasurement() const
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
MonitorElement * NumberOfRecHitsLostPerTrack
double theta() const
polar angle
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
MonitorElement * NumberOfTIBLayersPerTrack
MonitorElement * NumberOfTOBRecHitsPerTrack
MonitorElement * NumberOfPixEndcapRecHitsPerTrack
const CurvilinearTrajectoryError & curvilinearError() const
MonitorElement * NumberOfTECRecHitsPerTrackVsPhiProfile
MonitorElement * TrackEta
MonitorElement * TrackPtErr
MonitorElement * NumberOfPixBarrelRecHitsPerTrackVsPhiProfile
Sin< T >::type sin(const T &t)
MonitorElement * NumberOfTIBRecHitsPerTrackVsPhiProfile
MonitorElement * NumberOfTIDRecHitsPerTrackVsEtaProfile
MonitorElement * TrackPyErr
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Geom::Phi< T > phi() const
MonitorElement * NumberOfRecHitsPerTrackVsPhiProfile
Geom::Theta< T > theta() const
double etaError() const
error on eta
MonitorElement * NumberOfPixBarrelRecHitsPerTrackVsEtaProfile
MonitorElement * DistanceOfClosestApproachVsPhi
double phi() const
azimuthal angle of momentum vector
std::map< std::string, TkParameterMEs > TkParameterMEMap
MonitorElement * algorithm
const double EtaMax[kNumberCalorimeter]
double px() const
x coordinate of momentum vector
MonitorElement * xPointOfClosestApproachVsZ0
TrajectoryStateOnSurface TSOS
MonitorElement * DistanceOfClosestApproach
MonitorElement * NumberOfPixEndcapLayersPerTrackVsPhiProfile
MonitorElement * NumberOfLayersPerTrackVsTheta
MonitorElement * NumberOfTIBLayersPerTrackVsEtaProfile
int trackerLayersWithMeasurement() const
int pixelEndcapLayersWithMeasurement() const
int numberOfValidStripTIDHits() const
MonitorElement * yPointOfClosestApproachVsZ0
TrajectoryStateOnSurface innermostMeasurementState() const
MonitorElement * NumberOfRecHitsPerTrack
MonitorElement * GoodTrackPhi
MonitorElement * NumberOfPixEndcapRecHitsPerTrackVsEtaProfile
Geom::Theta< T > theta() const
MonitorElement * GoodTrackChi2oNDF
TrackAlgorithm algo() const
void bookHistosForState(std::string sname, DQMStore *dqmStore_)
void disableSoftReset(MonitorElement *me)
MonitorElement * NumberOfTECLayersPerTrackVsEtaProfile
MonitorElement * NumberOfLayersPerTrackVsPhiProfile
MonitorElement * NumberOfPixBarrelLayersPerTrackVsPhiProfile
virtual void beginJob(DQMStore *dqmStore_)
MonitorElement * Chi2oNDFVsEta
double eta() const
pseudorapidity of momentum vector
int numberOfValidPixelEndcapHits() const
MonitorElement * NumberOfTOBLayersPerTrack
MonitorElement * NumberOfTECLayersPerTrack
void doTrackerSpecificInitialization(DQMStore *dqmStore_)
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * xPointOfClosestApproach
double chi2() const
chi-squared of the fit
const CartesianTrajectoryError & cartesianError() const
MonitorElement * NumberOfTIDRecHitsPerTrack
void doTrackerSpecificFillHists(const reco::Track &track)
double ndof() const
number of degrees of freedom of the fit
int stripTIDLayersWithMeasurement() const
double pt() const
track transverse momentum
MonitorElement * NumberOfLayersPerTrackVsThetaProfile
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
double phiError() const
error on phi
MonitorElement * NumberOfTIDLayersPerTrack
MonitorElement * NumberOfTECRecHitsPerTrackVsEtaProfile
MonitorElement * NumberOfTIDLayersPerTrackVsPhiProfile
int numberOfValidStripTECHits() const
const double EtaMin[kNumberCalorimeter]
MonitorElement * NumberOfRecHitsPerTrackVsEta
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
void softReset(MonitorElement *me)
MonitorElement * Chi2oNDFVsTheta
TrajectoryStateOnSurface outermostMeasurementState() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
MonitorElement * GoodTrackPt
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * TrackEtaErr
int numberOfValidStripTIBHits() const
MonitorElement * TrackPxErr
MonitorElement * DistanceOfClosestApproachVsEta
const AlgebraicSymMatrix66 & matrix() const
double pz() const
z coordinate of momentum vector
MonitorElement * TrackPzErr
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...
MonitorElement * NumberOfPixBarrelLayersPerTrackVsEtaProfile
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
MonitorElement * TrackPhiErr
void fillHistosForState(const edm::EventSetup &iSetup, const reco::Track &track, std::string sname)
MonitorElement * NumberOfTOBRecHitsPerTrackVsPhiProfile
MonitorElement * NumberOfTIBLayersPerTrackVsPhiProfile
MonitorElement * NumberOfLayersPerTrackVsEta
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Track &track)
MonitorElement * NumberOfLayersPerTrack
MonitorElement * NumberOfTIBRecHitsPerTrackVsEtaProfile
MonitorElement * NumberOfRecHitsPerTrackVsEtaProfile
int pixelBarrelLayersWithMeasurement() const
MonitorElement * NumberOfPixEndcapRecHitsPerTrackVsPhiProfile
MonitorElement * DistanceOfClosestApproachVsTheta
MonitorElement * TrackPhi
bool quality(const TrackQuality) const
Track quality.
int stripLayersWithMeasurement() const
int numberOfValidStripTOBHits() const
MonitorElement * NumberOfTECLayersPerTrackVsPhiProfile
MonitorElement * NumberOfTIDLayersPerTrackVsEtaProfile
double vy() const
y coordinate of the reference point on track
MonitorElement * NumberOfTOBLayersPerTrackVsEtaProfile
const AlgebraicSymMatrix55 & matrix() const
GlobalVector globalMomentum() const
MonitorElement * DistanceOfClosestApproachToBSVsPhi
unsigned short found() const
Number of valid hits on track.
void doSoftReset(DQMStore *dqmStore_)
MonitorElement * NumberOfTECRecHitsPerTrack
int stripTECLayersWithMeasurement() const
int numberOfValidPixelBarrelHits() const
int charge() const
track electric charge
const Point & position() const
position
TrajectoryStateOnSurface impactPointState() const
MonitorElement * yPointOfClosestApproach
MonitorElement * NumberOfPixBarrelRecHitsPerTrack
MonitorElement * Chi2Prob
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
MonitorElement * TrackTheta
MonitorElement * zPointOfClosestApproach
TrackAnalyzer(const edm::ParameterSet &)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * NumberOfRecHitsPerTrackVsThetaProfile
MonitorElement * DistanceOfClosestApproachToBS
Power< A, B >::type pow(const A &a, const B &b)
MonitorElement * Chi2oNDF
void setCurrentFolder(const std::string &fullpath)
MonitorElement * NumberOfTOBRecHitsPerTrackVsEtaProfile
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track
void undoSoftReset(DQMStore *dqmStore_)
MonitorElement * NumberOfTIBRecHitsPerTrack
MonitorElement * Chi2oNDFVsPhi