CMS 3D CMS Logo

dEdxHitAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 //
7 // Original Author: Loic Quertenmont 2012/07/25
8 
9 #include <memory>
10 #include <fstream>
11 
26 
28 
30 public:
31  explicit dEdxHitAnalyzer(const edm::ParameterSet&);
32  ~dEdxHitAnalyzer() override;
33 
34  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
35 
36  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
37  double harmonic2(const reco::DeDxHitInfo* dedxHits);
38  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
39  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
40 
41 private:
42  // ----------member data ---------------------------
45 
48 
49  struct dEdxMEs {
54 
55  dEdxMEs() : ME_StripHitDeDx(nullptr), ME_PixelHitDeDx(nullptr), ME_NHitDeDx(nullptr), ME_Harm2DeDx(nullptr) {}
56  };
57 
60 
61  std::vector<std::string> dEdxInputList_;
62  std::vector<edm::EDGetTokenT<reco::DeDxHitInfoAss> > dEdxTokenList_;
63 
65  std::vector<std::string> AlgoNames;
66  std::vector<dEdxMEs> dEdxMEsVector;
67  std::string histname; //for naming the histograms according to algorithm used
68 
70 
72 
74  double dEdxNHitMin;
75  double dEdxNHitMax;
76 
78  double dEdxStripMin;
79  double dEdxStripMax;
80 
82  double dEdxPixelMin;
83  double dEdxPixelMax;
84 
86  double dEdxHarm2Min;
87  double dEdxHarm2Max;
88 };
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * ME_NHitDeDx
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::TrackCollection > trackToken_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::vector< std::string > dEdxInputList_
MonitorElement * ME_StripHitDeDx
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
~dEdxHitAnalyzer() override
std::string histname
std::vector< dEdxMEs > dEdxMEsVector
int iEvent
Definition: GenABIO.cc:224
dEdxHitAnalyzer(const edm::ParameterSet &)
edm::InputTag trackInputTag_
GenericTriggerEventFlag * genTriggerEventFlag_
edm::ParameterSet fullconf_
std::vector< edm::EDGetTokenT< reco::DeDxHitInfoAss > > dEdxTokenList_
double harmonic2(const reco::DeDxHitInfo *dedxHits)
MonitorElement * ME_PixelHitDeDx
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
std::string TrackName
std::vector< std::string > AlgoNames
MonitorElement * ME_Harm2DeDx
edm::ParameterSet conf_
std::string MEFolderName
Definition: Run.h:45