test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PiZeroAnalyzer.h
Go to the documentation of this file.
1 #ifndef PiZeroAnalyzer_H
2 #define PiZeroAnalyzer_H
3 
6 
11 
12 // DataFormats
23 // Geometry
33 
34 #include "TFile.h"
35 #include "TH1.h"
36 #include "TH2.h"
37 #include "TTree.h"
38 #include "TVector3.h"
39 #include "TProfile.h"
40 
49 
50 //DQM services
54 
55 #include <map>
56 #include <vector>
57 
68 // forward declarations
69 class TFile;
70 class TH1F;
71 class TH2F;
72 class TProfile;
73 class TTree;
74 class SimVertex;
75 class SimTrack;
76 
78 {
79 
80  public:
81  explicit PiZeroAnalyzer( const edm::ParameterSet& ) ;
82  virtual ~PiZeroAnalyzer();
83  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
84  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
85 
86  private:
88 
90  unsigned int prescaleFactor_;
91 
92  int nEvt_;
93 
95 
98  double minPhoEtCut_;
99 
100  double cutStep_;
102 
104  double clusSeedThr_;
107 
109 
111  double ParameterX0_;
113  double ParameterW0_;
114 
117  double selePtPi0_;
122  double selePi0Iso_;
125 
126  std::stringstream currentFolder_;
127 
133 };
134 
135 
136 class ecalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
137 {
138 public:
140  {
141  return (x.energy() > y.energy());
142  }
143 };
144 
145 #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.
unsigned int prescaleFactor_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::string fName_
MonitorElement * hPt2Pi0EB_
virtual ~PiZeroAnalyzer()
MonitorElement * hPt1Pi0EB_
double seleXtalMinEnergy_
bool operator()(EcalRecHit x, EcalRecHit y)
double seleMinvMinPi0_
Definition: Run.h:43