CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
16  enum System { Barrel = 1, Endcap = 2, Forward = 3 };
17 
18  CaloCellId(double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys);
19  CaloCellId(const CaloCellId&);
20  virtual ~CaloCellId();
21 
22  double getEtaMin() const { return etaMin; }
23  double getEtaMax() const { return etaMax; }
24  double getPhiMin() const { return phiMin; }
25  double getPhiMax() const { return phiMax; }
26  System getSubSys() const { return subSys; }
27 
28  bool operator==(const CaloCellId&) const;
29 
30  bool isInCell(double thisEta, double thisPhi);
31 
32  double getThetaCell();
33 
34 private:
35  double etaMin;
36  double etaMax;
37  double phiMin;
38  double phiMax;
40 };
41 
42 std::ostream& operator<<(std::ostream&, const CaloCellId&);
43 #endif
double getThetaCell()
Definition: CaloCellId.cc:49
bool operator==(const CaloCellId &) const
Definition: CaloCellId.cc:27
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
double getEtaMin() const
Definition: CaloCellId.h:22
CaloCellId(double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys)
Definition: CaloCellId.cc:19
double getPhiMax() const
Definition: CaloCellId.h:25
double getEtaMax() const
Definition: CaloCellId.h:23
System getSubSys() const
Definition: CaloCellId.h:26
virtual ~CaloCellId()
Definition: CaloCellId.cc:25
double getPhiMin() const
Definition: CaloCellId.h:24
bool isInCell(double thisEta, double thisPhi)
Definition: CaloCellId.cc:34
double phiMin
Definition: CaloCellId.h:37
System subSys
Definition: CaloCellId.h:39
double phiMax
Definition: CaloCellId.h:38
double etaMax
Definition: CaloCellId.h:36
double etaMin
Definition: CaloCellId.h:35