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;
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;
426 double stop = candidate.
stopReason() > max ? double(max-1) :
static_cast<double>(candidate.
stopReason());
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
const double EtaMax[kNumberCalorimeter]
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)
MonitorElement * TrackCandTheta
MonitorElement * TrackCandQ
MonitorElement * SeedPhiVsEta
GlobalVector globalMomentum() const
int getNbinsX(void) const
get # of bins in X-axis
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)
T const * product() const
MonitorElement * NumberOfRecHitsPerTrackCand
uint8_t stopReason() const
double x0() const
x coordinate