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

◆ FloatVector

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

Definition at line 19 of file PEcalTBInfo.h.

◆ IntVector

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

Definition at line 20 of file PEcalTBInfo.h.

Constructor & Destructor Documentation

◆ PEcalTBInfo()

PEcalTBInfo::PEcalTBInfo ( )

Definition at line 20 of file PEcalTBInfo.cc.

References clear().

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

◆ ~PEcalTBInfo()

PEcalTBInfo::~PEcalTBInfo ( )
virtual

Definition at line 26 of file PEcalTBInfo.cc.

26 {}

Member Function Documentation

◆ clear()

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().

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

◆ dXbeam()

double PEcalTBInfo::dXbeam ( ) const
inline

Definition at line 31 of file PEcalTBInfo.h.

References dXbeam_.

Referenced by setBeamOffset().

31 { return dXbeam_; }
double dXbeam_
Definition: PEcalTBInfo.h:62

◆ dYbeam()

double PEcalTBInfo::dYbeam ( ) const
inline

Definition at line 32 of file PEcalTBInfo.h.

References dYbeam_.

Referenced by setBeamOffset().

32 { return dYbeam_; }
double dYbeam_
Definition: PEcalTBInfo.h:62

◆ etaBeam()

double PEcalTBInfo::etaBeam ( ) const
inline

Definition at line 29 of file PEcalTBInfo.h.

References etaBeam_.

Referenced by setBeamDirection().

29 { return etaBeam_; }
double etaBeam_
Definition: PEcalTBInfo.h:61

◆ evXbeam()

double PEcalTBInfo::evXbeam ( ) const
inline

Definition at line 34 of file PEcalTBInfo.h.

References evXbeam_.

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

34 { return evXbeam_; }
double evXbeam_
Definition: PEcalTBInfo.h:66

◆ evYbeam()

double PEcalTBInfo::evYbeam ( ) const
inline

Definition at line 35 of file PEcalTBInfo.h.

References evYbeam_.

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

35 { return evYbeam_; }
double evYbeam_
Definition: PEcalTBInfo.h:66

◆ nCrystal()

int PEcalTBInfo::nCrystal ( ) const
inline

Definition at line 27 of file PEcalTBInfo.h.

References nCrystal_.

Referenced by FakeTBEventHeaderProducer::produce(), and setCrystal().

27 { return nCrystal_; }

◆ phaseShift()

double PEcalTBInfo::phaseShift ( ) const
inline

Definition at line 37 of file PEcalTBInfo.h.

References phaseShift_.

Referenced by HcalTBDigiProducer::initializeEvent(), and setPhaseShift().

37 { return phaseShift_; }
double phaseShift_
Definition: PEcalTBInfo.h:69

◆ phiBeam()

double PEcalTBInfo::phiBeam ( ) const
inline

Definition at line 30 of file PEcalTBInfo.h.

References phiBeam_.

Referenced by setBeamDirection().

30 { return phiBeam_; }
double phiBeam_
Definition: PEcalTBInfo.h:61

◆ setBeamDirection()

void PEcalTBInfo::setBeamDirection ( double  etaBeam,
double  phiBeam 
)

Definition at line 55 of file PEcalTBInfo.cc.

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

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

◆ setBeamOffset()

void PEcalTBInfo::setBeamOffset ( double  dXbeam,
double  dYbeam 
)

Definition at line 60 of file PEcalTBInfo.cc.

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

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

◆ setBeamPosition()

void PEcalTBInfo::setBeamPosition ( double  evXbeam,
double  evYbeam 
)

Definition at line 65 of file PEcalTBInfo.cc.

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

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

◆ setCrystal()

void PEcalTBInfo::setCrystal ( int  nCrystal)

Definition at line 53 of file PEcalTBInfo.cc.

References nCrystal(), and nCrystal_.

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

◆ setPhaseShift()

void PEcalTBInfo::setPhaseShift ( double  phaseShift)

Definition at line 70 of file PEcalTBInfo.cc.

References phaseShift(), and phaseShift_.

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

Member Data Documentation

◆ dXbeam_

double PEcalTBInfo::dXbeam_
private

Definition at line 62 of file PEcalTBInfo.h.

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

◆ dYbeam_

double PEcalTBInfo::dYbeam_
private

Definition at line 62 of file PEcalTBInfo.h.

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

◆ etaBeam_

double PEcalTBInfo::etaBeam_
private

Definition at line 61 of file PEcalTBInfo.h.

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

◆ evXbeam_

double PEcalTBInfo::evXbeam_
private

Definition at line 66 of file PEcalTBInfo.h.

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

◆ evYbeam_

double PEcalTBInfo::evYbeam_
private

Definition at line 66 of file PEcalTBInfo.h.

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

◆ nCrystal_

int PEcalTBInfo::nCrystal_
private

Definition at line 59 of file PEcalTBInfo.h.

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

◆ phaseShift_

double PEcalTBInfo::phaseShift_
private

Definition at line 69 of file PEcalTBInfo.h.

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

◆ phiBeam_

double PEcalTBInfo::phiBeam_
private

Definition at line 61 of file PEcalTBInfo.h.

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