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 
14 
18 
20 
23 
24 class DQMStore;
26 
27 class dEdxAnalyzer : public edm::EDAnalyzer {
28  public:
29  explicit dEdxAnalyzer(const edm::ParameterSet&);
30  ~dEdxAnalyzer();
31 
32  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
33 
34  virtual void beginJob();
35  virtual void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup);
36  virtual void endJob() ;
37 
38  double mass(double P, double I);
39 
40  virtual void beginRun(const edm::Run&, const edm::EventSetup&);
41  virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
42  virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
43 
44  private:
45  // ----------member data ---------------------------
49 
52 
53  struct dEdxMEs
54  {
60 
67  {}
68  };
69 
71  double dEdxK, dEdxC;
72 
74  std::vector< std::string > AlgoNames;
75  std::vector< dEdxMEs > dEdxMEsVector;
76  std::string histname; //for naming the histograms according to algorithm used
77 
79 
80 };
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: dEdxAnalyzer.cc:59
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double dEdxC
Definition: dEdxAnalyzer.h:71
double TrackHitMin
Definition: dEdxAnalyzer.h:70
MonitorElement * ME_MipDeDx
Definition: dEdxAnalyzer.h:55
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * ME_HipDeDxMass
Definition: dEdxAnalyzer.h:59
#define P
std::vector< std::string > AlgoNames
Definition: dEdxAnalyzer.h:74
#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:48
virtual void beginJob()
Definition: dEdxAnalyzer.cc:67
double dEdxK
Definition: dEdxAnalyzer.h:71
dEdxAnalyzer(const edm::ParameterSet &)
Definition: dEdxAnalyzer.cc:28
int iEvent
Definition: GenABIO.cc:243
MonitorElement * ME_MipDeDxNSatHits
Definition: dEdxAnalyzer.h:57
MonitorElement * ME_MipDeDxNHits
Definition: dEdxAnalyzer.h:56
GenericTriggerEventFlag * genTriggerEventFlag_
Definition: dEdxAnalyzer.h:78
edm::ParameterSet fullconf_
Definition: dEdxAnalyzer.h:47
const std::complex< double > I
Definition: I.h:8
bool doAllPlots_
Definition: dEdxAnalyzer.h:50
bool doDeDxPlots_
Definition: dEdxAnalyzer.h:51
std::vector< dEdxMEs > dEdxMEsVector
Definition: dEdxAnalyzer.h:75
double mass(double P, double I)
virtual void endJob()
Definition: dEdxAnalyzer.cc:46
DQMStore * dqmStore_
Definition: dEdxAnalyzer.h:46
double HIPdEdxMin
Definition: dEdxAnalyzer.h:70
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
std::string histname
Definition: dEdxAnalyzer.h:76
MonitorElement * ME_MipDeDxMass
Definition: dEdxAnalyzer.h:58
std::string TrackName
Definition: dEdxAnalyzer.h:73
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: Run.h:36