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.

20 { clear(); }

References clear().

◆ ~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.

43  {
44  nCrystal_ = 0;
45 
46  etaBeam_ = phiBeam_ = 0.;
47  dXbeam_ = dYbeam_ = 0.;
48 
49  evXbeam_ = evYbeam_ = 0.;
50  phaseShift_ = 1.;
51 }

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

Referenced by PEcalTBInfo().

◆ dXbeam()

double PEcalTBInfo::dXbeam ( ) const
inline

Definition at line 31 of file PEcalTBInfo.h.

31 { return dXbeam_; }

References dXbeam_.

Referenced by setBeamOffset().

◆ dYbeam()

double PEcalTBInfo::dYbeam ( ) const
inline

Definition at line 32 of file PEcalTBInfo.h.

32 { return dYbeam_; }

References dYbeam_.

Referenced by setBeamOffset().

◆ etaBeam()

double PEcalTBInfo::etaBeam ( ) const
inline

Definition at line 29 of file PEcalTBInfo.h.

29 { return etaBeam_; }

References etaBeam_.

Referenced by setBeamDirection().

◆ evXbeam()

double PEcalTBInfo::evXbeam ( ) const
inline

Definition at line 34 of file PEcalTBInfo.h.

34 { return evXbeam_; }

References evXbeam_.

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

◆ evYbeam()

double PEcalTBInfo::evYbeam ( ) const
inline

Definition at line 35 of file PEcalTBInfo.h.

35 { return evYbeam_; }

References evYbeam_.

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

◆ nCrystal()

int PEcalTBInfo::nCrystal ( ) const
inline

Definition at line 27 of file PEcalTBInfo.h.

27 { return nCrystal_; }

References nCrystal_.

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

◆ phaseShift()

double PEcalTBInfo::phaseShift ( ) const
inline

Definition at line 37 of file PEcalTBInfo.h.

37 { return phaseShift_; }

References phaseShift_.

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

◆ phiBeam()

double PEcalTBInfo::phiBeam ( ) const
inline

Definition at line 30 of file PEcalTBInfo.h.

30 { return phiBeam_; }

References phiBeam_.

Referenced by setBeamDirection().

◆ setBeamDirection()

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

Definition at line 55 of file PEcalTBInfo.cc.

55  {
56  etaBeam_ = etaBeam;
57  phiBeam_ = phiBeam;
58 }

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

◆ setBeamOffset()

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

Definition at line 60 of file PEcalTBInfo.cc.

60  {
61  dXbeam_ = dXbeam;
62  dYbeam_ = dYbeam;
63 }

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

◆ setBeamPosition()

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

Definition at line 65 of file PEcalTBInfo.cc.

65  {
66  evXbeam_ = evXbeam;
67  evYbeam_ = evYbeam;
68 }

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

◆ setCrystal()

void PEcalTBInfo::setCrystal ( int  nCrystal)

Definition at line 53 of file PEcalTBInfo.cc.

53 { nCrystal_ = nCrystal; }

References nCrystal(), and nCrystal_.

◆ setPhaseShift()

void PEcalTBInfo::setPhaseShift ( double  phaseShift)

Definition at line 70 of file PEcalTBInfo.cc.

References phaseShift(), and phaseShift_.

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

PEcalTBInfo::phaseShift
double phaseShift() const
Definition: PEcalTBInfo.h:37
PEcalTBInfo::evYbeam_
double evYbeam_
Definition: PEcalTBInfo.h:66
PEcalTBInfo::phaseShift_
double phaseShift_
Definition: PEcalTBInfo.h:69
PEcalTBInfo::clear
void clear()
Definition: PEcalTBInfo.cc:43
PEcalTBInfo::phiBeam_
double phiBeam_
Definition: PEcalTBInfo.h:61
PEcalTBInfo::nCrystal_
int nCrystal_
Definition: PEcalTBInfo.h:59
PEcalTBInfo::phiBeam
double phiBeam() const
Definition: PEcalTBInfo.h:30
PEcalTBInfo::evYbeam
double evYbeam() const
Definition: PEcalTBInfo.h:35
PEcalTBInfo::nCrystal
int nCrystal() const
Definition: PEcalTBInfo.h:27
PEcalTBInfo::dYbeam_
double dYbeam_
Definition: PEcalTBInfo.h:62
PEcalTBInfo::evXbeam_
double evXbeam_
Definition: PEcalTBInfo.h:66
PEcalTBInfo::etaBeam
double etaBeam() const
Definition: PEcalTBInfo.h:29
PEcalTBInfo::dXbeam
double dXbeam() const
Definition: PEcalTBInfo.h:31
PEcalTBInfo::dXbeam_
double dXbeam_
Definition: PEcalTBInfo.h:62
PEcalTBInfo::etaBeam_
double etaBeam_
Definition: PEcalTBInfo.h:61
PEcalTBInfo::dYbeam
double dYbeam() const
Definition: PEcalTBInfo.h:32
PEcalTBInfo::evXbeam
double evXbeam() const
Definition: PEcalTBInfo.h:34