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 
16 
20 
22 
26 
31 
33 
35 public:
36  explicit dEdxHitAnalyzer(const edm::ParameterSet&);
37  ~dEdxHitAnalyzer() override;
38 
39  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
40 
41  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
42  double harmonic2(const reco::DeDxHitInfo* dedxHits);
43  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
44  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
45 
46 private:
47  // ----------member data ---------------------------
50 
53 
54  struct dEdxMEs {
59 
60  dEdxMEs() : ME_StripHitDeDx(nullptr), ME_PixelHitDeDx(nullptr), ME_NHitDeDx(nullptr), ME_Harm2DeDx(nullptr) {}
61  };
62 
65 
66  std::vector<std::string> dEdxInputList_;
67  std::vector<edm::EDGetTokenT<reco::DeDxHitInfoAss> > dEdxTokenList_;
68 
70  std::vector<std::string> AlgoNames;
71  std::vector<dEdxMEs> dEdxMEsVector;
72  std::string histname; //for naming the histograms according to algorithm used
73 
75 
77 
79  double dEdxNHitMin;
80  double dEdxNHitMax;
81 
83  double dEdxStripMin;
84  double dEdxStripMax;
85 
87  double dEdxPixelMin;
88  double dEdxPixelMax;
89 
91  double dEdxHarm2Min;
92  double dEdxHarm2Max;
93 };
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
dEdxHitAnalyzer::dEdxMEs::ME_Harm2DeDx
MonitorElement * ME_Harm2DeDx
Definition: dEdxHitAnalyzer.h:58
dEdxHitAnalyzer::dEdxMEsVector
std::vector< dEdxMEs > dEdxMEsVector
Definition: dEdxHitAnalyzer.h:71
dEdxHitAnalyzer::dEdxPixelBin
int dEdxPixelBin
Definition: dEdxHitAnalyzer.h:86
dEdxHitAnalyzer::dEdxStripBin
int dEdxStripBin
Definition: dEdxHitAnalyzer.h:82
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< reco::TrackCollection >
dEdxHitAnalyzer::dEdxInputList_
std::vector< std::string > dEdxInputList_
Definition: dEdxHitAnalyzer.h:66
dEdxHitAnalyzer::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: dEdxHitAnalyzer.cc:128
dEdxHitAnalyzer::dEdxStripMax
double dEdxStripMax
Definition: dEdxHitAnalyzer.h:84
DQMStore.h
dEdxHitAnalyzer::conf_
edm::ParameterSet conf_
Definition: dEdxHitAnalyzer.h:49
dEdxHitAnalyzer::dEdxPixelMax
double dEdxPixelMax
Definition: dEdxHitAnalyzer.h:88
dEdxHitAnalyzer::dEdxHarm2Min
double dEdxHarm2Min
Definition: dEdxHitAnalyzer.h:91
EDAnalyzer.h
dEdxHitAnalyzer::doDeDxPlots_
bool doDeDxPlots_
Definition: dEdxHitAnalyzer.h:52
dEdxHitAnalyzer::dEdxNHitMax
double dEdxNHitMax
Definition: dEdxHitAnalyzer.h:80
dEdxHitAnalyzer::dEdxMEs::ME_PixelHitDeDx
MonitorElement * ME_PixelHitDeDx
Definition: dEdxHitAnalyzer.h:56
dEdxHitAnalyzer::dEdxMEs
Definition: dEdxHitAnalyzer.h:54
MakerMacros.h
dEdxHitAnalyzer
Definition: dEdxHitAnalyzer.h:34
Track.h
TrackFwd.h
Service.h
dEdxHitAnalyzer::TrackName
std::string TrackName
Definition: dEdxHitAnalyzer.h:69
dEdxHitAnalyzer::dEdxTokenList_
std::vector< edm::EDGetTokenT< reco::DeDxHitInfoAss > > dEdxTokenList_
Definition: dEdxHitAnalyzer.h:67
dEdxHitAnalyzer::dEdxHitAnalyzer
dEdxHitAnalyzer(const edm::ParameterSet &)
Definition: dEdxHitAnalyzer.cc:22
dEdxHitAnalyzer::dEdxHarm2Max
double dEdxHarm2Max
Definition: dEdxHitAnalyzer.h:92
EDGetToken.h
DQMEDAnalyzer.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
reco::DeDxHitInfo
Definition: DeDxHitInfo.h:14
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
dEdxHitAnalyzer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: dEdxHitAnalyzer.cc:174
DeDxHitInfo.h
GenericTriggerEventFlag
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
Definition: GenericTriggerEventFlag.h:42
iEvent
int iEvent
Definition: GenABIO.cc:224
dEdxHitAnalyzer::fullconf_
edm::ParameterSet fullconf_
Definition: dEdxHitAnalyzer.h:48
dEdxHitAnalyzer::dEdxMEs::ME_StripHitDeDx
MonitorElement * ME_StripHitDeDx
Definition: dEdxHitAnalyzer.h:55
edm::EventSetup
Definition: EventSetup.h:57
dEdxHitAnalyzer::dEdxStripMin
double dEdxStripMin
Definition: dEdxHitAnalyzer.h:83
dEdxHitAnalyzer::harmonic2
double harmonic2(const reco::DeDxHitInfo *dedxHits)
Definition: dEdxHitAnalyzer.cc:104
dEdxHitAnalyzer::AlgoNames
std::vector< std::string > AlgoNames
Definition: dEdxHitAnalyzer.h:70
ValueMap.h
dEdxHitAnalyzer::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: dEdxHitAnalyzer.cc:64
dEdxHitAnalyzer::trackToken_
edm::EDGetTokenT< reco::TrackCollection > trackToken_
Definition: dEdxHitAnalyzer.h:64
dEdxHitAnalyzer::dEdxMEs::ME_NHitDeDx
MonitorElement * ME_NHitDeDx
Definition: dEdxHitAnalyzer.h:57
dEdxHitAnalyzer::trackInputTag_
edm::InputTag trackInputTag_
Definition: dEdxHitAnalyzer.h:63
dEdxHitAnalyzer::dEdxNHitBin
int dEdxNHitBin
Definition: dEdxHitAnalyzer.h:78
Frameworkfwd.h
dEdxHitAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: dEdxHitAnalyzer.cc:70
dEdxHitAnalyzer::histname
std::string histname
Definition: dEdxHitAnalyzer.h:72
EventSetup.h
dEdxHitAnalyzer::dEdxPixelMin
double dEdxPixelMin
Definition: dEdxHitAnalyzer.h:87
dqm::implementation::IBooker
Definition: DQMStore.h:43
dEdxHitAnalyzer::genTriggerEventFlag_
GenericTriggerEventFlag * genTriggerEventFlag_
Definition: dEdxHitAnalyzer.h:74
ConsumesCollector.h
dEdxHitAnalyzer::MEFolderName
std::string MEFolderName
Definition: dEdxHitAnalyzer.h:76
ParameterSet.h
dEdxHitAnalyzer::doAllPlots_
bool doAllPlots_
Definition: dEdxHitAnalyzer.h:51
dEdxHitAnalyzer::dEdxNHitMin
double dEdxNHitMin
Definition: dEdxHitAnalyzer.h:79
edm::Event
Definition: Event.h:73
dEdxHitAnalyzer::dEdxHarm2Bin
int dEdxHarm2Bin
Definition: dEdxHitAnalyzer.h:90
dEdxHitAnalyzer::~dEdxHitAnalyzer
~dEdxHitAnalyzer() override
Definition: dEdxHitAnalyzer.cc:57
edm::InputTag
Definition: InputTag.h:15
dEdxHitAnalyzer::dEdxMEs::dEdxMEs
dEdxMEs()
Definition: dEdxHitAnalyzer.h:60