File indexing completed on 2023-10-25 10:03:48
0001 #ifndef EcalTestBeam_PEcalTBInfo_h
0002 #define EcalTestBeam_PEcalTBInfo_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <string>
0013 #include <vector>
0014 #include <memory>
0015
0016
0017
0018 class PEcalTBInfo {
0019 typedef std::vector<float> FloatVector;
0020 typedef std::vector<int> IntVector;
0021
0022 public:
0023 PEcalTBInfo();
0024 virtual ~PEcalTBInfo();
0025
0026
0027 int nCrystal() const { return nCrystal_; }
0028
0029 double etaBeam() const { return etaBeam_; }
0030 double phiBeam() const { return phiBeam_; }
0031 double dXbeam() const { return dXbeam_; }
0032 double dYbeam() const { return dYbeam_; }
0033
0034 double evXbeam() const { return evXbeam_; }
0035 double evYbeam() const { return evYbeam_; }
0036
0037 double phaseShift() const { return phaseShift_; }
0038
0039
0040
0041
0042 void clear();
0043
0044 void setCrystal(int nCrystal);
0045 void setBeamDirection(double etaBeam, double phiBeam);
0046 void setBeamOffset(double dXbeam, double dYbeam);
0047
0048 void setBeamPosition(double evXbeam, double evYbeam);
0049 void setPhaseShift(double phaseShift);
0050
0051 private:
0052
0053
0054
0055
0056
0057
0058
0059 int nCrystal_;
0060
0061 double etaBeam_, phiBeam_;
0062 double dXbeam_, dYbeam_;
0063
0064
0065
0066 double evXbeam_, evYbeam_;
0067
0068
0069 double phaseShift_;
0070 };
0071
0072 #endif