test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Attributes
CaloPoint Class Reference

#include <CaloPoint.h>

Inheritance diagram for CaloPoint:

Classes

class  DistanceToVertex
 

Public Types

typedef math::XYZVector XYZPoint
 
typedef math::XYZVector XYZVector
 

Public Member Functions

 CaloPoint ()
 Empty constructor. More...
 
 CaloPoint (const DetId &cell, CaloDirection side, const XYZPoint &position)
 constructor for ECAL More...
 
 CaloPoint (DetId::Detector detector, const XYZPoint &position)
 constructor for HCAL More...
 
 CaloPoint (DetId::Detector detector, int subdetn, int layer, const XYZPoint &position)
 constructor for preshower More...
 
DetId getDetId () const
 returns the cellID More...
 
CaloDirection getSide () const
 returns the Side (see numbering) More...
 
bool operator< (const CaloPoint &p) const
 
void setDetId (DetId::Detector det)
 
void setLayer (int i)
 
void setSubDetector (int i)
 
DetId::Detector whichDetector () const
 
int whichLayer () const
 
int whichSubDetector () const
 watch out, only valid in ECAL and preshower More...
 
 ~CaloPoint ()
 

Private Attributes

DetId cellid_
 
DetId::Detector detector_
 
int layer_
 
CaloDirection side_
 
int subdetector_
 

Detailed Description

Definition at line 18 of file CaloPoint.h.

Member Typedef Documentation

Definition at line 24 of file CaloPoint.h.

Definition at line 23 of file CaloPoint.h.

Constructor & Destructor Documentation

CaloPoint::CaloPoint ( )
inline

Empty constructor.

Definition at line 27 of file CaloPoint.h.

Referenced by CaloPoint().

27 :XYZPoint(){;};
math::XYZVector XYZPoint
CaloPoint::CaloPoint ( const DetId cell,
CaloDirection  side,
const XYZPoint position 
)

constructor for ECAL

Definition at line 17 of file CaloPoint.cc.

References CaloPoint(), DetId::det(), detector_, sistrip::layer_, subdetector_, and DetId::subdetId().

17  :
18  XYZPoint(position),cellid_(cell),side_(side)
19 {
20  detector_=cell.det();
21  subdetector_=cell.subdetId();
22  layer_=0;
23 }
static const char layer_[]
DetId::Detector detector_
Definition: CaloPoint.h:70
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
math::XYZVector XYZPoint
static int position[264][3]
Definition: ReadPGInfo.cc:509
DetId cellid_
Definition: CaloPoint.h:68
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
int subdetector_
Definition: CaloPoint.h:71
CaloDirection side_
Definition: CaloPoint.h:69
CaloPoint::CaloPoint ( DetId::Detector  detector,
const XYZPoint position 
)

constructor for HCAL

CaloPoint::CaloPoint ( DetId::Detector  detector,
int  subdetn,
int  layer,
const XYZPoint position 
)

constructor for preshower

Definition at line 34 of file CaloPoint.cc.

References CaloPoint(), and cellid_.

35  :XYZPoint(position),detector_(detector),subdetector_(subdetn),layer_(layer)
36 {
37  cellid_=DetId();
38 }
static const char layer_[]
DetId::Detector detector_
Definition: CaloPoint.h:70
Definition: DetId.h:18
math::XYZVector XYZPoint
static int position[264][3]
Definition: ReadPGInfo.cc:509
DetId cellid_
Definition: CaloPoint.h:68
int subdetector_
Definition: CaloPoint.h:71
CaloPoint::~CaloPoint ( )
inline

Definition at line 43 of file CaloPoint.h.

43 {;}

Member Function Documentation

DetId CaloPoint::getDetId ( void  ) const
inline

returns the cellID

Definition at line 45 of file CaloPoint.h.

References cellid_.

45 {return cellid_;};
DetId cellid_
Definition: CaloPoint.h:68
CaloDirection CaloPoint::getSide ( ) const
inline

returns the Side (see numbering)

Definition at line 47 of file CaloPoint.h.

References side_.

47 {return side_;};
CaloDirection side_
Definition: CaloPoint.h:69
bool CaloPoint::operator< ( const CaloPoint p) const
inline

Definition at line 49 of file CaloPoint.h.

References mag2().

50  {return this->mag2()<p.mag2() ;};
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
void CaloPoint::setDetId ( DetId::Detector  det)
inline

Definition at line 52 of file CaloPoint.h.

References detector_.

52 {detector_=det;}
DetId::Detector detector_
Definition: CaloPoint.h:70
void CaloPoint::setLayer ( int  i)
inline

Definition at line 60 of file CaloPoint.h.

References i, and sistrip::layer_.

60 {layer_=i;}
int i
Definition: DBlmapReader.cc:9
static const char layer_[]
void CaloPoint::setSubDetector ( int  i)
inline

Definition at line 55 of file CaloPoint.h.

References i, and subdetector_.

55 {subdetector_=i;}
int i
Definition: DBlmapReader.cc:9
int subdetector_
Definition: CaloPoint.h:71
DetId::Detector CaloPoint::whichDetector ( ) const
inline

Definition at line 53 of file CaloPoint.h.

References detector_.

53 {return detector_;};
DetId::Detector detector_
Definition: CaloPoint.h:70
int CaloPoint::whichLayer ( ) const
inline

Definition at line 62 of file CaloPoint.h.

References sistrip::layer_.

62 {return layer_;}
static const char layer_[]
int CaloPoint::whichSubDetector ( ) const
inline

watch out, only valid in ECAL and preshower

Definition at line 58 of file CaloPoint.h.

References subdetector_.

58 {return subdetector_;};
int subdetector_
Definition: CaloPoint.h:71

Member Data Documentation

DetId CaloPoint::cellid_
private

Definition at line 68 of file CaloPoint.h.

Referenced by CaloPoint(), and getDetId().

DetId::Detector CaloPoint::detector_
private

Definition at line 70 of file CaloPoint.h.

Referenced by CaloPoint(), setDetId(), and whichDetector().

int CaloPoint::layer_
private

Definition at line 72 of file CaloPoint.h.

CaloDirection CaloPoint::side_
private

Definition at line 69 of file CaloPoint.h.

Referenced by getSide().

int CaloPoint::subdetector_
private

Definition at line 71 of file CaloPoint.h.

Referenced by CaloPoint(), setSubDetector(), and whichSubDetector().