CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MTVHistoProducerAlgo.h
Go to the documentation of this file.
1 #ifndef Validation_RecoTrack_MTVHistoProducerAlgo_h
2 #define Validation_RecoTrack_MTVHistoProducerAlgo_h
3 
4 /* \author B.Mangano, UCSD
5  *
6  * Base class which defines the interface of a generic HistoProducerAlogs
7  * to be used within the MultiTrackValidator module.
8  * The concrete algorithms will be plugged into the MTV to produce all
9  * the validation plots that the user wants.
10  */
13 
17 
20 
23 
24 #include <TH1F.h>
25 #include <TH2F.h>
26 
28  public:
29 
32  virtual ~MTVHistoProducerAlgo() {}
33  // to be implemented in the concrete classes
34  virtual void initialize()=0;
35 
36  void setDQMStore(DQMStore* dbe) {dbe_ = dbe;}
37 
38  virtual void bookSimHistos()=0;
39  virtual void bookRecoHistos()=0;
40  virtual void bookRecoHistosForStandaloneRunning()=0;
41 
42  virtual void fill_generic_simTrack_histos(int counter,const TrackingParticle::Vector&,const TrackingParticle::Point& vertex, int bx)=0;
43 
45  const TrackingParticle& tp,
46  const TrackingParticle::Vector& momentumTP, const TrackingParticle::Point& vertexTP,
47  double dxy, double dz, int nSimHits,
48  const reco::Track* track,
49  int numVertices, double vertz)=0;
50 
52  const reco::GenParticle& tp,
53  const TrackingParticle::Vector & momentumTP, const TrackingParticle::Point & vertexTP,
54  double dxy, double dz, int nSimHits,
55  const reco::Track* track,
56  int numVertices, double vertz)=0;
57 
58  virtual void fill_generic_recoTrack_histos(int count,
59  const reco::Track& track,
60  const math::XYZPoint& bsPosition,
61  bool isMatched,
62  bool isSigMatched,
63  bool isChargeMatched,
64  int numAssocRecoTracks,
65  int numVertices,
66  int tpbunchcrossing,
67  int nSimHits,
68  double sharedFraction)=0;
69 
70  virtual void fill_dedx_recoTrack_histos(int count, edm::RefToBase<reco::Track>& trackref,const std::vector< edm::ValueMap<reco::DeDxData> >& v_dEdx)=0;
71  // virtual void fill_dedx_recoTrack_histos(reco::TrackRef trackref, std::vector< edm::ValueMap<reco::DeDxData> > v_dEdx)=0;
72 
74  const reco::Track& track)=0;
75 
76  virtual void fill_trackBased_histos(int count,
77  int assTracks,
78  int numRecoTracks,
79  int numSimTracks)=0;
80 
82  const TrackingParticle::Vector& momentumTP,
83  const TrackingParticle::Point& vertexTP,
84  int chargeTP,
85  const reco::Track& track,
86  const math::XYZPoint& bsPosition)=0;
87 
88  virtual void finalHistoFits(int counter)=0;
89 
90 
91  virtual void fillHistosFromVectors(int counter)=0;
92  virtual void fillProfileHistosFromVectors(int counter)=0;
93 
94 
95  protected:
96  //protected functions
97 
98  virtual double getEta(double eta)=0;
99 
100  virtual double getPt(double pt)=0;
101 
102  void doProfileX(TH2 * th2, MonitorElement* me);
103 
105  doProfileX(th2m->getTH2F(), me);
106  }
107 
108  void fillPlotFromVector(MonitorElement* h, std::vector<int>& vec);
109 
111  std::vector<int>& numerator,
112  std::vector<int>& denominator,
113  std::string type);
114 
115  void BinLogX(TH1*h);
116 
118  private:
119  //private data members
121 
122 
123 };
124 
125 #endif
type
Definition: HCALResponse.h:21
MTVHistoProducerAlgo(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
void fillPlotFromVectors(MonitorElement *h, std::vector< int > &numerator, std::vector< int > &denominator, std::string type)
MTVHistoProducerAlgo(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
list numerator
Definition: cuy.py:483
void doProfileX(TH2 *th2, MonitorElement *me)
void fillPlotFromVector(MonitorElement *h, std::vector< int > &vec)
void doProfileX(MonitorElement *th2m, MonitorElement *me)
virtual void fill_dedx_recoTrack_histos(int count, edm::RefToBase< reco::Track > &trackref, const std::vector< edm::ValueMap< reco::DeDxData > > &v_dEdx)=0
virtual void bookSimHistos()=0
const edm::ParameterSet & pset_
virtual double getEta(double eta)=0
virtual void fill_ResoAndPull_recoTrack_histos(int count, const TrackingParticle::Vector &momentumTP, const TrackingParticle::Point &vertexTP, int chargeTP, const reco::Track &track, const math::XYZPoint &bsPosition)=0
T eta() const
void setDQMStore(DQMStore *dbe)
virtual void bookRecoHistos()=0
math::XYZPointD Point
point in the space
virtual void fill_recoAssociated_simTrack_histos(int count, const TrackingParticle &tp, const TrackingParticle::Vector &momentumTP, const TrackingParticle::Point &vertexTP, double dxy, double dz, int nSimHits, const reco::Track *track, int numVertices, double vertz)=0
list denominator
Definition: cuy.py:484
virtual void fill_generic_recoTrack_histos(int count, const reco::Track &track, const math::XYZPoint &bsPosition, bool isMatched, bool isSigMatched, bool isChargeMatched, int numAssocRecoTracks, int numVertices, int tpbunchcrossing, int nSimHits, double sharedFraction)=0
bool isMatched(TrackingRecHit const &hit)
virtual void fillProfileHistosFromVectors(int counter)=0
virtual void initialize()=0
virtual void finalHistoFits(int counter)=0
virtual void fill_simAssociated_recoTrack_histos(int count, const reco::Track &track)=0
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
virtual void fillHistosFromVectors(int counter)=0
virtual void fill_trackBased_histos(int count, int assTracks, int numRecoTracks, int numSimTracks)=0
virtual double getPt(double pt)=0
virtual void bookRecoHistosForStandaloneRunning()=0
static std::atomic< unsigned int > counter
Monte Carlo truth information used for tracking validation.
math::XYZVectorD Vector
point in the space
TH2F * getTH2F(void) const
virtual void fill_generic_simTrack_histos(int counter, const TrackingParticle::Vector &, const TrackingParticle::Point &vertex, int bx)=0