CMS 3D CMS Logo

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

#include <PEcalTBInfo.h>

Public Member Functions

void clear ()
 
double dXbeam () const
 
double dYbeam () const
 
double etaBeam () const
 
double evXbeam () const
 
double evYbeam () const
 
int nCrystal () const
 
 PEcalTBInfo ()
 
double phaseShift () const
 
double phiBeam () const
 
void setBeamDirection (double etaBeam, double phiBeam)
 
void setBeamOffset (double dXbeam, double dYbeam)
 
void setBeamPosition (double evXbeam, double evYbeam)
 
void setCrystal (int nCrystal)
 
void setPhaseShift (double phaseShift)
 
virtual ~PEcalTBInfo ()
 

Private Types

typedef std::vector< float > FloatVector
 
typedef std::vector< int > IntVector
 

Private Attributes

double dXbeam_
 
double dYbeam_
 
double etaBeam_
 
double evXbeam_
 
double evYbeam_
 
int nCrystal_
 
double phaseShift_
 
double phiBeam_
 

Detailed Description

Definition at line 18 of file PEcalTBInfo.h.

Member Typedef Documentation

typedef std::vector<float> PEcalTBInfo::FloatVector
private

Definition at line 19 of file PEcalTBInfo.h.

typedef std::vector<int> PEcalTBInfo::IntVector
private

Definition at line 20 of file PEcalTBInfo.h.

Constructor & Destructor Documentation

PEcalTBInfo::PEcalTBInfo ( )

Definition at line 20 of file PEcalTBInfo.cc.

References clear().

20 { clear(); }
void clear()
Definition: PEcalTBInfo.cc:43
PEcalTBInfo::~PEcalTBInfo ( )
virtual

Definition at line 26 of file PEcalTBInfo.cc.

26 {}

Member Function Documentation

void PEcalTBInfo::clear ( void  )

Definition at line 43 of file PEcalTBInfo.cc.

References dXbeam_, dYbeam_, etaBeam_, evXbeam_, evYbeam_, nCrystal_, phaseShift_, and phiBeam_.

Referenced by PEcalTBInfo(), and phaseShift().

43  {
44  nCrystal_ = 0;
45 
46  etaBeam_ = phiBeam_ = 0.;
47  dXbeam_ = dYbeam_ = 0.;
48 
49  evXbeam_ = evYbeam_ = 0.;
50  phaseShift_ = 1.;
51 }
double evYbeam_
Definition: PEcalTBInfo.h:66
double phiBeam_
Definition: PEcalTBInfo.h:61
double dYbeam_
Definition: PEcalTBInfo.h:62
double etaBeam_
Definition: PEcalTBInfo.h:61
double evXbeam_
Definition: PEcalTBInfo.h:66
double dXbeam_
Definition: PEcalTBInfo.h:62
double phaseShift_
Definition: PEcalTBInfo.h:69
double PEcalTBInfo::dXbeam ( ) const
inline

Definition at line 31 of file PEcalTBInfo.h.

References dXbeam_.

Referenced by phaseShift(), and setBeamOffset().

31 { return dXbeam_; }
double dXbeam_
Definition: PEcalTBInfo.h:62
double PEcalTBInfo::dYbeam ( ) const
inline

Definition at line 32 of file PEcalTBInfo.h.

References dYbeam_.

Referenced by phaseShift(), and setBeamOffset().

32 { return dYbeam_; }
double dYbeam_
Definition: PEcalTBInfo.h:62
double PEcalTBInfo::etaBeam ( ) const
inline

Definition at line 29 of file PEcalTBInfo.h.

References etaBeam_.

Referenced by phaseShift(), and setBeamDirection().

29 { return etaBeam_; }
double etaBeam_
Definition: PEcalTBInfo.h:61
double PEcalTBInfo::evXbeam ( ) const
inline

Definition at line 34 of file PEcalTBInfo.h.

References evXbeam_.

Referenced by phaseShift(), FakeTBHodoscopeRawInfoProducer::produce(), and setBeamPosition().

34 { return evXbeam_; }
double evXbeam_
Definition: PEcalTBInfo.h:66
double PEcalTBInfo::evYbeam ( ) const
inline

Definition at line 35 of file PEcalTBInfo.h.

References evYbeam_.

Referenced by phaseShift(), FakeTBHodoscopeRawInfoProducer::produce(), and setBeamPosition().

35 { return evYbeam_; }
double evYbeam_
Definition: PEcalTBInfo.h:66
int PEcalTBInfo::nCrystal ( ) const
inline

Definition at line 27 of file PEcalTBInfo.h.

References nCrystal_.

Referenced by EcalTBReadout::performReadout(), phaseShift(), FakeTBEventHeaderProducer::produce(), and setCrystal().

27 { return nCrystal_; }
double PEcalTBInfo::phaseShift ( ) const
inline
double PEcalTBInfo::phiBeam ( ) const
inline

Definition at line 30 of file PEcalTBInfo.h.

References phiBeam_.

Referenced by phaseShift(), and setBeamDirection().

30 { return phiBeam_; }
double phiBeam_
Definition: PEcalTBInfo.h:61
void PEcalTBInfo::setBeamDirection ( double  etaBeam,
double  phiBeam 
)

Definition at line 55 of file PEcalTBInfo.cc.

References etaBeam(), etaBeam_, phiBeam(), and phiBeam_.

Referenced by phaseShift().

55  {
56  etaBeam_ = etaBeam;
57  phiBeam_ = phiBeam;
58 }
double phiBeam_
Definition: PEcalTBInfo.h:61
double etaBeam() const
Definition: PEcalTBInfo.h:29
double etaBeam_
Definition: PEcalTBInfo.h:61
double phiBeam() const
Definition: PEcalTBInfo.h:30
void PEcalTBInfo::setBeamOffset ( double  dXbeam,
double  dYbeam 
)

Definition at line 60 of file PEcalTBInfo.cc.

References dXbeam(), dXbeam_, dYbeam(), and dYbeam_.

Referenced by phaseShift().

60  {
61  dXbeam_ = dXbeam;
62  dYbeam_ = dYbeam;
63 }
double dXbeam() const
Definition: PEcalTBInfo.h:31
double dYbeam_
Definition: PEcalTBInfo.h:62
double dXbeam_
Definition: PEcalTBInfo.h:62
double dYbeam() const
Definition: PEcalTBInfo.h:32
void PEcalTBInfo::setBeamPosition ( double  evXbeam,
double  evYbeam 
)

Definition at line 65 of file PEcalTBInfo.cc.

References evXbeam(), evXbeam_, evYbeam(), and evYbeam_.

Referenced by phaseShift().

65  {
66  evXbeam_ = evXbeam;
67  evYbeam_ = evYbeam;
68 }
double evYbeam_
Definition: PEcalTBInfo.h:66
double evXbeam_
Definition: PEcalTBInfo.h:66
double evXbeam() const
Definition: PEcalTBInfo.h:34
double evYbeam() const
Definition: PEcalTBInfo.h:35
void PEcalTBInfo::setCrystal ( int  nCrystal)

Definition at line 53 of file PEcalTBInfo.cc.

References nCrystal(), and nCrystal_.

Referenced by phaseShift().

53 { nCrystal_ = nCrystal; }
int nCrystal() const
Definition: PEcalTBInfo.h:27
void PEcalTBInfo::setPhaseShift ( double  phaseShift)

Definition at line 70 of file PEcalTBInfo.cc.

References phaseShift(), and phaseShift_.

Referenced by phaseShift().

double phaseShift() const
Definition: PEcalTBInfo.h:37
double phaseShift_
Definition: PEcalTBInfo.h:69

Member Data Documentation

double PEcalTBInfo::dXbeam_
private

Definition at line 62 of file PEcalTBInfo.h.

Referenced by clear(), dXbeam(), and setBeamOffset().

double PEcalTBInfo::dYbeam_
private

Definition at line 62 of file PEcalTBInfo.h.

Referenced by clear(), dYbeam(), and setBeamOffset().

double PEcalTBInfo::etaBeam_
private

Definition at line 61 of file PEcalTBInfo.h.

Referenced by clear(), etaBeam(), and setBeamDirection().

double PEcalTBInfo::evXbeam_
private

Definition at line 66 of file PEcalTBInfo.h.

Referenced by clear(), evXbeam(), and setBeamPosition().

double PEcalTBInfo::evYbeam_
private

Definition at line 66 of file PEcalTBInfo.h.

Referenced by clear(), evYbeam(), and setBeamPosition().

int PEcalTBInfo::nCrystal_
private

Definition at line 59 of file PEcalTBInfo.h.

Referenced by clear(), nCrystal(), and setCrystal().

double PEcalTBInfo::phaseShift_
private

Definition at line 69 of file PEcalTBInfo.h.

Referenced by clear(), phaseShift(), and setPhaseShift().

double PEcalTBInfo::phiBeam_
private

Definition at line 61 of file PEcalTBInfo.h.

Referenced by clear(), phiBeam(), and setBeamDirection().