Main Page
Namespaces
Classes
Package Documentation
Validation
EventGenerator
interface
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
;
39
System
subSys
;
40
};
41
42
std::ostream&
operator<<
(std::ostream&,
const
CaloCellId
&);
43
#endif
operator<<
std::ostream & operator<<(std::ostream &, const CaloCellId &)
Definition:
CaloCellId.cc:55
CaloCellId::getThetaCell
double getThetaCell()
Definition:
CaloCellId.cc:49
CaloCellId::operator==
bool operator==(const CaloCellId &) const
Definition:
CaloCellId.cc:27
CaloCellId::System
System
Definition:
CaloCellId.h:16
CaloCellId
Definition:
CaloCellId.h:14
CaloCellId::getEtaMin
double getEtaMin() const
Definition:
CaloCellId.h:22
CaloCellId::CaloCellId
CaloCellId(double theEtaMin, double theEtaMax, double thePhiMin, double thePhiMax, System theSubSys)
Definition:
CaloCellId.cc:19
CaloCellId::getPhiMax
double getPhiMax() const
Definition:
CaloCellId.h:25
CaloCellId::getEtaMax
double getEtaMax() const
Definition:
CaloCellId.h:23
CaloCellId::Barrel
Definition:
CaloCellId.h:16
CaloCellId::getSubSys
System getSubSys() const
Definition:
CaloCellId.h:26
CaloCellId::~CaloCellId
virtual ~CaloCellId()
Definition:
CaloCellId.cc:25
CaloCellId::getPhiMin
double getPhiMin() const
Definition:
CaloCellId.h:24
CaloCellId::Endcap
Definition:
CaloCellId.h:16
CaloCellId::isInCell
bool isInCell(double thisEta, double thisPhi)
Definition:
CaloCellId.cc:34
CaloCellId::phiMin
double phiMin
Definition:
CaloCellId.h:37
CaloCellId::Forward
Definition:
CaloCellId.h:16
CaloCellId::subSys
System subSys
Definition:
CaloCellId.h:39
CaloCellId::phiMax
double phiMax
Definition:
CaloCellId.h:38
CaloCellId::etaMax
double etaMax
Definition:
CaloCellId.h:36
CaloCellId::etaMin
double etaMin
Definition:
CaloCellId.h:35
Generated for CMSSW Reference Manual by
1.8.11