CMS 3D CMS Logo

GlobalHaloAlgo.h
Go to the documentation of this file.
1 #ifndef RECOMET_METALGORITHMS_GLOBALHALOALGO_H
2 #define RECOMET_METALGORITHMS_GLOBALHALOALGO_H
3 
4 /*
5  [class]: GlobalHaloAlgo
6  [authors]: R. Remington, The University of Florida
7  [description]: Algorithm to calculate quantities relevant to GlobalHaloData object
8  [date]: October 15, 2009
9 */
10 
51 
56 
59 
61 public:
62  // Constructor
64  // Destructor
66 
67  // run algorithm
68  reco::GlobalHaloData Calculate(const CaloGeometry& TheCaloGeometry,
69  const CSCGeometry& TheCSCGeometry,
70  const reco::CaloMET& TheCaloMET,
71  edm::Handle<edm::View<reco::Candidate> >& TheCaloTowers,
72  edm::Handle<CSCSegmentCollection>& TheCSCSegments,
75  const reco::CSCHaloData& TheCSCHaloData,
76  const reco::EcalHaloData& TheEcalHaloData,
77  const reco::HcalHaloData& TheHcalHaloData,
78  bool ishlt = false);
79 
80  // Set min & max radius to associate CSC Rechits with Ecal Phi Wedges
81  void SetEcalMatchingRadius(float min, float max) {
82  Ecal_R_Min = min;
83  Ecal_R_Max = max;
84  }
85  // Set min & max radius to associate CSC Rechits with Hcal Phi Wedges
86  void SetHcalMatchingRadius(float min, float max) {
87  Hcal_R_Min = min;
88  Hcal_R_Max = max;
89  }
90  // Set CaloTowerEtTheshold
92  // run algorithm
93 
94  //CSC-Calo matching parameters:
96  //EB
102  //EE
108  //HB
114  //HE
120 
121 private:
122  float Ecal_R_Min;
123  float Ecal_R_Max;
124  float Hcal_R_Min;
125  float Hcal_R_Max;
127 
128  //Parameters for CSC-calo matching
130 
136 
142 
148 
154 
156  reco::GlobalHaloData& thehalodata,
157  bool isbarrel);
159  reco::GlobalHaloData& thehalodata);
160  bool SegmentMatchingEB(reco::GlobalHaloData& thehalodata,
161  const std::vector<reco::HaloClusterCandidateECAL>& haloclustercands,
162  float iZ,
163  float iR,
164  float iT,
165  float iPhi,
166  bool ishlt);
167  bool SegmentMatchingEE(reco::GlobalHaloData& thehalodata,
168  const std::vector<reco::HaloClusterCandidateECAL>& haloclustercands,
169  float iZ,
170  float iR,
171  float iT,
172  float iPhi,
173  bool ishlt);
174  bool SegmentMatchingHB(reco::GlobalHaloData& thehalodata,
175  const std::vector<reco::HaloClusterCandidateHCAL>& haloclustercands,
176  float iZ,
177  float iR,
178  float iT,
179  float iPhi,
180  bool ishlt);
181  bool SegmentMatchingHE(reco::GlobalHaloData& thehalodata,
182  const std::vector<reco::HaloClusterCandidateHCAL>& haloclustercands,
183  float iZ,
184  float iR,
185  float iT,
186  float iPhi,
187  bool ishlt);
188  bool ApplyMatchingCuts(int subdet,
189  bool ishlt,
190  double rhet,
191  double segZ,
192  double rhZ,
193  double segR,
194  double rhR,
195  double segT,
196  double rhT,
197  double segPhi,
198  double rhPhi);
199 };
200 
201 #endif
GlobalHaloAlgo::setRcaloMinRsegmHighThresholdforCSCCaloMatchingEB
void setRcaloMinRsegmHighThresholdforCSCCaloMatchingEB(float x)
Definition: GlobalHaloAlgo.h:99
CSCRecHit2DCollection.h
GlobalHaloAlgo::SegmentMatchingEE
bool SegmentMatchingEE(reco::GlobalHaloData &thehalodata, const std::vector< reco::HaloClusterCandidateECAL > &haloclustercands, float iZ, float iR, float iT, float iPhi, bool ishlt)
Definition: GlobalHaloAlgo.cc:397
GlobalHaloAlgo::dt_segvsrh_ee
float dt_segvsrh_ee
Definition: GlobalHaloAlgo.h:141
HLT_FULL_cff.EtMin
EtMin
Definition: HLT_FULL_cff.py:33073
GlobalHaloAlgo::SegmentMatchingHB
bool SegmentMatchingHB(reco::GlobalHaloData &thehalodata, const std::vector< reco::HaloClusterCandidateHCAL > &haloclustercands, float iZ, float iR, float iT, float iPhi, bool ishlt)
Definition: GlobalHaloAlgo.cc:430
GlobalHaloAlgo::dr_lowthresh_segvsrh_ee
float dr_lowthresh_segvsrh_ee
Definition: GlobalHaloAlgo.h:139
Muon.h
CaloTower.h
GlobalHaloAlgo::setRcaloMinRsegmLowThresholdforCSCCaloMatchingHE
void setRcaloMinRsegmLowThresholdforCSCCaloMatchingHE(float x)
Definition: GlobalHaloAlgo.h:116
GlobalHaloAlgo::et_thresh_rh_he
float et_thresh_rh_he
Definition: GlobalHaloAlgo.h:149
min
T min(T a, T b)
Definition: MathUtil.h:58
GlobalHaloAlgo::setDPhicalosegmThresholdforCSCCaloMatchingEB
void setDPhicalosegmThresholdforCSCCaloMatchingEB(float x)
Definition: GlobalHaloAlgo.h:101
GlobalHaloAlgo::setRcaloMinRsegmHighThresholdforCSCCaloMatchingEE
void setRcaloMinRsegmHighThresholdforCSCCaloMatchingEE(float x)
Definition: GlobalHaloAlgo.h:105
EBDetId.h
EEDetId.h
reco::HcalHaloData
Definition: HcalHaloData.h:37
GlobalHaloAlgo::dphi_thresh_segvsrh_hb
float dphi_thresh_segvsrh_hb
Definition: GlobalHaloAlgo.h:144
GlobalHaloAlgo::dr_highthresh_segvsrh_he
float dr_highthresh_segvsrh_he
Definition: GlobalHaloAlgo.h:152
GlobalHaloAlgo::setDPhicalosegmThresholdforCSCCaloMatchingHE
void setDPhicalosegmThresholdforCSCCaloMatchingHE(float x)
Definition: GlobalHaloAlgo.h:119
PhotonFwd.h
GlobalHaloAlgo::setDtcalosegmThresholdforCSCCaloMatchingHB
void setDtcalosegmThresholdforCSCCaloMatchingHB(float x)
Definition: GlobalHaloAlgo.h:112
DDAxes::x
edm::RefVector
Definition: EDProductfwd.h:27
ESDetId.h
GlobalHaloAlgo::setRcaloMinRsegmLowThresholdforCSCCaloMatchingEE
void setRcaloMinRsegmLowThresholdforCSCCaloMatchingEE(float x)
Definition: GlobalHaloAlgo.h:104
GlobalHaloAlgo::SetCaloTowerEtThreshold
void SetCaloTowerEtThreshold(float EtMin)
Definition: GlobalHaloAlgo.h:91
edm::Handle
Definition: AssociativeIterator.h:50
GlobalHaloAlgo::dr_highthresh_segvsrh_hb
float dr_highthresh_segvsrh_hb
Definition: GlobalHaloAlgo.h:146
GlobalHaloAlgo::max_segment_theta
float max_segment_theta
Definition: GlobalHaloAlgo.h:129
GlobalHaloData.h
EcalRecHitCollections.h
GlobalHaloAlgo::setEtThresholdforCSCCaloMatchingHB
void setEtThresholdforCSCCaloMatchingHB(float x)
Definition: GlobalHaloAlgo.h:109
CaloMETFwd.h
GlobalHaloAlgo::Calculate
reco::GlobalHaloData Calculate(const CaloGeometry &TheCaloGeometry, const CSCGeometry &TheCSCGeometry, const reco::CaloMET &TheCaloMET, edm::Handle< edm::View< reco::Candidate > > &TheCaloTowers, edm::Handle< CSCSegmentCollection > &TheCSCSegments, edm::Handle< CSCRecHit2DCollection > &TheCSCRecHits, edm::Handle< reco::MuonCollection > &TheMuons, const reco::CSCHaloData &TheCSCHaloData, const reco::EcalHaloData &TheEcalHaloData, const reco::HcalHaloData &TheHcalHaloData, bool ishlt=false)
Definition: GlobalHaloAlgo.cc:40
GlobalHaloAlgo::setEtThresholdforCSCCaloMatchingEB
void setEtThresholdforCSCCaloMatchingEB(float x)
Definition: GlobalHaloAlgo.h:97
reco::CaloMET
Definition: CaloMET.h:21
ESDataFrame.h
CSCGeometry
Definition: CSCGeometry.h:24
Photon.h
CaloGeometry
Definition: CaloGeometry.h:21
GlobalHaloAlgo::AddtoBeamHaloEBEERechits
void AddtoBeamHaloEBEERechits(edm::RefVector< EcalRecHitCollection > &bhtaggedrechits, reco::GlobalHaloData &thehalodata, bool isbarrel)
Definition: GlobalHaloAlgo.cc:600
GlobalHaloAlgo::SegmentMatchingEB
bool SegmentMatchingEB(reco::GlobalHaloData &thehalodata, const std::vector< reco::HaloClusterCandidateECAL > &haloclustercands, float iZ, float iR, float iT, float iPhi, bool ishlt)
Definition: GlobalHaloAlgo.cc:364
HFRecHit.h
GlobalHaloAlgo::setDPhicalosegmThresholdforCSCCaloMatchingEE
void setDPhicalosegmThresholdforCSCCaloMatchingEE(float x)
Definition: GlobalHaloAlgo.h:107
GlobalHaloAlgo::setRcaloMinRsegmLowThresholdforCSCCaloMatchingEB
void setRcaloMinRsegmLowThresholdforCSCCaloMatchingEB(float x)
Definition: GlobalHaloAlgo.h:98
CaloMET.h
MuonFwd.h
GlobalHaloAlgo::GlobalHaloAlgo
GlobalHaloAlgo()
Definition: GlobalHaloAlgo.cc:32
GlobalHaloAlgo::dr_highthresh_segvsrh_ee
float dr_highthresh_segvsrh_ee
Definition: GlobalHaloAlgo.h:140
CaloTowerDefs.h
CSCLayerGeometry.h
GlobalHaloAlgo::dphi_thresh_segvsrh_he
float dphi_thresh_segvsrh_he
Definition: GlobalHaloAlgo.h:150
EcalRecHit.h
GlobalHaloAlgo::Ecal_R_Max
float Ecal_R_Max
Definition: GlobalHaloAlgo.h:123
GlobalHaloAlgo::dr_lowthresh_segvsrh_he
float dr_lowthresh_segvsrh_he
Definition: GlobalHaloAlgo.h:151
GlobalHaloAlgo::et_thresh_rh_hb
float et_thresh_rh_hb
Definition: GlobalHaloAlgo.h:143
CaloGeometryRecord.h
GlobalHaloAlgo::setDPhicalosegmThresholdforCSCCaloMatchingHB
void setDPhicalosegmThresholdforCSCCaloMatchingHB(float x)
Definition: GlobalHaloAlgo.h:113
EcalSubdetector.h
GlobalHaloAlgo::dr_lowthresh_segvsrh_eb
float dr_lowthresh_segvsrh_eb
Definition: GlobalHaloAlgo.h:133
GlobalHaloAlgo::TowerEtThreshold
float TowerEtThreshold
Definition: GlobalHaloAlgo.h:126
edm::View
Definition: CaloClusterFwd.h:14
CaloSubdetectorGeometry.h
EcalHaloData.h
HcalHaloData.h
GlobalHaloAlgo::et_thresh_rh_eb
float et_thresh_rh_eb
Definition: GlobalHaloAlgo.h:131
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
HcalDetId.h
reco::GlobalHaloData
Definition: GlobalHaloData.h:17
LorentzVector.h
reco::EcalHaloData
Definition: EcalHaloData.h:21
GlobalHaloAlgo::setRcaloMinRsegmLowThresholdforCSCCaloMatchingHB
void setRcaloMinRsegmLowThresholdforCSCCaloMatchingHB(float x)
Definition: GlobalHaloAlgo.h:110
GlobalHaloAlgo::setEtThresholdforCSCCaloMatchingEE
void setEtThresholdforCSCCaloMatchingEE(float x)
Definition: GlobalHaloAlgo.h:103
CaloTowerDetId.h
HcalSubdetector.h
GlobalHaloAlgo::ApplyMatchingCuts
bool ApplyMatchingCuts(int subdet, bool ishlt, double rhet, double segZ, double rhZ, double segR, double rhR, double segT, double rhT, double segPhi, double rhPhi)
Definition: GlobalHaloAlgo.cc:496
GlobalHaloAlgo::~GlobalHaloAlgo
~GlobalHaloAlgo()
Definition: GlobalHaloAlgo.h:65
GlobalHaloAlgo::setDtcalosegmThresholdforCSCCaloMatchingEB
void setDtcalosegmThresholdforCSCCaloMatchingEB(float x)
Definition: GlobalHaloAlgo.h:100
EEDataFrame.h
HBHERecHit.h
GlobalHaloAlgo::SegmentMatchingHE
bool SegmentMatchingHE(reco::GlobalHaloData &thehalodata, const std::vector< reco::HaloClusterCandidateHCAL > &haloclustercands, float iZ, float iR, float iT, float iPhi, bool ishlt)
Definition: GlobalHaloAlgo.cc:463
MET.h
GlobalHaloAlgo::Ecal_R_Min
float Ecal_R_Min
Definition: GlobalHaloAlgo.h:122
CaloCellGeometry.h
GlobalHaloAlgo::setDtcalosegmThresholdforCSCCaloMatchingEE
void setDtcalosegmThresholdforCSCCaloMatchingEE(float x)
Definition: GlobalHaloAlgo.h:106
GlobalHaloAlgo::dt_segvsrh_eb
float dt_segvsrh_eb
Definition: GlobalHaloAlgo.h:135
GlobalHaloAlgo::SetHcalMatchingRadius
void SetHcalMatchingRadius(float min, float max)
Definition: GlobalHaloAlgo.h:86
GlobalHaloAlgo::Hcal_R_Max
float Hcal_R_Max
Definition: GlobalHaloAlgo.h:125
CSCLayer.h
LocalPoint.h
METFwd.h
CaloGeometry.h
GlobalHaloAlgo::dt_segvsrh_hb
float dt_segvsrh_hb
Definition: GlobalHaloAlgo.h:147
GlobalHaloAlgo::Hcal_R_Min
float Hcal_R_Min
Definition: GlobalHaloAlgo.h:124
GlobalHaloAlgo::SetMaxSegmentTheta
void SetMaxSegmentTheta(float x)
Definition: GlobalHaloAlgo.h:95
GlobalHaloAlgo::setDtcalosegmThresholdforCSCCaloMatchingHE
void setDtcalosegmThresholdforCSCCaloMatchingHE(float x)
Definition: GlobalHaloAlgo.h:118
GlobalHaloAlgo::dr_highthresh_segvsrh_eb
float dr_highthresh_segvsrh_eb
Definition: GlobalHaloAlgo.h:134
GlobalHaloAlgo::dr_lowthresh_segvsrh_hb
float dr_lowthresh_segvsrh_hb
Definition: GlobalHaloAlgo.h:145
GlobalVector.h
GlobalHaloAlgo::SetEcalMatchingRadius
void SetEcalMatchingRadius(float min, float max)
Definition: GlobalHaloAlgo.h:81
GlobalHaloAlgo::setRcaloMinRsegmHighThresholdforCSCCaloMatchingHB
void setRcaloMinRsegmHighThresholdforCSCCaloMatchingHB(float x)
Definition: GlobalHaloAlgo.h:111
HcalRecHitCollections.h
HORecHit.h
GlobalHaloAlgo::setRcaloMinRsegmHighThresholdforCSCCaloMatchingHE
void setRcaloMinRsegmHighThresholdforCSCCaloMatchingHE(float x)
Definition: GlobalHaloAlgo.h:117
GlobalHaloAlgo::setEtThresholdforCSCCaloMatchingHE
void setEtThresholdforCSCCaloMatchingHE(float x)
Definition: GlobalHaloAlgo.h:115
reco::CSCHaloData
Definition: CSCHaloData.h:24
CSCSegment.h
CSCRecHit2D.h
GlobalHaloAlgo::dphi_thresh_segvsrh_ee
float dphi_thresh_segvsrh_ee
Definition: GlobalHaloAlgo.h:138
GlobalHaloAlgo::et_thresh_rh_ee
float et_thresh_rh_ee
Definition: GlobalHaloAlgo.h:137
CSCChamber.h
GlobalHaloAlgo::AddtoBeamHaloHBHERechits
void AddtoBeamHaloHBHERechits(edm::RefVector< HBHERecHitCollection > &bhtaggedrechits, reco::GlobalHaloData &thehalodata)
Definition: GlobalHaloAlgo.cc:625
LocalVector.h
GlobalHaloAlgo
Definition: GlobalHaloAlgo.h:60
GlobalHaloAlgo::dt_segvsrh_he
float dt_segvsrh_he
Definition: GlobalHaloAlgo.h:153
GlobalPoint.h
CSCHaloData.h
GlobalHaloAlgo::dphi_thresh_segvsrh_eb
float dphi_thresh_segvsrh_eb
Definition: GlobalHaloAlgo.h:132
CSCGeometry.h
CSCSegmentCollection.h