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