test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloCellId.h
Go to the documentation of this file.
1 #ifndef Validation_EventGenerator_CaloCellId
2 #define Validation_EventGenerator_CaloCellId
3 
4 /* class CaloCellId
5  *
6  * Simple eta-phi cell identifier, mimic calorimetric tower structure
7  * phi is stored in radians
8  *
9  *
10  */
11 
12 #include <iostream>
13 
14 class CaloCellId{
15 
16  public:
17 
18  enum System { Barrel=1,Endcap=2,Forward=3 };
19 
20  CaloCellId( double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys );
21  CaloCellId( const CaloCellId& );
22  virtual ~CaloCellId();
23 
24  double getEtaMin() const { return etaMin; }
25  double getEtaMax() const { return etaMax; }
26  double getPhiMin() const { return phiMin; }
27  double getPhiMax() const { return phiMax; }
28  System getSubSys() const { return subSys; }
29 
30  bool operator==(const CaloCellId&) const;
31 
32  bool isInCell(double thisEta, double thisPhi);
33 
34  double getThetaCell();
35 
36  private:
37 
38  double etaMin;
39  double etaMax;
40  double phiMin;
41  double phiMax;
43 
44 };
45 
46 std::ostream& operator<<(std::ostream&, const CaloCellId&);
47 #endif
48 
double getThetaCell()
Definition: CaloCellId.cc:47
bool operator==(const CaloCellId &) const
Definition: CaloCellId.cc:29
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double getEtaMin() const
Definition: CaloCellId.h:24
CaloCellId(double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys)
Definition: CaloCellId.cc:19
double getPhiMax() const
Definition: CaloCellId.h:27
double getEtaMax() const
Definition: CaloCellId.h:25
System getSubSys() const
Definition: CaloCellId.h:28
virtual ~CaloCellId()
Definition: CaloCellId.cc:27
double getPhiMin() const
Definition: CaloCellId.h:26
bool isInCell(double thisEta, double thisPhi)
Definition: CaloCellId.cc:35
double phiMin
Definition: CaloCellId.h:40
System subSys
Definition: CaloCellId.h:42
double phiMax
Definition: CaloCellId.h:41
double etaMax
Definition: CaloCellId.h:39
double etaMin
Definition: CaloCellId.h:38