CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
CastorShowerEvent Class Reference

#include <CastorShowerEvent.h>

Inheritance diagram for CastorShowerEvent:

Public Types

typedef math::XYZPoint Point
 point in the space More...
 

Public Member Functions

 CastorShowerEvent ()
 
void Clear ()
 
unsigned int getDetID (int i)
 
Point getHitPosition (int i)
 
unsigned int getNhit ()
 
float getNphotons (int i)
 
float getPrimE ()
 
float getPrimEta ()
 
float getPrimPhi () const
 
float getPrimX ()
 
float getPrimY ()
 
float getPrimZ ()
 
float getTime (int i)
 
void setDetID (unsigned int id)
 
void setHitPosition (const Point &p)
 
void setNhit (unsigned int i)
 
void setNphotons (float np)
 
void setPrimE (float e)
 
void setPrimEta (float eta)
 
void setPrimPhi (float phi)
 
void setPrimX (float x)
 
void setPrimY (float y)
 
void setPrimZ (float z)
 
void setTime (float t)
 
 ~CastorShowerEvent ()
 

Public Attributes

std::vector< unsigned int > detID
 
std::vector< PointhitPosition
 
unsigned int nhit
 
std::vector< float > nphotons
 
float primaryEnergy
 
float primEta
 
float primPhi
 
float primX
 
float primY
 
float primZ
 
std::vector< float > time
 

Detailed Description

Definition at line 15 of file CastorShowerEvent.h.

Member Typedef Documentation

point in the space

Definition at line 20 of file CastorShowerEvent.h.

Constructor & Destructor Documentation

CastorShowerEvent::CastorShowerEvent ( )

Definition at line 4 of file CastorShowerEvent.cc.

4  {
5  // Clear();
6  // std::cout << "\n *** CastorShowerEvent object created *** " << std::endl;
7 }
CastorShowerEvent::~CastorShowerEvent ( )

Definition at line 9 of file CastorShowerEvent.cc.

9 {}

Member Function Documentation

void CastorShowerEvent::Clear ( )

Definition at line 12 of file CastorShowerEvent.cc.

References detID, hitPosition, nhit, nphotons, primaryEnergy, primEta, primPhi, primX, primY, primZ, and time.

Referenced by CastorShowerLibrary::getShowerHits(), and CastorShowerLibraryMaker::update().

12  {
13  nhit = 0;
14  detID.clear();
15  hitPosition.clear();
16  nphotons.clear();
17  time.clear();
18  primaryEnergy = 0.;
19  primEta = 0.;
20  primPhi = 0.;
21  primX = 0.;
22  primY = 0.;
23  primZ = 0.;
24 }
std::vector< Point > hitPosition
std::vector< float > nphotons
std::vector< unsigned int > detID
std::vector< float > time
unsigned int CastorShowerEvent::getDetID ( int  i)
inline

Definition at line 54 of file CastorShowerEvent.h.

References mps_fire::i.

Referenced by CastorSD::getFromLibrary().

54 { return detID[i]; };
std::vector< unsigned int > detID
Point CastorShowerEvent::getHitPosition ( int  i)
inline

Definition at line 55 of file CastorShowerEvent.h.

References mps_fire::i.

55 { return hitPosition[i]; };
std::vector< Point > hitPosition
unsigned int CastorShowerEvent::getNhit ( )
inline

Definition at line 53 of file CastorShowerEvent.h.

References nhit.

Referenced by CastorSD::getFromLibrary(), CastorShowerLibrary::getRecord(), and CastorShowerLibraryMaker::update().

53 { return nhit; };
float CastorShowerEvent::getNphotons ( int  i)
inline

Definition at line 56 of file CastorShowerEvent.h.

References mps_fire::i.

Referenced by CastorSD::getFromLibrary().

56 { return nphotons[i]; };
std::vector< float > nphotons
float CastorShowerEvent::getPrimE ( )
inline

Definition at line 58 of file CastorShowerEvent.h.

References primaryEnergy.

Referenced by CastorSD::getFromLibrary().

58 { return primaryEnergy; };
float CastorShowerEvent::getPrimEta ( )
inline

Definition at line 59 of file CastorShowerEvent.h.

References primEta.

59 { return primEta; };
float CastorShowerEvent::getPrimPhi ( ) const
inline

Definition at line 60 of file CastorShowerEvent.h.

References primPhi.

Referenced by CastorSD::rotateUnitID().

60 { return primPhi; };
float CastorShowerEvent::getPrimX ( )
inline

Definition at line 61 of file CastorShowerEvent.h.

References primX.

61 { return primX; };
float CastorShowerEvent::getPrimY ( )
inline

Definition at line 62 of file CastorShowerEvent.h.

References primY.

62 { return primY; };
float CastorShowerEvent::getPrimZ ( )
inline

Definition at line 63 of file CastorShowerEvent.h.

References primZ.

63 { return primZ; };
float CastorShowerEvent::getTime ( int  i)
inline

Definition at line 57 of file CastorShowerEvent.h.

References mps_fire::i.

Referenced by CastorSD::getFromLibrary().

57 { return time[i]; };
std::vector< float > time
void CastorShowerEvent::setDetID ( unsigned int  id)
inline

Definition at line 41 of file CastorShowerEvent.h.

Referenced by CastorShowerLibraryMaker::FillShowerEvent().

41 { detID.push_back(id); };
std::vector< unsigned int > detID
void CastorShowerEvent::setHitPosition ( const Point p)
inline

Definition at line 42 of file CastorShowerEvent.h.

Referenced by CastorShowerLibraryMaker::FillShowerEvent().

void CastorShowerEvent::setNhit ( unsigned int  i)
inline

Definition at line 40 of file CastorShowerEvent.h.

References mps_fire::i.

Referenced by CastorShowerLibraryMaker::FillShowerEvent().

40 { nhit = i; };
void CastorShowerEvent::setNphotons ( float  np)
inline

Definition at line 43 of file CastorShowerEvent.h.

Referenced by CastorShowerLibraryMaker::FillShowerEvent().

43 { nphotons.push_back(np); };
std::vector< float > nphotons
int np
Definition: AMPTWrapper.h:33
void CastorShowerEvent::setPrimE ( float  e)
inline
void CastorShowerEvent::setPrimEta ( float  eta)
inline
void CastorShowerEvent::setPrimPhi ( float  phi)
inline

Definition at line 47 of file CastorShowerEvent.h.

References phi.

Referenced by CastorShowerLibraryMaker::update().

void CastorShowerEvent::setPrimX ( float  x)
inline

Definition at line 48 of file CastorShowerEvent.h.

References x.

Referenced by CastorShowerLibraryMaker::update().

void CastorShowerEvent::setPrimY ( float  y)
inline

Definition at line 49 of file CastorShowerEvent.h.

References y.

Referenced by CastorShowerLibraryMaker::update().

void CastorShowerEvent::setPrimZ ( float  z)
inline

Definition at line 50 of file CastorShowerEvent.h.

References z.

Referenced by CastorShowerLibraryMaker::update().

void CastorShowerEvent::setTime ( float  t)
inline

Definition at line 44 of file CastorShowerEvent.h.

Referenced by CastorShowerLibraryMaker::FillShowerEvent().

44 { time.push_back(t); };
std::vector< float > time

Member Data Documentation

std::vector<unsigned int> CastorShowerEvent::detID

Definition at line 31 of file CastorShowerEvent.h.

Referenced by Clear().

std::vector<Point> CastorShowerEvent::hitPosition

Definition at line 32 of file CastorShowerEvent.h.

Referenced by Clear().

unsigned int CastorShowerEvent::nhit

Definition at line 30 of file CastorShowerEvent.h.

Referenced by Clear(), and getNhit().

std::vector<float> CastorShowerEvent::nphotons

Definition at line 33 of file CastorShowerEvent.h.

Referenced by Clear().

float CastorShowerEvent::primaryEnergy

Definition at line 35 of file CastorShowerEvent.h.

Referenced by Clear(), and getPrimE().

float CastorShowerEvent::primEta

Definition at line 36 of file CastorShowerEvent.h.

Referenced by Clear(), and getPrimEta().

float CastorShowerEvent::primPhi

Definition at line 36 of file CastorShowerEvent.h.

Referenced by Clear(), and getPrimPhi().

float CastorShowerEvent::primX

Definition at line 37 of file CastorShowerEvent.h.

Referenced by Clear(), and getPrimX().

float CastorShowerEvent::primY

Definition at line 37 of file CastorShowerEvent.h.

Referenced by Clear(), and getPrimY().

float CastorShowerEvent::primZ

Definition at line 37 of file CastorShowerEvent.h.

Referenced by Clear(), and getPrimZ().

std::vector<float> CastorShowerEvent::time

Definition at line 34 of file CastorShowerEvent.h.

Referenced by Clear().