CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalPulseShapes.h
Go to the documentation of this file.
1 #ifndef CALIBCALORIMETRY_HCALALGOS_HCALPULSESHAPES_H
2 #define CALIBCALORIMETRY_HCALALGOS_HCALPULSESHAPES_H 1
3 
4 #include <vector>
8 
15 class HcalMCParams;
16 class HcalRecoParams;
17 class HcalTopology;
18 
20 public:
24  // only needed if you'll be geting shapes by DetId
25  void beginRun(edm::EventSetup const & es);
26  void endRun();
27 
28  const Shape& hbShape() const { return hpdShape_; }
29  const Shape& heShape() const { return hpdShape_; }
30  const Shape& hfShape() const { return hfShape_; }
31  const Shape& hoShape(bool sipm=false) const { return sipm ? siPMShape_ : hpdShape_; }
32  // return Shpape for given shapeType.
33  const Shape& getShape(int shapeType) const;
35  const Shape& shape(const HcalDetId & detId) const;
36  const Shape& shapeForReco(const HcalDetId & detId) const;
38  const Shape& defaultShape(const HcalDetId & detId) const;
39 private:
40  void computeHPDShape(float, float, float, float, float ,
41  float, float, float, Shape&);
42  // void computeHPDShape();
43  void computeHFShape();
44  void computeSiPMShape();
52  typedef std::map<int, const Shape *> ShapeMap;
54 
55 };
56 #endif
const Shape & getShape(int shapeType) const
const Shape & heShape() const
const Shape & hoShape(bool sipm=false) const
void beginRun(edm::EventSetup const &es)
const Shape & shapeForReco(const HcalDetId &detId) const
std::map< int, const Shape * > ShapeMap
const Shape & shape(const HcalDetId &detId) const
automatically figures out which shape to return
const Shape & defaultShape(const HcalDetId &detId) const
in case of conditions problems
const Shape & hfShape() const
void computeHPDShape(float, float, float, float, float, float, float, float, Shape &)
const HcalRecoParams * theRecoParams
const HcalTopology * theTopology
const HcalMCParams * theMCParams
const Shape & hbShape() const
HcalPulseShape Shape
Abstract Class of shape.
Definition: Shape.h:16