31 , NumberOfRecHitsPerSeed(
NULL)
32 , NumberOfRecHitsPerSeedVsPhiProfile(
NULL)
33 , NumberOfRecHitsPerSeedVsEtaProfile(
NULL)
34 , stoppingSource(
NULL)
35 , stoppingSourceVSeta(
NULL)
36 , stoppingSourceVSphi(
NULL)
131 if (doAllSeedPlots || doPT) {
132 histname =
"SeedPt_"+seedProducer.label() +
"_";
138 if (doAllSeedPlots || doETA) {
139 histname =
"SeedEta_"+seedProducer.label() +
"_";
145 if (doAllSeedPlots || doPHI) {
146 histname =
"SeedPhi_"+seedProducer.label() +
"_";
152 if (doAllSeedPlots || doPHIVsETA) {
153 histname =
"SeedPhiVsEta_"+seedProducer.label() +
"_";
159 if (doAllSeedPlots || doTheta){
160 histname =
"SeedTheta_"+seedProducer.label() +
"_";
166 if (doAllSeedPlots || doQ){
167 histname =
"SeedQ_"+seedProducer.label() +
"_";
173 if (doAllSeedPlots || doDxy){
174 histname =
"SeedDxy_"+seedProducer.label() +
"_";
180 if (doAllSeedPlots || doDz){
181 histname =
"SeedDz_"+seedProducer.label() +
"_";
187 if (doAllSeedPlots || doNRecHits){
188 histname =
"NumberOfRecHitsPerSeed_"+seedProducer.label() +
"_";
194 if (doAllSeedPlots || doProfPHI){
195 histname =
"NumberOfRecHitsPerSeedVsPhiProfile_"+seedProducer.label() +
"_";
201 if (doAllSeedPlots || doProfETA){
202 histname =
"NumberOfRecHitsPerSeedVsEtaProfile_"+seedProducer.label() +
"_";
208 if (doAllTCPlots || doStopSource) {
213 <<
" but StopReasonName's only for "
214 << StopReasonNameSize
215 <<
". Please update DataFormats/TrackReco/interface/TrajectoryStopReasons.h.";
219 histname =
"StoppingSource_"+seedProducer.label() +
"_";
223 0.,
double(StopReasonNameSize));
227 histname =
"StoppingSourceVSeta_"+seedProducer.label() +
"_";
234 0.,
double(StopReasonNameSize));
238 histname =
"StoppingSourceVSphi_"+seedProducer.label() +
"_";
245 0.,
double(StopReasonNameSize));
249 for (
size_t ibin=0; ibin<StopReasonNameSize; ibin++) {
265 histname =
"TrackCandPt_"+tcProducer.label() +
"_";
270 histname =
"TrackCandEta_"+tcProducer.label() +
"_";
275 histname =
"TrackCandPhi_"+tcProducer.label() +
"_";
281 histname =
"TrackCandTheta_"+tcProducer.label() +
"_";
288 histname =
"TrackCandQ_"+tcProducer.label() +
"_";
293 histname =
"TrackCandDxy_"+tcProducer.label() +
"_";
298 histname =
"TrackCandDz_"+tcProducer.label() +
"_";
303 histname =
"NumberOfRecHitsPerTrackCand_"+tcProducer.label() +
"_";
308 histname =
"NumberOfRecHitsPerTrackCandVsPhiProfile_"+tcProducer.label() +
"_";
313 histname =
"NumberOfRecHitsPerTrackCandVsEtaProfile_"+tcProducer.label() +
"_";
319 histname =
"TrackCandPhiVsEta_"+tcProducer.label() +
"_";
346 if(!(tsAtClosestApproachSeed.isValid())) {
347 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
350 GlobalPoint v0 = tsAtClosestApproachSeed.trackStateAtPCA().position();
351 GlobalVector p = tsAtClosestApproachSeed.trackStateAtPCA().momentum();
363 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
365 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
368 if (doAllSeedPlots || doQ)SeedQ->Fill( state.
charge() );
369 if (doAllSeedPlots || doPT) SeedPt->Fill( pt );
370 if (doAllSeedPlots || doETA) SeedEta->Fill( eta );
371 if (doAllSeedPlots || doPHI) SeedPhi->Fill( phi );
372 if (doAllSeedPlots || doPHIVsETA) SeedPhiVsEta->Fill( eta, phi);
373 if (doAllSeedPlots || doTheta) SeedTheta->Fill( theta );
374 if (doAllSeedPlots || doDxy) SeedDxy->Fill( dxy );
375 if (doAllSeedPlots || doDz) SeedDz->Fill( dz );
376 if (doAllSeedPlots || doNRecHits) NumberOfRecHitsPerSeed->Fill( numberOfHits );
377 if (doAllSeedPlots || doProfETA) NumberOfRecHitsPerSeedVsEtaProfile->Fill( eta, numberOfHits );
378 if (doAllSeedPlots || doProfPHI) NumberOfRecHitsPerSeedVsPhiProfile->Fill( phi, numberOfHits );
401 if(!(tsAtClosestApproachTrackCand.isValid())) {
402 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
405 GlobalPoint v0 = tsAtClosestApproachTrackCand.trackStateAtPCA().position();
406 GlobalVector p = tsAtClosestApproachTrackCand.trackStateAtPCA().momentum();
418 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
421 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
425 int max = stoppingSource->getNbinsX();
426 double stop = candidate.
stopReason() > max ? double(max-1) :
static_cast<double>(candidate.
stopReason());
427 stoppingSource ->Fill(stop);
428 stoppingSourceVSeta ->Fill(eta,stop);
429 stoppingSourceVSphi ->Fill(phi,stop);
434 if (doAllTCPlots) TrackCandQ->Fill( state.
charge() );
435 TrackCandPt->Fill( pt );
436 TrackCandEta->Fill( eta );
437 TrackCandPhi->Fill( phi );
438 TrackCandPhiVsEta->Fill( eta, phi );
439 if (doTheta) TrackCandTheta->Fill( theta );
440 if (doAllTCPlots) TrackCandDxy->Fill( dxy );
441 if (doAllTCPlots) TrackCandDz->Fill( dz );
442 if (doAllTCPlots) NumberOfRecHitsPerTrackCand->Fill( numberOfHits );
443 if (doAllTCPlots) NumberOfRecHitsPerTrackCandVsEtaProfile->Fill( eta, numberOfHits );
444 if (doAllTCPlots) NumberOfRecHitsPerTrackCandVsPhiProfile->Fill( phi, numberOfHits );
MonitorElement * NumberOfRecHitsPerTrackCandVsPhiProfile
MonitorElement * TrackCandPt
T getParameter(std::string const &) const
double z0() const
z coordinate
virtual ~TrackBuildingAnalyzer()
TrackCharge charge() const
MonitorElement * bookProfile(Args &&...args)
MonitorElement * TrackCandDz
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
Geom::Theta< T > theta() const
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 * stoppingSourceVSphi
GlobalPoint globalPosition() const
MonitorElement * TrackCandPhi
static const std::string StopReasonName[]
MonitorElement * TrackCandPhiVsEta
MonitorElement * SeedTheta
Geom::Theta< T > theta() const
MonitorElement * NumberOfRecHitsPerTrackCandVsEtaProfile
MonitorElement * stoppingSource
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
MonitorElement * NumberOfRecHitsPerSeed
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const TrajectorySeed &seed, const reco::BeamSpot &bs, const edm::ESHandle< MagneticField > &theMF, const edm::ESHandle< TransientTrackingRecHitBuilder > &theTTRHBuilder)
MonitorElement * NumberOfRecHitsPerSeedVsPhiProfile
MonitorElement * TrackCandDxy
FreeTrajectoryState const * freeState(bool withErrors=true) const
virtual void initHisto(DQMStore::IBooker &ibooker)
Cos< T >::type cos(const T &t)
MonitorElement * TrackCandEta
MonitorElement * book1D(Args &&...args)
const double EtaMin[kNumberCalorimeter]
TrackBuildingAnalyzer(const edm::ParameterSet &)
PTrajectoryStateOnDet const & startingState() const
MonitorElement * stoppingSourceVSeta
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
T const * product() const
MonitorElement * TrackCandTheta
MonitorElement * TrackCandQ
MonitorElement * SeedPhiVsEta
Geom::Phi< T > phi() const
GlobalVector globalMomentum() const
double y0() const
y coordinate
MonitorElement * NumberOfRecHitsPerSeedVsEtaProfile
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * NumberOfRecHitsPerTrackCand
uint8_t stopReason() const
double x0() const
x coordinate