24 , doTrackerSpecific_ ( conf_.getParameter<bool>(
"doTrackerSpecific") )
25 , doAllPlots_ ( conf_.getParameter<bool>(
"doAllPlots") )
26 , doBSPlots_ ( conf_.getParameter<bool>(
"doBeamSpotPlots") )
27 , doPVPlots_ ( conf_.getParameter<bool>(
"doPrimaryVertexPlots") )
28 , doDCAPlots_ ( conf_.getParameter<bool>(
"doDCAPlots") )
29 , doGeneralPropertiesPlots_ ( conf_.getParameter<bool>(
"doGeneralPropertiesPlots") )
30 , doMeasurementStatePlots_ ( conf_.getParameter<bool>(
"doMeasurementStatePlots") )
31 , doHitPropertiesPlots_ ( conf_.getParameter<bool>(
"doHitPropertiesPlots") )
32 , doRecHitVsPhiVsEtaPerTrack_ ( conf_.getParameter<bool>(
"doRecHitVsPhiVsEtaPerTrack") )
33 , doLayersVsPhiVsEtaPerTrack_ ( conf_.getParameter<bool>(
"doLayersVsPhiVsEtaPerTrack") )
34 , doRecHitsPerTrackProfile_ ( conf_.getParameter<bool>(
"doRecHitsPerTrackProfile") )
35 , doThetaPlots_ ( conf_.getParameter<bool>(
"doThetaPlots") )
36 , doTrackPxPyPlots_ ( conf_.getParameter<bool>(
"doTrackPxPyPlots") )
37 , doDCAwrtPVPlots_ ( conf_.getParameter<bool>(
"doDCAwrtPVPlots") )
38 , doDCAwrt000Plots_ ( conf_.getParameter<bool>(
"doDCAwrt000Plots") )
39 , doLumiAnalysis_ ( conf_.getParameter<bool>(
"doLumiAnalysis") )
40 , doTestPlots_ ( conf_.getParameter<bool>(
"doTestPlots") )
41 , doHIPlots_ ( conf_.getParameter<bool>(
"doHIPlots") )
42 , doSIPPlots_ ( conf_.getParameter<bool>(
"doSIPPlots") )
43 , qualityString_ ( conf_.getParameter<std::
string>(
"qualityString"))
153 if (StateName ==
"All") {
158 StateName !=
"OuterSurface" &&
159 StateName !=
"InnerSurface" &&
160 StateName !=
"ImpactPoint" &&
161 StateName !=
"default"
225 histname =
"NumberOfRecHitsPerTrack_";
230 histname =
"NumberOfValidRecHitsPerTrack_";
235 histname =
"NumberOfLostRecHitsPerTrack_";
240 histname =
"NumberOfMissingInnerRecHitsPerTrack_";
245 histname =
"NumberOfMissingOuterRecHitsPerTrack_";
253 histname =
"NumberOfValidRecHitVsPhiVsEtaPerTrack_";
255 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 40.,
"");
259 histname =
"NumberOfLostRecHitVsPhiVsEtaPerTrack_";
261 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 5.,
"");
266 histname =
"NumberMIRecHitVsPhiVsEtaPerTrack_";
268 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 15.,
"");
272 histname =
"NumberMORecHitVsPhiVsEtaPerTrack_";
274 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 15.,
"");
281 std::string layerTypeName[4] = {
"",
"Off",
"3D",
"Missing"};
282 for (
int i=0;
i<4; ++
i) {
283 histname =
"NumberOf"+ layerTypeName[
i] +
"LayersPerTrack_";
289 for (
int i=0;
i<4; ++
i) {
290 histname =
"NumberOf"+ layerTypeName[
i] +
"LayersVsPhiVsEtaPerTrack_";
292 EtaBin, EtaMin, EtaMax, PhiBin, PhiMin, PhiMax, 0, 40.,
"");
331 Chi2->setAxisTitle(
"Track #chi^{2}" ,1);
332 Chi2->setAxisTitle(
"Number of Tracks",2);
384 histname =
"xPointOfClosestApproach_";
389 histname =
"yPointOfClosestApproach_";
394 histname =
"zPointOfClosestApproach_";
399 histname =
"xPointOfClosestApproachToPV_";
404 histname =
"yPointOfClosestApproachToPV_";
409 histname =
"zPointOfClosestApproachToPV_";
460 histname =
"NumberOfRecHitsPerTrack_lumiFlag_";
514 histname =
"DistanceOfClosestApproachToBS_";
519 histname =
"DistanceOfClosestApproachToBSVsPhi_";
525 histname =
"xPointOfClosestApproachVsZ0wrt000_";
530 histname =
"yPointOfClosestApproachVsZ0wrt000_";
535 histname =
"xPointOfClosestApproachVsZ0wrtBS_";
540 histname =
"yPointOfClosestApproachVsZ0wrtBS_";
545 histname =
"zPointOfClosestApproachVsPhi_";
575 histname =
"DistanceOfClosestApproachToPV_";
580 histname =
"DistanceOfClosestApproachToPVVsPhi_";
586 histname =
"xPointOfClosestApproachVsZ0wrtPV_";
591 histname =
"yPointOfClosestApproachVsZ0wrtPV_";
609 histname =
"TESTDistanceOfClosestApproachToBS_";
614 histname =
"TESTDistanceOfClosestApproachToBSVsPhi_";
648 histname =
"DistanceOfClosestApproachVsTheta_";
654 histname =
"DistanceOfClosestApproachVsEta_";
660 histname =
"DistanceOfClosestApproach_";
665 histname =
"DistanceOfClosestApproachVsPhi_";
675 const double sipBins = 200;
676 const double sipMin = -20;
677 const double sipMax = 20;
732 double chi2 = track.
chi2();
733 double chi2prob = TMath::Prob(track.
chi2(),(int)track.
ndof());
823 if (recoPrimaryVerticesHandle->size() > 0) {
833 double longDCAsig = 0, transDCAsig = 0;
836 if(zerr2 > 0) longDCAsig = track.
dz(pv.
position())/zerr2;
837 if(xyerr2 > 0) transDCAsig = track.
dxy(pv.
position())/xyerr2;
868 if(ip3d.first)
sip3dToPV->
Fill(ip3d.second.value() / ip3d.second.error());
869 if(ip2d.first)
sip2dToPV->
Fill(ip2d.second.value() / ip2d.second.error());
894 if (StateName ==
"All") {
899 StateName !=
"OuterSurface" &&
900 StateName !=
"InnerSurface" &&
901 StateName !=
"ImpactPoint" &&
902 StateName !=
"default"
1012 std::string histTag = (sname ==
"default") ? CategoryName : sname +
"_" + CategoryName;
1020 histname =
"Chi2oNDFVsTheta_" + histTag;
1025 histname =
"Chi2oNDFVsPhi_" + histTag;
1030 histname =
"Chi2oNDFVsEta_" + histTag;
1035 histname =
"Chi2ProbVsPhi_" + histTag;
1040 histname =
"Chi2ProbVsEta_" + histTag;
1087 histname =
"TrackTheta_" + histTag;
1097 histname =
"TrackPErrOverP_" + histTag;
1102 histname =
"TrackPtErrOverPt_" + histTag;
1107 histname =
"TrackPtErrOverPtVsEta_" + histTag;
1113 histname =
"TrackPxErrOverPx_" + histTag;
1118 histname =
"TrackPyErrOverPy_" + histTag;
1123 histname =
"TrackPzErrOverPz_" + histTag;
1128 histname =
"TrackPhiErr_" + histTag;
1133 histname =
"TrackEtaErr_" + histTag;
1140 histname =
"NumberOfRecHitsPerTrackVsPhi_" + histTag;
1146 histname =
"NumberOfRecHitsPerTrackVsTheta_" + histTag;
1151 histname =
"NumberOfRecHitsPerTrackVsEta_" + histTag;
1156 histname =
"NumberOfValidRecHitsPerTrackVsPhi_" + histTag;
1162 histname =
"NumberOfValidRecHitsPerTrackVsEta_" + histTag;
1168 histname =
"NumberOfLayersPerTrackVsPhi_" + histTag;
1174 histname =
"NumberOfLayersPerTrackVsTheta_" + histTag;
1179 histname =
"NumberOfLayersPerTrackVsEta_" + histTag;
1185 histname =
"Chi2oNDFVsTheta_" + histTag;
1191 histname =
"Chi2oNDFVsPhi_" + histTag;
1196 histname =
"Chi2oNDFVsEta_" + histTag;
1201 histname =
"Chi2ProbVsPhi_" + histTag;
1206 histname =
"Chi2ProbVsEta_" + histTag;
1224 double pxerror, pyerror, pzerror, pterror, perror, phierror,
etaerror;
1226 if (sname ==
"default") {
1234 theta = track.
theta();
1281 std::map<std::string, TkParameterMEs>::iterator iPos =
TkParameterMEMap.find(sname);
1335 double chi2prob = TMath::Prob(track.
chi2(),(int)track.
ndof());
1382 for (
auto det : subdetectors ) {
1399 histname =
"NumberOfRecHitsPerTrack_" + det +
"_" + CategoryName;
1404 histname =
"NumberOfRecHitsPerTrackVsPhi_" + det +
"_" + CategoryName;
1409 histname =
"NumberOfRecHitsPerTrackVsEta_" + det +
"_" + CategoryName;
1414 histname =
"NumberOfLayersPerTrack_" + det +
"_" + CategoryName;
1419 histname =
"NumberOfLayersPerTrackVsPhi_" + det +
"_" + CategoryName;
1424 histname =
"NumberOfLayersPerTrackVsEta_" + det +
"_" + CategoryName;
1441 double phi = track.
phi();
1442 double eta = track.
eta();
1447 int nValidLayers = 0;
1448 int nValidRecHits = 0;
1449 int substr = it->second.detectorId;
1480 it->second.NumberOfRecHitsPerTrack ->
Fill(nValidRecHits);
1481 it->second.NumberOfRecHitsPerTrackVsPhi ->
Fill(phi, nValidRecHits);
1482 it->second.NumberOfRecHitsPerTrackVsEta ->
Fill(eta, nValidRecHits);
1484 it->second.NumberOfLayersPerTrack ->
Fill(nValidLayers);
1485 it->second.NumberOfLayersPerTrackVsPhi ->
Fill(phi, nValidLayers);
1486 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
double dxyError() const
error on dxy
MonitorElement * xPointOfClosestApproachToPV
const CurvilinearTrajectoryError & curvilinearError() const
MonitorElement * TrackEta
MonitorElement * TrackPtErr
MonitorElement * sip3dToPV
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
MonitorElement * sipDzToBS
std::map< std::string, TkParameterMEs > TkParameterMEMap
MonitorElement * NumberOfLayersPerTrack[4]
MonitorElement * NhitVsPhi_HighPurity
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * algorithm
double px() const
x coordinate of momentum vector
int pixelLayersWithMeasurement() const
bool doHitPropertiesPlots_
MonitorElement * DistanceOfClosestApproach
const math::XYZPoint & outerPosition() const
position of the outermost hit
bool doRecHitVsPhiVsEtaPerTrack_
MonitorElement * NumberOfLayersPerTrackVsTheta
MonitorElement * NumberOfRecHitsPerTrack_lumiFlag
std::map< std::string, TkRecHitsPerSubDetMEs > TkRecHitsPerSubDetMEMap
int trackerLayersWithMeasurement() const
const Point & position() const
position
MonitorElement * NumberOfValidRecHitVsPhiVsEtaPerTrack
int pixelEndcapLayersWithMeasurement() const
int numberOfValidStripTOBHits() const
bool doMeasurementStatePlots_
TrajectoryStateOnSurface innermostMeasurementState() const
MonitorElement * NumberOfRecHitsPerTrack
int numberOfLostTrackerHits(HitCategory category) const
Geom::Theta< T > theta() const
const math::XYZPoint & innerPosition() const
position of the innermost hit
MonitorElement * NumberOfLayersVsPhiVsEtaPerTrack[4]
TrackAlgorithm algo() const
void disableSoftReset(MonitorElement *me)
MonitorElement * TESTDistanceOfClosestApproachToBSVsPhi
MonitorElement * NumberOfValidRecHitsPerTrackVsEta
MonitorElement * Chi2oNDFVsEta
MonitorElement * TransDCASig
MonitorElement * NumberOfMIRecHitVsPhiVsEtaPerTrack
MonitorElement * NumberOfRecHitsPerTrackVsPhi
MonitorElement * xPointOfClosestApproachVsZ0wrt000
double eta() const
pseudorapidity of momentum vector
int numberOfValidStripLayersWithMonoAndStereo(uint16_t stripdet, uint16_t layer) const
std::string qualityString_
int trackerLayersTotallyOffOrBad() const
int numberOfValidPixelBarrelHits() const
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * NumberOfLostRecHitVsPhiVsEtaPerTrack
MonitorElement * xPointOfClosestApproach
MonitorElement * Chi2oNDFVsTheta
double chi2() const
chi-squared of the fit
MonitorElement * NumberOfMIRecHitsPerTrack
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
MonitorElement * dNdPt_HighPurity
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 * dNdPhi_HighPurity
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
MonitorElement * sip2dToPV
void softReset(MonitorElement *me)
MonitorElement * Chi2oNDFVsTheta
TrajectoryStateOnSurface outermostMeasurementState() const
MonitorElement * sipDzToPV
MonitorElement * sipDxyToBS
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 * dNdEta_HighPurity
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)
TrackAlgorithm originalAlgo() const
TrajectoryStateOnSurface TSOS
static TrackQuality qualityByName(const std::string &name)
double xError() const
error on x
MonitorElement * NumberOfLayersPerTrackVsEta
void setCurrentFolder(const std::string &fullpath)
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
MonitorElement * sipDxyToPV
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
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[]
bool quality(const TrackQuality) const
Track quality.
int numberOfValidPixelEndcapHits() const
MonitorElement * zPointOfClosestApproachToPV
int trackerLayersWithoutMeasurement(HitCategory category) const
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_
MonitorElement * NhitVsEta_HighPurity
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 * 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 * NumberOfMORecHitVsPhiVsEtaPerTrack
MonitorElement * NumberOfMORecHitsPerTrack
MonitorElement * NumberOfLayersPerTrackVsPhi
MonitorElement * LongDCASig
edm::EDGetTokenT< reco::VertexCollection > pvToken_
MonitorElement * Chi2oNDFVsPhi