CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalHaloData.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_METRECO_HCALHALODATA_H
2 #define DATAFORMATS_METRECO_HCALHALODATA_H
3 /*
4  [class]: HcalHaloData
5  [authors]: R. Remington, The University of Florida
6  [description]: Container class to store beam halo data specific to the Hcal subdetector
7  [date]: October 15, 2009
8 */
9 #include <vector>
13 
15  std::vector<std::pair<uint8_t, CaloTowerDetId> > cellTowerIds;
16  float hadEt;
17  float energyRatio;
18  float emEt;
20  hadEt = 0.0;
21  energyRatio = -1.0;
22  emEt = 0.0;
23  cellTowerIds.clear();
24  }
26  cellTowerIds = strip.cellTowerIds;
27  hadEt = strip.hadEt;
28  energyRatio = strip.energyRatio;
29  emEt = strip.emEt;
30  }
31 };
32 
33 namespace reco {
34 
35  class HcalHaloData {
36 
37  public:
38  //constructor
39  HcalHaloData();
40  //destructor
42 
43 
44 
45  // Return collection of 5-degree Phi Wedges built from Hcal RecHits
46  const std::vector<PhiWedge>& GetPhiWedges() const {return PhiWedgeCollection;}
47  std::vector<PhiWedge>& GetPhiWedges() {return PhiWedgeCollection;}
48 
49  // Return collection of problematic strips (pairs of # of problematic HCAL cells and CaloTowerDetId)
50  const std::vector<HaloTowerStrip>& getProblematicStrips() const {return problematicStripCollection;}
51  std::vector<HaloTowerStrip>& getProblematicStrips() {return problematicStripCollection;}
52 
53  private:
54  std::vector<PhiWedge> PhiWedgeCollection;
55  std::vector<HaloTowerStrip> problematicStripCollection;
56 
57  };
58 }
59 #endif
std::vector< HaloTowerStrip > problematicStripCollection
Definition: HcalHaloData.h:55
std::vector< PhiWedge > PhiWedgeCollection
Definition: HcalHaloData.h:54
std::vector< PhiWedge > & GetPhiWedges()
Definition: HcalHaloData.h:47
const std::vector< HaloTowerStrip > & getProblematicStrips() const
Definition: HcalHaloData.h:50
HaloTowerStrip(const HaloTowerStrip &strip)
Definition: HcalHaloData.h:25
const std::vector< PhiWedge > & GetPhiWedges() const
Definition: HcalHaloData.h:46
std::vector< HaloTowerStrip > & getProblematicStrips()
Definition: HcalHaloData.h:51
std::vector< std::pair< uint8_t, CaloTowerDetId > > cellTowerIds
Definition: HcalHaloData.h:15