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  * $Date: 2010/05/25 09:45:03 $
10  * $Revision: 1.1 $
11  *
12  */
13 
14 #include <iostream>
15 
16 class CaloCellId{
17 
18  public:
19 
20  enum System { Barrel=1,Endcap=2,Forward=3 };
21 
22  CaloCellId( double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys );
23  CaloCellId( const CaloCellId& );
24  virtual ~CaloCellId();
25 
26  double getEtaMin() const { return etaMin; }
27  double getEtaMax() const { return etaMax; }
28  double getPhiMin() const { return phiMin; }
29  double getPhiMax() const { return phiMax; }
30  System getSubSys() const { return subSys; }
31 
32  bool operator==(const CaloCellId&) const;
33 
34  bool isInCell(double thisEta, double thisPhi);
35 
36  double getThetaCell();
37 
38  private:
39 
40  double etaMin;
41  double etaMax;
42  double phiMin;
43  double phiMax;
45 
46 };
47 
48 std::ostream& operator<<(std::ostream&, const CaloCellId&);
49 #endif
50 
double getThetaCell()
Definition: CaloCellId.cc:49
bool operator==(const CaloCellId &) const
Definition: CaloCellId.cc:31
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
double getEtaMin() const
Definition: CaloCellId.h:26
CaloCellId(double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys)
Definition: CaloCellId.cc:21
double getPhiMax() const
Definition: CaloCellId.h:29
double getEtaMax() const
Definition: CaloCellId.h:27
System getSubSys() const
Definition: CaloCellId.h:30
virtual ~CaloCellId()
Definition: CaloCellId.cc:29
double getPhiMin() const
Definition: CaloCellId.h:28
bool isInCell(double thisEta, double thisPhi)
Definition: CaloCellId.cc:37
double phiMin
Definition: CaloCellId.h:42
System subSys
Definition: CaloCellId.h:44
double phiMax
Definition: CaloCellId.h:43
double etaMax
Definition: CaloCellId.h:41
double etaMin
Definition: CaloCellId.h:40