CMS 3D CMS Logo

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