31 , NumberOfRecHitsPerSeed(
NULL)
32 , NumberOfRecHitsPerSeedVsPhiProfile(
NULL)
33 , NumberOfRecHitsPerSeedVsEtaProfile(
NULL)
127 if (doAllSeedPlots || doPT) {
128 histname =
"SeedPt_"+seedProducer.label() +
"_";
134 if (doAllSeedPlots || doETA) {
135 histname =
"SeedEta_"+seedProducer.label() +
"_";
141 if (doAllSeedPlots || doPHI) {
142 histname =
"SeedPhi_"+seedProducer.label() +
"_";
148 if (doAllSeedPlots || doPHIVsETA) {
149 histname =
"SeedPhiVsEta_"+seedProducer.label() +
"_";
155 if (doAllSeedPlots || doTheta){
156 histname =
"SeedTheta_"+seedProducer.label() +
"_";
162 if (doAllSeedPlots || doQ){
163 histname =
"SeedQ_"+seedProducer.label() +
"_";
169 if (doAllSeedPlots || doDxy){
170 histname =
"SeedDxy_"+seedProducer.label() +
"_";
176 if (doAllSeedPlots || doDz){
177 histname =
"SeedDz_"+seedProducer.label() +
"_";
183 if (doAllSeedPlots || doNRecHits){
184 histname =
"NumberOfRecHitsPerSeed_"+seedProducer.label() +
"_";
190 if (doAllSeedPlots || doProfPHI){
191 histname =
"NumberOfRecHitsPerSeedVsPhiProfile_"+seedProducer.label() +
"_";
197 if (doAllSeedPlots || doProfETA){
198 histname =
"NumberOfRecHitsPerSeedVsEtaProfile_"+seedProducer.label() +
"_";
211 histname =
"TrackCandPt_"+tcProducer.label() +
"_";
216 histname =
"TrackCandEta_"+tcProducer.label() +
"_";
221 histname =
"TrackCandPhi_"+tcProducer.label() +
"_";
227 histname =
"TrackCandTheta_"+tcProducer.label() +
"_";
234 histname =
"TrackCandQ_"+tcProducer.label() +
"_";
239 histname =
"TrackCandDxy_"+tcProducer.label() +
"_";
244 histname =
"TrackCandDz_"+tcProducer.label() +
"_";
249 histname =
"NumberOfRecHitsPerTrackCand_"+tcProducer.label() +
"_";
254 histname =
"NumberOfRecHitsPerTrackCandVsPhiProfile_"+tcProducer.label() +
"_";
259 histname =
"NumberOfRecHitsPerTrackCandVsEtaProfile_"+tcProducer.label() +
"_";
265 histname =
"TrackCandPhiVsEta_"+tcProducer.label() +
"_";
292 if(!(tsAtClosestApproachSeed.isValid())) {
293 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
296 GlobalPoint v0 = tsAtClosestApproachSeed.trackStateAtPCA().position();
297 GlobalVector p = tsAtClosestApproachSeed.trackStateAtPCA().momentum();
309 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
311 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
314 if (doAllSeedPlots || doQ)SeedQ->Fill( state.
charge() );
315 if (doAllSeedPlots || doPT) SeedPt->Fill( pt );
316 if (doAllSeedPlots || doETA) SeedEta->Fill( eta );
317 if (doAllSeedPlots || doPHI) SeedPhi->Fill( phi );
318 if (doAllSeedPlots || doPHIVsETA) SeedPhiVsEta->Fill( eta, phi);
319 if (doAllSeedPlots || doTheta) SeedTheta->Fill( theta );
320 if (doAllSeedPlots || doDxy) SeedDxy->Fill( dxy );
321 if (doAllSeedPlots || doDz) SeedDz->Fill( dz );
322 if (doAllSeedPlots || doNRecHits) NumberOfRecHitsPerSeed->Fill( numberOfHits );
323 if (doAllSeedPlots || doProfETA) NumberOfRecHitsPerSeedVsEtaProfile->Fill( eta, numberOfHits );
324 if (doAllSeedPlots || doProfPHI) NumberOfRecHitsPerSeedVsPhiProfile->Fill( phi, numberOfHits );
347 if(!(tsAtClosestApproachTrackCand.isValid())) {
348 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
351 GlobalPoint v0 = tsAtClosestApproachTrackCand.trackStateAtPCA().position();
352 GlobalVector p = tsAtClosestApproachTrackCand.trackStateAtPCA().momentum();
364 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
367 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
371 if (doAllTCPlots) TrackCandQ->Fill( state.
charge() );
372 TrackCandPt->Fill( pt );
373 TrackCandEta->Fill( eta );
374 TrackCandPhi->Fill( phi );
375 TrackCandPhiVsEta->Fill( eta, phi );
376 if (doTheta) TrackCandTheta->Fill( theta );
377 if (doAllTCPlots) TrackCandDxy->Fill( dxy );
378 if (doAllTCPlots) TrackCandDz->Fill( dz );
379 if (doAllTCPlots) NumberOfRecHitsPerTrackCand->Fill( numberOfHits );
380 if (doAllTCPlots) NumberOfRecHitsPerTrackCandVsEtaProfile->Fill( eta, numberOfHits );
381 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
GlobalPoint globalPosition() const
MonitorElement * TrackCandPhi
MonitorElement * TrackCandPhiVsEta
MonitorElement * SeedTheta
Geom::Theta< T > theta() const
MonitorElement * NumberOfRecHitsPerTrackCandVsEtaProfile
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
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
double x0() const
x coordinate