30 , NumberOfRecHitsPerSeed(
NULL)
31 , NumberOfRecHitsPerSeedVsPhiProfile(
NULL)
32 , NumberOfRecHitsPerSeedVsEtaProfile(
NULL)
126 if (doAllSeedPlots || doPT) {
127 histname =
"SeedPt_"+seedProducer.label() +
"_";
133 if (doAllSeedPlots || doETA) {
134 histname =
"SeedEta_"+seedProducer.label() +
"_";
140 if (doAllSeedPlots || doPHI) {
141 histname =
"SeedPhi_"+seedProducer.label() +
"_";
147 if (doAllSeedPlots || doPHIVsETA) {
148 histname =
"SeedPhiVsEta_"+seedProducer.label() +
"_";
154 if (doAllSeedPlots || doTheta){
155 histname =
"SeedTheta_"+seedProducer.label() +
"_";
161 if (doAllSeedPlots || doQ){
162 histname =
"SeedQ_"+seedProducer.label() +
"_";
168 if (doAllSeedPlots || doDxy){
169 histname =
"SeedDxy_"+seedProducer.label() +
"_";
175 if (doAllSeedPlots || doDz){
176 histname =
"SeedDz_"+seedProducer.label() +
"_";
182 if (doAllSeedPlots || doNRecHits){
183 histname =
"NumberOfRecHitsPerSeed_"+seedProducer.label() +
"_";
189 if (doAllSeedPlots || doProfPHI){
190 histname =
"NumberOfRecHitsPerSeedVsPhiProfile_"+seedProducer.label() +
"_";
196 if (doAllSeedPlots || doProfETA){
197 histname =
"NumberOfRecHitsPerSeedVsEtaProfile_"+seedProducer.label() +
"_";
210 histname =
"TrackCandPt_"+tcProducer.label() +
"_";
215 histname =
"TrackCandEta_"+tcProducer.label() +
"_";
220 histname =
"TrackCandPhi_"+tcProducer.label() +
"_";
226 histname =
"TrackCandTheta_"+tcProducer.label() +
"_";
233 histname =
"TrackCandQ_"+tcProducer.label() +
"_";
238 histname =
"TrackCandDxy_"+tcProducer.label() +
"_";
243 histname =
"TrackCandDz_"+tcProducer.label() +
"_";
248 histname =
"NumberOfRecHitsPerTrackCand_"+tcProducer.label() +
"_";
253 histname =
"NumberOfRecHitsPerTrackCandVsPhiProfile_"+tcProducer.label() +
"_";
258 histname =
"NumberOfRecHitsPerTrackCandVsEtaProfile_"+tcProducer.label() +
"_";
264 histname =
"TrackCandPhiVsEta_"+tcProducer.label() +
"_";
290 if(!(tsAtClosestApproachSeed.isValid())) {
291 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
294 GlobalPoint v0 = tsAtClosestApproachSeed.trackStateAtPCA().position();
295 GlobalVector p = tsAtClosestApproachSeed.trackStateAtPCA().momentum();
307 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
309 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
312 if (doAllSeedPlots || doQ)SeedQ->Fill( state.
charge() );
313 if (doAllSeedPlots || doPT) SeedPt->Fill( pt );
314 if (doAllSeedPlots || doETA) SeedEta->Fill( eta );
315 if (doAllSeedPlots || doPHI) SeedPhi->Fill( phi );
316 if (doAllSeedPlots || doPHIVsETA) SeedPhiVsEta->Fill( eta, phi);
317 if (doAllSeedPlots || doTheta) SeedTheta->Fill( theta );
318 if (doAllSeedPlots || doDxy) SeedDxy->Fill( dxy );
319 if (doAllSeedPlots || doDz) SeedDz->Fill( dz );
320 if (doAllSeedPlots || doNRecHits) NumberOfRecHitsPerSeed->Fill( numberOfHits );
321 if (doAllSeedPlots || doProfETA) NumberOfRecHitsPerSeedVsEtaProfile->Fill( eta, numberOfHits );
322 if (doAllSeedPlots || doProfPHI) NumberOfRecHitsPerSeedVsPhiProfile->Fill( phi, numberOfHits );
344 if(!(tsAtClosestApproachTrackCand.isValid())) {
345 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
348 GlobalPoint v0 = tsAtClosestApproachTrackCand.trackStateAtPCA().position();
349 GlobalVector p = tsAtClosestApproachTrackCand.trackStateAtPCA().momentum();
361 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
364 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
368 if (doAllTCPlots) TrackCandQ->Fill( state.
charge() );
369 TrackCandPt->Fill( pt );
370 TrackCandEta->Fill( eta );
371 TrackCandPhi->Fill( phi );
372 TrackCandPhiVsEta->Fill( eta, phi );
373 if (doTheta) TrackCandTheta->Fill( theta );
374 if (doAllTCPlots) TrackCandDxy->Fill( dxy );
375 if (doAllTCPlots) TrackCandDz->Fill( dz );
376 if (doAllTCPlots) NumberOfRecHitsPerTrackCand->Fill( numberOfHits );
377 if (doAllTCPlots) NumberOfRecHitsPerTrackCandVsEtaProfile->Fill( eta, numberOfHits );
378 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
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 &)
std::shared_ptr< TrackingRecHit const > RecHitPointer
PTrajectoryStateOnDet const & startingState() const
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
T const * product() const
MonitorElement * TrackCandTheta
MonitorElement * TrackCandQ
MonitorElement * SeedPhiVsEta
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