CMS 3D CMS Logo

PEcalTBInfo Class Reference

#include <SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h>

List of all members.

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< intIntVector

Private Attributes

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


Detailed Description

Definition at line 19 of file PEcalTBInfo.h.


Member Typedef Documentation

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

Definition at line 21 of file PEcalTBInfo.h.

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

Definition at line 22 of file PEcalTBInfo.h.


Constructor & Destructor Documentation

PEcalTBInfo::PEcalTBInfo (  ) 

Definition at line 21 of file PEcalTBInfo.cc.

References clear().

00021                          {
00022   clear();
00023 }

PEcalTBInfo::~PEcalTBInfo (  )  [virtual]

Definition at line 29 of file PEcalTBInfo.cc.

00029                           {
00030 }


Member Function Documentation

void PEcalTBInfo::clear ( void   ) 

Definition at line 47 of file PEcalTBInfo.cc.

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

Referenced by PEcalTBInfo().

00047                         {
00048   nCrystal_ = 0;
00049 
00050   etaBeam_ = phiBeam_ = 0.;
00051   dXbeam_ = dYbeam_ = 0.;
00052 
00053   evXbeam_ = evYbeam_ = 0.;
00054   phaseShift_ = 1.;
00055 }

double PEcalTBInfo::dXbeam (  )  const [inline]

Definition at line 33 of file PEcalTBInfo.h.

References dXbeam_.

00033 {return dXbeam_; }

double PEcalTBInfo::dYbeam (  )  const [inline]

Definition at line 34 of file PEcalTBInfo.h.

References dYbeam_.

00034 {return dYbeam_; }

double PEcalTBInfo::etaBeam (  )  const [inline]

Definition at line 31 of file PEcalTBInfo.h.

References etaBeam_.

00031 {return etaBeam_; }

double PEcalTBInfo::evXbeam (  )  const [inline]

Definition at line 36 of file PEcalTBInfo.h.

References evXbeam_.

00036 {return evXbeam_; }

double PEcalTBInfo::evYbeam (  )  const [inline]

Definition at line 37 of file PEcalTBInfo.h.

References evYbeam_.

00037 {return evYbeam_; }

int PEcalTBInfo::nCrystal (  )  const [inline]

Definition at line 29 of file PEcalTBInfo.h.

References nCrystal_.

Referenced by FakeTBEventHeaderProducer::produce().

00029 {return nCrystal_; }

double PEcalTBInfo::phaseShift (  )  const [inline]

Definition at line 39 of file PEcalTBInfo.h.

References phaseShift_.

00039 {return phaseShift_;}

double PEcalTBInfo::phiBeam (  )  const [inline]

Definition at line 32 of file PEcalTBInfo.h.

References phiBeam_.

00032 {return phiBeam_; }

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

Definition at line 61 of file PEcalTBInfo.cc.

References etaBeam_, and phiBeam_.

00061                                                                  {
00062   etaBeam_ = etaBeam;
00063   phiBeam_ = phiBeam;
00064 }

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

Definition at line 66 of file PEcalTBInfo.cc.

References dXbeam_, and dYbeam_.

00066                                                             {
00067   dXbeam_ = dXbeam;
00068   dYbeam_ = dYbeam;
00069 }

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

Definition at line 71 of file PEcalTBInfo.cc.

References evXbeam_, and evYbeam_.

00071                                                                 {
00072   evXbeam_ = evXbeam;
00073   evYbeam_ = evYbeam;
00074 }

void PEcalTBInfo::setCrystal ( int  nCrystal  ) 

Definition at line 57 of file PEcalTBInfo.cc.

References nCrystal_.

00057                                          {
00058   nCrystal_ = nCrystal;
00059 }

void PEcalTBInfo::setPhaseShift ( double  phaseShift  ) 

Definition at line 76 of file PEcalTBInfo.cc.

References phaseShift_.

00076                                                  {
00077   phaseShift_ = phaseShift;
00078 }


Member Data Documentation

double PEcalTBInfo::dXbeam_ [private]

Definition at line 64 of file PEcalTBInfo.h.

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

double PEcalTBInfo::dYbeam_ [private]

Definition at line 64 of file PEcalTBInfo.h.

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

double PEcalTBInfo::etaBeam_ [private]

Definition at line 63 of file PEcalTBInfo.h.

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

double PEcalTBInfo::evXbeam_ [private]

Definition at line 68 of file PEcalTBInfo.h.

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

double PEcalTBInfo::evYbeam_ [private]

Definition at line 68 of file PEcalTBInfo.h.

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

int PEcalTBInfo::nCrystal_ [private]

Definition at line 61 of file PEcalTBInfo.h.

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

double PEcalTBInfo::phaseShift_ [private]

Definition at line 71 of file PEcalTBInfo.h.

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

double PEcalTBInfo::phiBeam_ [private]

Definition at line 63 of file PEcalTBInfo.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:29:29 2009 for CMSSW by  doxygen 1.5.4