CMS 3D CMS Logo

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