CMS 3D CMS Logo

dEdxAnalyzer.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 
25 
29 
31 
32 class DQMStore;
34 
35 class dEdxAnalyzer : public DQMEDAnalyzer {
36  public:
37  explicit dEdxAnalyzer(const edm::ParameterSet&);
38  ~dEdxAnalyzer() override;
39 
40  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
41 
42  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
43  void endJob() override;
44  double mass(double P, double I);
45 
46  // virtual void beginRun(const edm::Run&, const edm::EventSetup&);
47  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
48  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
49 
50  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
51 
52  private:
53  // ----------member data ---------------------------
57 
60 
61  struct dEdxMEs
62  {
70 
72  :ME_MipDeDx(nullptr)
73  ,ME_MipDeDxNHits(nullptr)
74  ,ME_MipDeDxNSatHits(nullptr)
75  ,ME_MipDeDxMass(nullptr)
76  ,ME_HipDeDxMass(nullptr)
77  ,ME_MipHighPtDeDx(nullptr)
78  ,ME_MipHighPtDeDxNHits(nullptr)
79  {}
80  };
81 
83  double dEdxK, dEdxC;
84 
87 
88  std::vector<std::string> dEdxInputList_;
89  std::vector<edm::EDGetTokenT<reco::DeDxDataValueMap> > dEdxTokenList_;
90 
92  std::vector< std::string > AlgoNames;
93  std::vector< dEdxMEs > dEdxMEsVector;
94  std::string histname; //for naming the histograms according to algorithm used
95 
97 
98 };
MonitorElement * ME_MipHighPtDeDxNHits
Definition: dEdxAnalyzer.h:69
double HighPtThreshold
Definition: dEdxAnalyzer.h:82
~dEdxAnalyzer() override
Definition: dEdxAnalyzer.cc:40
edm::EDGetTokenT< reco::TrackCollection > trackToken_
Definition: dEdxAnalyzer.h:86
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double dEdxC
Definition: dEdxAnalyzer.h:83
double TrackHitMin
Definition: dEdxAnalyzer.h:82
MonitorElement * ME_MipDeDx
Definition: dEdxAnalyzer.h:63
MonitorElement * ME_HipDeDxMass
Definition: dEdxAnalyzer.h:67
std::vector< std::string > AlgoNames
Definition: dEdxAnalyzer.h:92
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::ParameterSet conf_
Definition: dEdxAnalyzer.h:56
#define nullptr
double dEdxK
Definition: dEdxAnalyzer.h:83
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
dEdxAnalyzer(const edm::ParameterSet &)
Definition: dEdxAnalyzer.cc:22
void endJob() override
Definition: dEdxAnalyzer.cc:48
int iEvent
Definition: GenABIO.cc:230
std::vector< std::string > dEdxInputList_
Definition: dEdxAnalyzer.h:88
MonitorElement * ME_MipDeDxNSatHits
Definition: dEdxAnalyzer.h:65
MonitorElement * ME_MipDeDxNHits
Definition: dEdxAnalyzer.h:64
GenericTriggerEventFlag * genTriggerEventFlag_
Definition: dEdxAnalyzer.h:96
edm::ParameterSet fullconf_
Definition: dEdxAnalyzer.h:55
const std::complex< double > I
Definition: I.h:8
bool doAllPlots_
Definition: dEdxAnalyzer.h:58
bool doDeDxPlots_
Definition: dEdxAnalyzer.h:59
edm::InputTag trackInputTag_
Definition: dEdxAnalyzer.h:85
std::vector< dEdxMEs > dEdxMEsVector
Definition: dEdxAnalyzer.h:93
double mass(double P, double I)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: dEdxAnalyzer.cc:70
DQMStore * dqmStore_
Definition: dEdxAnalyzer.h:54
std::pair< OmniClusterRef, TrackingParticleRef > P
MonitorElement * ME_MipHighPtDeDx
Definition: dEdxAnalyzer.h:68
double HIPdEdxMin
Definition: dEdxAnalyzer.h:82
std::string histname
Definition: dEdxAnalyzer.h:94
std::vector< edm::EDGetTokenT< reco::DeDxDataValueMap > > dEdxTokenList_
Definition: dEdxAnalyzer.h:89
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
MonitorElement * ME_MipDeDxMass
Definition: dEdxAnalyzer.h:66
std::string TrackName
Definition: dEdxAnalyzer.h:91
Definition: Run.h:43