CMS 3D CMS Logo

PiZeroAnalyzer.h
Go to the documentation of this file.
1 #ifndef PiZeroAnalyzer_H
2 #define PiZeroAnalyzer_H
3 
6 
11 
12 // DataFormats
22 // Geometry
32 
33 #include "TFile.h"
34 #include "TH1.h"
35 #include "TH2.h"
36 #include "TTree.h"
37 #include "TVector3.h"
38 #include "TProfile.h"
39 
48 
49 //DQM services
53 
54 #include <map>
55 #include <vector>
56 
67 // forward declarations
68 class TFile;
69 class TH1F;
70 class TH2F;
71 class TProfile;
72 class TTree;
73 class SimVertex;
74 class SimTrack;
75 
77 {
78 
79  public:
80  explicit PiZeroAnalyzer( const edm::ParameterSet& ) ;
81  ~PiZeroAnalyzer() override;
82  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
83  void analyze( const edm::Event&, const edm::EventSetup& ) override ;
84 
85  private:
87 
89  unsigned int prescaleFactor_;
90 
91  int nEvt_;
92 
94 
97  double minPhoEtCut_;
98 
99  double cutStep_;
101 
103  double clusSeedThr_;
106 
108 
110  double ParameterX0_;
112  double ParameterW0_;
113 
116  double selePtPi0_;
121  double selePi0Iso_;
124 
125  std::stringstream currentFolder_;
126 
132 };
133 
134 
135 class ecalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
136 {
137 public:
139  {
140  return (x.energy() > y.energy());
141  }
142 };
143 
144 #endif
double clusSeedThr_
parameters needed for pizero finding
double selePi0BeltDeta_
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > barrelEcalHits_token_
bool ParameterLogWeighted_
MonitorElement * hIsoPi0EB_
PiZeroAnalyzer(const edm::ParameterSet &)
void makePizero(const edm::EventSetup &es, const edm::Handle< EcalRecHitCollection > eb, const edm::Handle< EcalRecHitCollection > ee)
edm::EDGetTokenT< edm::SortedCollection< EcalRecHit, edm::StrictWeakOrdering< EcalRecHit > > > endcapEcalHits_token_
MonitorElement * hPtPi0EB_
MonitorElement * hMinvPi0EB_
double seleS4S9GammaOne_
double seleS4S9GammaTwo_
edm::ParameterSet posCalcParameters_
double ParameterT0_barl_
std::stringstream currentFolder_
double seleMinvMaxPi0_
float energy() const
Definition: EcalRecHit.h:68
double selePtGammaOne_
double selePtGammaTwo_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
EgammaCoreTools.
void analyze(const edm::Event &, const edm::EventSetup &) override
unsigned int prescaleFactor_
std::string fName_
~PiZeroAnalyzer() override
MonitorElement * hPt2Pi0EB_
MonitorElement * hPt1Pi0EB_
double seleXtalMinEnergy_
bool operator()(EcalRecHit x, EcalRecHit y)
double seleMinvMinPi0_
Definition: Run.h:44