Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:41

0001 //
0002 //
0003 
0004 // system include files
0005 
0006 // user include files
0007 #include "SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h"
0008 
0009 //
0010 // constants, enums and typedefs
0011 //
0012 
0013 //
0014 // static data member definitions
0015 //
0016 
0017 //
0018 // constructors and destructor
0019 //
0020 PEcalTBInfo::PEcalTBInfo() { clear(); }
0021 
0022 // PEcalTBInfo::PEcalTBInfo(const PEcalTBInfo& rhs) {
0023 //    // do actual copying here;
0024 // }
0025 
0026 PEcalTBInfo::~PEcalTBInfo() {}
0027 
0028 //
0029 // assignment operators
0030 //
0031 // const PEcalTBInfo& PEcalTBInfo::operator=(const PEcalTBInfo& rhs) {
0032 //   //An exception safe implementation is
0033 //   PEcalTBInfo temp(rhs);
0034 //   swap(rhs);
0035 //
0036 //   return *this;
0037 // }
0038 
0039 //
0040 // member functions
0041 //
0042 
0043 void PEcalTBInfo::clear() {
0044   nCrystal_ = 0;
0045 
0046   etaBeam_ = phiBeam_ = 0.;
0047   dXbeam_ = dYbeam_ = 0.;
0048 
0049   evXbeam_ = evYbeam_ = 0.;
0050   phaseShift_ = 1.;
0051 }
0052 
0053 void PEcalTBInfo::setCrystal(int nCrystal) { nCrystal_ = nCrystal; }
0054 
0055 void PEcalTBInfo::setBeamDirection(double etaBeam, double phiBeam) {
0056   etaBeam_ = etaBeam;
0057   phiBeam_ = phiBeam;
0058 }
0059 
0060 void PEcalTBInfo::setBeamOffset(double dXbeam, double dYbeam) {
0061   dXbeam_ = dXbeam;
0062   dYbeam_ = dYbeam;
0063 }
0064 
0065 void PEcalTBInfo::setBeamPosition(double evXbeam, double evYbeam) {
0066   evXbeam_ = evXbeam;
0067   evYbeam_ = evYbeam;
0068 }
0069 
0070 void PEcalTBInfo::setPhaseShift(double phaseShift) { phaseShift_ = phaseShift; }