CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimDataFormats/EcalTestBeam/src/PEcalTBInfo.cc

Go to the documentation of this file.
00001 //
00002 // $Id: PEcalTBInfo.cc,v 1.2 2006/10/25 16:58:05 fabiocos Exp $
00003 //
00004 
00005 // system include files
00006 
00007 // user include files
00008 #include "SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h"
00009 
00010 //
00011 // constants, enums and typedefs
00012 //
00013 
00014 //
00015 // static data member definitions
00016 //
00017 
00018 //
00019 // constructors and destructor
00020 //
00021 PEcalTBInfo::PEcalTBInfo() {
00022   clear();
00023 }
00024 
00025 // PEcalTBInfo::PEcalTBInfo(const PEcalTBInfo& rhs) {
00026 //    // do actual copying here;
00027 // }
00028 
00029 PEcalTBInfo::~PEcalTBInfo() {
00030 }
00031 
00032 //
00033 // assignment operators
00034 //
00035 // const PEcalTBInfo& PEcalTBInfo::operator=(const PEcalTBInfo& rhs) {
00036 //   //An exception safe implementation is
00037 //   PEcalTBInfo temp(rhs);
00038 //   swap(rhs);
00039 //
00040 //   return *this;
00041 // }
00042 
00043 //
00044 // member functions
00045 //
00046 
00047 void PEcalTBInfo::clear() {
00048   nCrystal_ = 0;
00049 
00050   etaBeam_ = phiBeam_ = 0.;
00051   dXbeam_ = dYbeam_ = 0.;
00052 
00053   evXbeam_ = evYbeam_ = 0.;
00054   phaseShift_ = 1.;
00055 }
00056   
00057 void PEcalTBInfo::setCrystal(int nCrystal) {
00058   nCrystal_ = nCrystal;
00059 }
00060 
00061 void PEcalTBInfo::setBeamDirection(double etaBeam, double phiBeam) {
00062   etaBeam_ = etaBeam;
00063   phiBeam_ = phiBeam;
00064 }
00065 
00066 void PEcalTBInfo::setBeamOffset(double dXbeam, double dYbeam) {
00067   dXbeam_ = dXbeam;
00068   dYbeam_ = dYbeam;
00069 }
00070 
00071 void PEcalTBInfo::setBeamPosition(double evXbeam, double evYbeam) {
00072   evXbeam_ = evXbeam;
00073   evYbeam_ = evYbeam;
00074 }
00075 
00076 void PEcalTBInfo::setPhaseShift(double phaseShift) {
00077   phaseShift_ = phaseShift;
00078 }