30 , NumberOfRecHitsPerSeed(
NULL)
31 , NumberOfRecHitsPerSeedVsPhiProfile(
NULL)
32 , NumberOfRecHitsPerSeedVsEtaProfile(
NULL)
125 if (doAllSeedPlots || doPT) {
126 histname =
"SeedPt_"+seedProducer.label() +
"_";
132 if (doAllSeedPlots || doETA) {
133 histname =
"SeedEta_"+seedProducer.label() +
"_";
139 if (doAllSeedPlots || doPHI) {
140 histname =
"SeedPhi_"+seedProducer.label() +
"_";
146 if (doAllSeedPlots || doPHIVsETA) {
147 histname =
"SeedPhiVsEta_"+seedProducer.label() +
"_";
153 if (doAllSeedPlots || doTheta){
154 histname =
"SeedTheta_"+seedProducer.label() +
"_";
160 if (doAllSeedPlots || doQ){
161 histname =
"SeedQ_"+seedProducer.label() +
"_";
167 if (doAllSeedPlots || doDxy){
168 histname =
"SeedDxy_"+seedProducer.label() +
"_";
174 if (doAllSeedPlots || doDz){
175 histname =
"SeedDz_"+seedProducer.label() +
"_";
181 if (doAllSeedPlots || doNRecHits){
182 histname =
"NumberOfRecHitsPerSeed_"+seedProducer.label() +
"_";
188 if (doAllSeedPlots || doProfPHI){
189 histname =
"NumberOfRecHitsPerSeedVsPhiProfile_"+seedProducer.label() +
"_";
195 if (doAllSeedPlots || doProfETA){
196 histname =
"NumberOfRecHitsPerSeedVsEtaProfile_"+seedProducer.label() +
"_";
209 histname =
"TrackCandPt_"+tcProducer.label() +
"_";
214 histname =
"TrackCandEta_"+tcProducer.label() +
"_";
219 histname =
"TrackCandPhi_"+tcProducer.label() +
"_";
224 histname =
"TrackCandTheta_"+tcProducer.label() +
"_";
229 histname =
"TrackCandQ_"+tcProducer.label() +
"_";
234 histname =
"TrackCandDxy_"+tcProducer.label() +
"_";
239 histname =
"TrackCandDz_"+tcProducer.label() +
"_";
244 histname =
"NumberOfRecHitsPerTrackCand_"+tcProducer.label() +
"_";
249 histname =
"NumberOfRecHitsPerTrackCandVsPhiProfile_"+tcProducer.label() +
"_";
254 histname =
"NumberOfRecHitsPerTrackCandVsEtaProfile_"+tcProducer.label() +
"_";
280 if(!(tsAtClosestApproachSeed.isValid())) {
281 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
284 GlobalPoint v0 = tsAtClosestApproachSeed.trackStateAtPCA().position();
285 GlobalVector p = tsAtClosestApproachSeed.trackStateAtPCA().momentum();
297 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
299 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
302 if (doAllSeedPlots || doQ)SeedQ->Fill( state.
charge() );
303 if (doAllSeedPlots || doPT) SeedPt->Fill( pt );
304 if (doAllSeedPlots || doETA) SeedEta->Fill( eta );
305 if (doAllSeedPlots || doPHI) SeedPhi->Fill( phi );
306 if (doAllSeedPlots || doPHIVsETA) SeedPhiVsEta->Fill( eta, phi);
307 if (doAllSeedPlots || doTheta) SeedTheta->Fill( theta );
308 if (doAllSeedPlots || doDxy) SeedDxy->Fill( dxy );
309 if (doAllSeedPlots || doDz) SeedDz->Fill( dz );
310 if (doAllSeedPlots || doNRecHits) NumberOfRecHitsPerSeed->Fill( numberOfHits );
311 if (doAllSeedPlots || doProfETA) NumberOfRecHitsPerSeedVsEtaProfile->Fill( eta, numberOfHits );
312 if (doAllSeedPlots || doProfPHI) NumberOfRecHitsPerSeedVsPhiProfile->Fill( phi, numberOfHits );
334 if(!(tsAtClosestApproachTrackCand.isValid())) {
335 edm::LogVerbatim(
"TrackBuilding") <<
"TrajectoryStateClosestToBeamLine not valid";
338 GlobalPoint v0 = tsAtClosestApproachTrackCand.trackStateAtPCA().position();
339 GlobalVector p = tsAtClosestApproachTrackCand.trackStateAtPCA().momentum();
351 double numberOfHits = candidate.
recHits().second-candidate.
recHits().first;
354 double dz =
v.z() - (
v.x()*p.
x()+
v.y()*p.
y())/p.
perp() * p.
z()/p.
perp();
358 TrackCandQ->Fill( state.
charge() );
359 TrackCandPt->Fill( pt );
360 TrackCandEta->Fill( eta );
361 TrackCandPhi->Fill( phi );
362 TrackCandTheta->Fill( theta );
363 TrackCandDxy->Fill( dxy );
364 TrackCandDz->Fill( dz );
365 NumberOfRecHitsPerTrackCand->Fill( numberOfHits );
366 NumberOfRecHitsPerTrackCandVsEtaProfile->Fill( eta, numberOfHits );
367 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 * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * TrackCandDz
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
Geom::Theta< T > theta() const
const double EtaMax[kNumberCalorimeter]
MonitorElement * TrackCandPhi
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
Cos< T >::type cos(const T &t)
MonitorElement * TrackCandEta
const double EtaMin[kNumberCalorimeter]
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
TrackBuildingAnalyzer(const edm::ParameterSet &)
PTrajectoryStateOnDet const & startingState() const
virtual void beginRun(DQMStore *dqmStore_)
T const * product() const
MonitorElement * TrackCandTheta
MonitorElement * TrackCandQ
MonitorElement * SeedPhiVsEta
GlobalVector globalMomentum() const
double y0() const
y coordinate
MonitorElement * NumberOfRecHitsPerSeedVsEtaProfile
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * NumberOfRecHitsPerTrackCand
void setCurrentFolder(const std::string &fullpath)
double x0() const
x coordinate