CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTAlCa.h
Go to the documentation of this file.
1 #ifndef HLTALCA_H
2 #define HLTALCA_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
7 #include "TNamed.h"
8 #include <vector>
9 #include <map>
10 #include "TROOT.h"
11 #include "TChain.h"
12 
27 
34 
38 
39 typedef std::vector<std::string> MyStrings;
40 
48 typedef std::map<DetId, EcalRecHit> RecHitsMap;
49 
50 // Less than operator for sorting EcalRecHits according to energy.
51 class eecalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
52 {
53  public:
55  {
56  return (x.energy() > y.energy());
57  }
58 };
59 
60 
61 class HLTAlCa {
62 public:
63  HLTAlCa();
64 
65  void setup(const edm::ParameterSet& pSet, TTree* tree);
66 
68  void analyze(const edm::Handle<EBRecHitCollection> & ebrechits,
69  const edm::Handle<EERecHitCollection> & eerechits,
70  const edm::Handle<HBHERecHitCollection> & hbherechits,
71  const edm::Handle<HORecHitCollection> & horechits,
72  const edm::Handle<HFRecHitCollection> & hfrechits,
73  const edm::Handle<EBRecHitCollection> & pi0ebrechits,
74  const edm::Handle<EERecHitCollection> & pi0eerechits,
80  const edm::ESHandle< EcalElectronicsMapping > & ecalmapping,
81  const edm::ESHandle<CaloGeometry> & geoHandle,
82  const edm::ESHandle<CaloTopology> & pTopology,
83  const edm::ESHandle<L1CaloGeometry> & l1CaloGeom,
84  TTree* tree);
85 
86 private:
87 
88  // Internal variables for AlCa pi0
95  double clusSeedThr_;
101  double selePtPi0_;
115  double selePi0Iso_;
117  double ParameterX0_;
121  double ParameterW0_;
126  std::vector<EBDetId> detIdEBRecHits;
127  std::vector<EcalRecHit> EBRecHits;
128  std::vector<EEDetId> detIdEERecHits;
129  std::vector<EcalRecHit> EERecHits;
134  bool Jets_;
140  bool JETSdoTau_ ;
141  double Ptmin_jets_;
142  double Ptmin_taujets_;
145  int debug_;
146  bool first_;
149  std::map<std::string,double> providedParameters;
150  std::vector<int> FEDListUsed; //by regional objects.
151  std::vector<int> FEDListUsedBarrel;
152  std::vector<int> FEDListUsedEndcap;
154  double ptMinEMObj_ ;
157  double selePtEta_;
162  double seleIsoEta_;
163  double seleEtaBeltDR_;
169 
171 
178  static const int MAXCLUS = 2000;
179  static const int MAXPI0S = 200;
180  long int nEBRHSavedTotal ;
181  long int nEERHSavedTotal ;
182  long int nEvtPassedTotal;
183  long int nEvtPassedEETotal;
184  long int nEvtPassedEBTotal;
186  int nClusAll;
187 
188  // Tree variables
191 
194 
195  // input variables
197 
199 
200  std::vector<int> ListOfFEDS(double etaLow, double etaHigh, double phiLow,
201  double phiHigh, double etamargin, double phimargin);
202 
203  int convertSmToFedNumbBarrel(int ieta, int smId);
204 
205  void convxtalid(Int_t &nphi,Int_t &neta);
206 
207  int diff_neta_s(Int_t neta1, Int_t neta2);
208 
209  int diff_nphi_s(Int_t nphi1,Int_t nphi2);
210 
211 };
212 
213 #endif
double ParameterT0_endc_
Definition: HLTAlCa.h:119
bool ParameterLogWeighted_
Definition: HLTAlCa.h:116
EcalElectronicsMapping * TheMapping
Definition: HLTAlCa.h:170
double seleMinvMinEta_
Definition: HLTAlCa.h:160
float * phiClusAll
Definition: HLTAlCa.h:193
double ptMinForIsolation_
Definition: HLTAlCa.h:130
double ptMinEMObj_
Definition: HLTAlCa.h:154
static const int MAXPI0S
Definition: HLTAlCa.h:179
bool _Debug
Definition: HLTAlCa.h:196
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTAlCa.cc:26
double ParameterW0_
Definition: HLTAlCa.h:121
long int nEERHSavedTotal
Definition: HLTAlCa.h:181
double JETSregionPhiMargin_
Definition: HLTAlCa.h:144
double selePi0Iso_
Definition: HLTAlCa.h:115
bool storeIsoClusRecHitEta_
Definition: HLTAlCa.h:165
double seleMinvMinPi0EndCap_
Definition: HLTAlCa.h:108
const CaloSubdetectorGeometry * geometry_es
Definition: HLTAlCa.h:174
bool removePi0CandidatesForEta_
Definition: HLTAlCa.h:166
std::vector< EEDetId > detIdEERecHits
Definition: HLTAlCa.h:128
int debug_
Definition: HLTAlCa.h:145
int gammaCandEtaSize_
Definition: HLTAlCa.h:93
double selePtGammaTwo_
Definition: HLTAlCa.h:100
double ParameterT0_barl_
Definition: HLTAlCa.h:118
bool _Monte
Definition: HLTAlCa.h:196
edm::InputTag endcapHits_
Definition: HLTAlCa.h:90
double seleMinvMaxPi0_
Definition: HLTAlCa.h:102
double seleS4S9GammaEta_
Definition: HLTAlCa.h:158
float ohHighestEnergyHFRecHit
Definition: HLTAlCa.h:190
bool JETSdoTau_
Definition: HLTAlCa.h:140
edm::InputTag CentralSource_
Definition: HLTAlCa.h:135
double seleEtaBeltDR_
Definition: HLTAlCa.h:163
double JETSregionEtaMargin_
Definition: HLTAlCa.h:143
double selePi0IsoEndCap_
Definition: HLTAlCa.h:122
edm::InputTag ForwardSource_
Definition: HLTAlCa.h:136
double Ptmin_taujets_
Definition: HLTAlCa.h:142
double ParameterX0_
Definition: HLTAlCa.h:117
long int nEvtPassedEBTotal
Definition: HLTAlCa.h:184
static const int MAXCLUS
Definition: HLTAlCa.h:178
int Nalcapi0clusters
Definition: HLTAlCa.h:192
float * ptClusAll
Definition: HLTAlCa.h:193
int convertSmToFedNumbBarrel(int ieta, int smId)
Definition: HLTAlCa.cc:727
edm::InputTag barrelHits_
Definition: HLTAlCa.h:89
std::vector< EBDetId > detIdEBRecHits
Definition: HLTAlCa.h:126
std::vector< EcalRecHit > EBRecHits
Definition: HLTAlCa.h:127
double selePi0BeltDeta_
Definition: HLTAlCa.h:114
double selePtPi0_
Definition: HLTAlCa.h:101
int diff_nphi_s(Int_t nphi1, Int_t nphi2)
Definition: HLTAlCa.cc:764
long int nEvtPassedTotal
Definition: HLTAlCa.h:182
int diff_neta_s(Int_t neta1, Int_t neta2)
Definition: HLTAlCa.cc:756
double EMregionPhiMargin_
Definition: HLTAlCa.h:148
double massHighPi0Cand_
Definition: HLTAlCa.h:168
std::string pi0EndcapHits_
Definition: HLTAlCa.h:92
int clusPhiSize_
Definition: HLTAlCa.h:97
double ptMinForIsolationEndCap_
Definition: HLTAlCa.h:132
float * etaClusAll
Definition: HLTAlCa.h:193
double seleXtalMinEnergy_
Definition: HLTAlCa.h:104
double clusSeedThr_
Definition: HLTAlCa.h:95
float ohHighestEnergyHORecHit
Definition: HLTAlCa.h:190
edm::InputTag l1NonIsolatedTag_
Definition: HLTAlCa.h:124
double seleS4S9GammaEndCap_
Definition: HLTAlCa.h:112
const CaloSubdetectorTopology * topology_ee
Definition: HLTAlCa.h:176
edm::InputTag TauSource_
Definition: HLTAlCa.h:137
const CaloSubdetectorGeometry * geometry_ee
Definition: HLTAlCa.h:173
double massLowPi0Cand_
Definition: HLTAlCa.h:167
std::vector< int > FEDListUsed
Definition: HLTAlCa.h:150
double seleMinvMaxPi0EndCap_
Definition: HLTAlCa.h:107
HLTAlCa()
Definition: HLTAlCa.cc:14
float energy() const
Definition: EcalRecHit.h:68
int gammaCandPhiSize_
Definition: HLTAlCa.h:94
double selePtGammaEta_
Definition: HLTAlCa.h:156
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
double seleMinvMaxEta_
Definition: HLTAlCa.h:159
int evtCounter
Definition: HLTAlCa.h:198
bool JETSdoForward_
Definition: HLTAlCa.h:139
void convxtalid(Int_t &nphi, Int_t &neta)
Definition: HLTAlCa.cc:736
int seleNRHMax_
Definition: HLTAlCa.h:109
long int nEvtPassedEETotal
Definition: HLTAlCa.h:183
bool JETSdoCentral_
Definition: HLTAlCa.h:138
int clusEtaSize_
Definition: HLTAlCa.h:96
float ohHighestEnergyEERecHit
Definition: HLTAlCa.h:189
bool storeIsoClusRecHit_
Definition: HLTAlCa.h:131
std::vector< EcalRecHit > EERecHits
Definition: HLTAlCa.h:129
float ohHighestEnergyEBRecHit
Definition: HLTAlCa.h:189
bool doSelForEtaBarrel_
Definition: HLTAlCa.h:155
double EMregionEtaMargin_
Definition: HLTAlCa.h:147
PositionCalc posCalculator_
Definition: HLTAlCa.h:177
bool first_
Definition: HLTAlCa.h:146
double Ptmin_jets_
Definition: HLTAlCa.h:141
bool operator()(EcalRecHit x, EcalRecHit y)
Definition: HLTAlCa.h:54
double ParameterT0_endcPresh_
Definition: HLTAlCa.h:120
std::vector< int > ListOfFEDS(double etaLow, double etaHigh, double phiLow, double phiHigh, double etamargin, double phimargin)
Definition: HLTAlCa.cc:675
double clusSeedThrEndCap_
Definition: HLTAlCa.h:98
edm::InputTag l1SeedFilterTag_
Definition: HLTAlCa.h:125
std::string pi0BarrelHits_
Definition: HLTAlCa.h:91
const CaloSubdetectorTopology * topology_eb
Definition: HLTAlCa.h:175
bool Jets_
Definition: HLTAlCa.h:134
float * s4s9ClusAll
Definition: HLTAlCa.h:193
double selePtGammaOne_
Definition: HLTAlCa.h:99
double ptMinForIsolationEta_
Definition: HLTAlCa.h:161
double seleMinvMinPi0_
Definition: HLTAlCa.h:103
edm::InputTag l1IsolatedTag_
Definition: HLTAlCa.h:123
double seleEtaBeltDeta_
Definition: HLTAlCa.h:164
float ohHighestEnergyHBHERecHit
Definition: HLTAlCa.h:190
double seleIsoEta_
Definition: HLTAlCa.h:162
long int nEBRHSavedTotal
Definition: HLTAlCa.h:180
double selePtPi0EndCap_
Definition: HLTAlCa.h:106
int nClusAll
Definition: HLTAlCa.h:186
void analyze(const edm::Handle< EBRecHitCollection > &ebrechits, const edm::Handle< EERecHitCollection > &eerechits, const edm::Handle< HBHERecHitCollection > &hbherechits, const edm::Handle< HORecHitCollection > &horechits, const edm::Handle< HFRecHitCollection > &hfrechits, const edm::Handle< EBRecHitCollection > &pi0ebrechits, const edm::Handle< EERecHitCollection > &pi0eerechits, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemi, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemn, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetc, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetf, const edm::Handle< l1extra::L1JetParticleCollection > &l1exttaujet, const edm::ESHandle< EcalElectronicsMapping > &ecalmapping, const edm::ESHandle< CaloGeometry > &geoHandle, const edm::ESHandle< CaloTopology > &pTopology, const edm::ESHandle< L1CaloGeometry > &l1CaloGeom, TTree *tree)
Definition: HLTAlCa.cc:82
long int nEvtProcessedTotal
Definition: HLTAlCa.h:185
bool useEndCapEG_
Definition: HLTAlCa.h:133
bool RegionalMatch_
Definition: HLTAlCa.h:153
std::vector< int > FEDListUsedBarrel
Definition: HLTAlCa.h:151
std::map< std::string, double > providedParameters
Definition: HLTAlCa.h:149
double selePi0BeltDR_
Definition: HLTAlCa.h:113
std::map< DetId, EcalRecHit > RecHitsMap
Definition: DQMSourcePi0.h:27
double seleS4S9GammaTwo_
Definition: HLTAlCa.h:111
double selePtEta_
Definition: HLTAlCa.h:157
std::vector< int > FEDListUsedEndcap
Definition: HLTAlCa.h:152
double seleS4S9GammaOne_
Definition: HLTAlCa.h:110
const CaloSubdetectorGeometry * geometry_eb
Definition: HLTAlCa.h:172
double selePtGammaEndCap_
Definition: HLTAlCa.h:105