23 , doTrackerSpecific_ ( conf_.getParameter<bool>(
"doTrackerSpecific") )
24 , doAllPlots_ ( conf_.getParameter<bool>(
"doAllPlots") )
25 , doBSPlots_ ( conf_.getParameter<bool>(
"doBeamSpotPlots") )
26 , doPVPlots_ ( conf_.getParameter<bool>(
"doPrimaryVertexPlots") )
27 , doDCAPlots_ ( conf_.getParameter<bool>(
"doDCAPlots") )
28 , doGeneralPropertiesPlots_ ( conf_.getParameter<bool>(
"doGeneralPropertiesPlots") )
29 , doMeasurementStatePlots_ ( conf_.getParameter<bool>(
"doMeasurementStatePlots") )
30 , doHitPropertiesPlots_ ( conf_.getParameter<bool>(
"doHitPropertiesPlots") )
31 , doRecHitVsPhiVsEtaPerTrack_ ( conf_.getParameter<bool>(
"doRecHitVsPhiVsEtaPerTrack") )
32 , doLayersVsPhiVsEtaPerTrack_ ( conf_.getParameter<bool>(
"doLayersVsPhiVsEtaPerTrack") )
33 , doRecHitsPerTrackProfile_ ( conf_.getParameter<bool>(
"doRecHitsPerTrackProfile") )
34 , doThetaPlots_ ( conf_.getParameter<bool>(
"doThetaPlots") )
35 , doTrackPxPyPlots_ ( conf_.getParameter<bool>(
"doTrackPxPyPlots") )
36 , doDCAwrtPVPlots_ ( conf_.getParameter<bool>(
"doDCAwrtPVPlots") )
37 , doDCAwrt000Plots_ ( conf_.getParameter<bool>(
"doDCAwrt000Plots") )
38 , doLumiAnalysis_ ( conf_.getParameter<bool>(
"doLumiAnalysis") )
39 , doTestPlots_ ( conf_.getParameter<bool>(
"doTestPlots") )
40 , doHIPlots_ ( conf_.getParameter<bool>(
"doHIPlots") )
140 if (StateName ==
"All") {
145 StateName !=
"OuterSurface" &&
146 StateName !=
"InnerSurface" &&
147 StateName !=
"ImpactPoint" &&
148 StateName !=
"default"
167 std::string CategoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
212 histname =
"NumberOfRecHitsPerTrack_";
217 histname =
"NumberOfValidRecHitsPerTrack_";
222 histname =
"NumberOfLostRecHitsPerTrack_";
227 histname =
"NumberOfLayersPerTrack_";
235 histname =
"NumberOfRecHitVsPhiVsEtaPerTrack_";
237 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 40.,
"");
244 histname =
"NumberOfLayersVsPhiVsEtaPerTrack_";
246 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 40.,
"");
285 Chi2->setAxisTitle(
"Track #chi^{2}" ,1);
286 Chi2->setAxisTitle(
"Number of Tracks",2);
316 histname =
"xPointOfClosestApproach_";
321 histname =
"yPointOfClosestApproach_";
326 histname =
"zPointOfClosestApproach_";
331 histname =
"xPointOfClosestApproachToPV_";
336 histname =
"yPointOfClosestApproachToPV_";
341 histname =
"zPointOfClosestApproachToPV_";
366 std::string CategoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
385 histname =
"NumberOfRecHitsPerTrack_lumiFlag_";
405 std::string CategoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
439 histname =
"DistanceOfClosestApproachToBS_";
444 histname =
"DistanceOfClosestApproachToBSVsPhi_";
450 histname =
"xPointOfClosestApproachVsZ0wrt000_";
455 histname =
"yPointOfClosestApproachVsZ0wrt000_";
460 histname =
"xPointOfClosestApproachVsZ0wrtBS_";
465 histname =
"yPointOfClosestApproachVsZ0wrtBS_";
470 histname =
"zPointOfClosestApproachVsPhi_";
500 histname =
"DistanceOfClosestApproachToPV_";
505 histname =
"DistanceOfClosestApproachToPVVsPhi_";
511 histname =
"xPointOfClosestApproachVsZ0wrtPV_";
516 histname =
"yPointOfClosestApproachVsZ0wrtPV_";
534 histname =
"TESTDistanceOfClosestApproachToBS_";
539 histname =
"TESTDistanceOfClosestApproachToBSVsPhi_";
573 histname =
"DistanceOfClosestApproachVsTheta_";
579 histname =
"DistanceOfClosestApproachVsEta_";
585 histname =
"DistanceOfClosestApproach_";
590 histname =
"DistanceOfClosestApproachVsPhi_";
611 double chi2 = track.
chi2();
612 double chi2prob = TMath::Prob(track.
chi2(),(int)track.
ndof());
685 if (recoPrimaryVerticesHandle->size() > 0) {
695 double longDCAsig = 0, transDCAsig = 0;
698 if(zerr2 > 0) longDCAsig = track.
dz(pv.
position())/zerr2;
699 if(xyerr2 > 0) transDCAsig = track.
dxy(pv.
position())/xyerr2;
731 if (StateName ==
"All") {
736 StateName !=
"OuterSurface" &&
737 StateName !=
"InnerSurface" &&
738 StateName !=
"ImpactPoint" &&
739 StateName !=
"default"
762 std::string CategoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
849 std::string histTag = (sname ==
"default") ? CategoryName : sname +
"_" + CategoryName;
857 histname =
"Chi2oNDFVsTheta_" + histTag;
862 histname =
"Chi2oNDFVsPhi_" + histTag;
867 histname =
"Chi2oNDFVsEta_" + histTag;
872 histname =
"Chi2ProbVsPhi_" + histTag;
877 histname =
"Chi2ProbVsEta_" + histTag;
934 histname =
"TrackPErrOverP_" + histTag;
939 histname =
"TrackPtErrOverPt_" + histTag;
944 histname =
"TrackPtErrOverPtVsEta_" + histTag;
950 histname =
"TrackPxErrOverPx_" + histTag;
955 histname =
"TrackPyErrOverPy_" + histTag;
960 histname =
"TrackPzErrOverPz_" + histTag;
965 histname =
"TrackPhiErr_" + histTag;
970 histname =
"TrackEtaErr_" + histTag;
977 histname =
"NumberOfRecHitsPerTrackVsPhi_" + histTag;
983 histname =
"NumberOfRecHitsPerTrackVsTheta_" + histTag;
988 histname =
"NumberOfRecHitsPerTrackVsEta_" + histTag;
993 histname =
"NumberOfValidRecHitsPerTrackVsPhi_" + histTag;
999 histname =
"NumberOfValidRecHitsPerTrackVsEta_" + histTag;
1005 histname =
"NumberOfLayersPerTrackVsPhi_" + histTag;
1011 histname =
"NumberOfLayersPerTrackVsTheta_" + histTag;
1016 histname =
"NumberOfLayersPerTrackVsEta_" + histTag;
1022 histname =
"Chi2oNDFVsTheta_" + histTag;
1028 histname =
"Chi2oNDFVsPhi_" + histTag;
1033 histname =
"Chi2oNDFVsEta_" + histTag;
1038 histname =
"Chi2ProbVsPhi_" + histTag;
1043 histname =
"Chi2ProbVsEta_" + histTag;
1061 double pxerror, pyerror, pzerror, pterror, perror, phierror, etaerror;
1063 if (sname ==
"default") {
1071 theta = track.
theta();
1118 std::map<std::string, TkParameterMEs>::iterator iPos =
TkParameterMEMap.find(sname);
1172 double chi2prob = TMath::Prob(track.
chi2(),(int)track.
ndof());
1200 std::string CategoryName = QualName !=
"" ? AlgoName +
"_" + QualName : AlgoName;
1219 for (
auto det : subdetectors ) {
1236 histname =
"NumberOfRecHitsPerTrack_" + det +
"_" + CategoryName;
1241 histname =
"NumberOfRecHitsPerTrackVsPhi_" + det +
"_" + CategoryName;
1246 histname =
"NumberOfRecHitsPerTrackVsEta_" + det +
"_" + CategoryName;
1251 histname =
"NumberOfLayersPerTrack_" + det +
"_" + CategoryName;
1256 histname =
"NumberOfLayersPerTrackVsPhi_" + det +
"_" + CategoryName;
1261 histname =
"NumberOfLayersPerTrackVsEta_" + det +
"_" + CategoryName;
1278 double phi = track.
phi();
1279 double eta = track.
eta();
1284 int nValidLayers = 0;
1285 int nValidRecHits = 0;
1286 int substr = it->second.detectorId;
1317 it->second.NumberOfRecHitsPerTrack ->
Fill(nValidRecHits);
1318 it->second.NumberOfRecHitsPerTrackVsPhi ->
Fill(phi, nValidRecHits);
1319 it->second.NumberOfRecHitsPerTrackVsEta ->
Fill(eta, nValidRecHits);
1321 it->second.NumberOfLayersPerTrack ->
Fill(nValidLayers);
1322 it->second.NumberOfLayersPerTrackVsPhi ->
Fill(phi, nValidLayers);
1323 it->second.NumberOfLayersPerTrackVsEta ->
Fill(eta, nValidLayers);
MonitorElement * NumberOfRecHitsPerTrackVsPhi
MonitorElement * NumberOfValidRecHitsPerTrackVsPhi
MonitorElement * Chi2ProbVsPhi
double p() const
momentum vector magnitude
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
MonitorElement * NumberOfLayersPerTrackVsPhi
int stripTOBLayersWithMeasurement() const
T getParameter(std::string const &) const
MonitorElement * DistanceOfClosestApproachToPVVsPhi
const Point & referencePoint() const
Reference point on the track.
MonitorElement * NumberOfRecHitVsPhiVsEtaPerTrack
MonitorElement * TrackPErr
double d0Error() const
error on d0
void fillHistosForTrackerSpecific(const reco::Track &track)
MonitorElement * NumberOfRecHitsPerTrackVsEta
void bookHistosForLScertification(DQMStore::IBooker &ibooker)
TrackCharge charge() const
double d0() const
dxy parameter in perigee convention (d0 = -dxy)
MonitorElement * NumberOfValidRecHitsPerTrack
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 * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double zError() const
error on z
MonitorElement * Chi2oNDF_lumiFlag
double theta() const
polar angle
MonitorElement * xPointOfClosestApproachToPV
const CurvilinearTrajectoryError & curvilinearError() const
MonitorElement * TrackEta
MonitorElement * TrackPtErr
Sin< T >::type sin(const T &t)
MonitorElement * NumberOfLostRecHitsPerTrack
MonitorElement * TrackPyErr
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Geom::Phi< T > phi() const
const CartesianTrajectoryError cartesianError() const
Geom::Theta< T > theta() const
bool doGeneralPropertiesPlots_
double etaError() const
error on eta
MonitorElement * Chi2oNDFVsPhi
MonitorElement * Chi2ProbVsPhi
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)
MonitorElement * DistanceOfClosestApproachVsPhi
double phi() const
azimuthal angle of momentum vector
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::map< std::string, TkParameterMEs > TkParameterMEMap
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * algorithm
const double EtaMax[kNumberCalorimeter]
double px() const
x coordinate of momentum vector
bool doHitPropertiesPlots_
MonitorElement * DistanceOfClosestApproach
bool doRecHitVsPhiVsEtaPerTrack_
MonitorElement * NumberOfLayersPerTrackVsTheta
MonitorElement * NumberOfRecHitsPerTrack_lumiFlag
std::map< std::string, TkRecHitsPerSubDetMEs > TkRecHitsPerSubDetMEMap
int trackerLayersWithMeasurement() const
const Point & position() const
position
int pixelEndcapLayersWithMeasurement() const
int numberOfValidStripTOBHits() const
bool doMeasurementStatePlots_
TrajectoryStateOnSurface innermostMeasurementState() const
MonitorElement * NumberOfRecHitsPerTrack
Geom::Theta< T > theta() const
TrackAlgorithm algo() const
void disableSoftReset(MonitorElement *me)
MonitorElement * TESTDistanceOfClosestApproachToBSVsPhi
MonitorElement * NumberOfValidRecHitsPerTrackVsEta
MonitorElement * Chi2oNDFVsEta
MonitorElement * TransDCASig
MonitorElement * NumberOfRecHitsPerTrackVsPhi
MonitorElement * xPointOfClosestApproachVsZ0wrt000
double eta() const
pseudorapidity of momentum vector
int numberOfValidPixelBarrelHits() const
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * xPointOfClosestApproach
MonitorElement * Chi2oNDFVsTheta
double chi2() const
chi-squared of the fit
MonitorElement * bookProfile2D(Args &&...args)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
double ndof() const
number of degrees of freedom of the fit
int stripTIDLayersWithMeasurement() const
MonitorElement * NumberOfValidRecHitsPerTrackVsEta
MonitorElement * NumberOfRecHitsPerTrackVsPhi
double pt() const
track transverse momentum
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
MonitorElement * xPointOfClosestApproachVsZ0wrtBS
double phiError() const
error on phi
MonitorElement * NumberOfValidRecHitsPerTrackVsPhi
MonitorElement * book1D(Args &&...args)
int numberOfValidStripTIDHits() const
MonitorElement * yPointOfClosestApproachToPV
const double EtaMin[kNumberCalorimeter]
MonitorElement * NumberOfRecHitsPerTrackVsEta
unsigned short numberOfValidHits() const
number of valid hits found
int numberOfValidStripTECHits() const
void softReset(MonitorElement *me)
MonitorElement * Chi2oNDFVsTheta
TrajectoryStateOnSurface outermostMeasurementState() const
MonitorElement * TrackEtaErr
void bookHistosForHitProperties(DQMStore::IBooker &ibooker)
MonitorElement * TrackPxErr
MonitorElement * DistanceOfClosestApproachVsEta
MonitorElement * zPointOfClosestApproachVsPhi
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 * NumberOfLayersPerTrackVsEta
double dzError() const
error on dz
MonitorElement * NumberOfRecHitsPerTrack
MonitorElement * TrackPhiErr
double vz() const
z coordinate of the reference point on track
void bookHistosForTrackerSpecific(DQMStore::IBooker &ibooker)
void fillHistosForState(const edm::EventSetup &iSetup, const reco::Track &track, std::string sname)
TrajectoryStateOnSurface TSOS
double xError() const
error on x
MonitorElement * NumberOfLayersPerTrackVsEta
void setCurrentFolder(const std::string &fullpath)
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Track &track)
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
MonitorElement * xPointOfClosestApproachVsZ0wrtPV
MonitorElement * yPointOfClosestApproachVsZ0wrtBS
MonitorElement * NumberOfLayersPerTrack
int stripLayersWithMeasurement() const
int pixelBarrelLayersWithMeasurement() const
MonitorElement * DistanceOfClosestApproachVsTheta
void bookHistosForBeamSpot(DQMStore::IBooker &ibooker)
virtual void initHisto(DQMStore::IBooker &ibooker)
MonitorElement * Chi2ProbVsEta
int numberOfValidStripTIBHits() const
MonitorElement * TrackPhi
static const std::string algoNames[]
int numberOfValidPixelEndcapHits() const
MonitorElement * zPointOfClosestApproachToPV
MonitorElement * DistanceOfClosestApproachToPV
double vy() const
y coordinate of the reference point on track
const AlgebraicSymMatrix55 & matrix() const
GlobalVector globalMomentum() const
MonitorElement * NumberOfLayersPerTrack
MonitorElement * DistanceOfClosestApproachToBSVsPhi
bool doLayersVsPhiVsEtaPerTrack_
void doSoftReset(DQMStore *dqmStore_)
int stripTECLayersWithMeasurement() const
MonitorElement * yPointOfClosestApproachVsZ0wrt000
MonitorElement * TrackPtErrVsEta
MonitorElement * TESTDistanceOfClosestApproachToBS
MonitorElement * NumberOfRecHitsPerTrackVsEta
int charge() const
track electric charge
const Point & position() const
position
TrajectoryStateOnSurface impactPointState() const
void bookHistosForState(std::string sname, DQMStore::IBooker &ibooker)
MonitorElement * yPointOfClosestApproach
void Reset(std::vector< TH2F > &depth)
MonitorElement * NumberOfLayersVsPhiVsEtaPerTrack
MonitorElement * Chi2Prob
MonitorElement * yPointOfClosestApproachVsZ0wrtPV
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 * Chi2ProbVsEta
MonitorElement * DistanceOfClosestApproachToBS
Power< A, B >::type pow(const A &a, const B &b)
MonitorElement * Chi2oNDF
double yError() const
error on y
MonitorElement * Chi2oNDFVsEta
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track
void undoSoftReset(DQMStore *dqmStore_)
int numberOfHits(HitCategory category) const
MonitorElement * NumberOfLayersPerTrackVsPhi
MonitorElement * LongDCASig
edm::EDGetTokenT< reco::VertexCollection > pvToken_
MonitorElement * Chi2oNDFVsPhi