26 #include <TClonesArray.h>
41 DIGBeam::DIGBeam(Int_t RunNumber, Int_t NumberOfEvents,Float_t ParticleDensity,Float_t ThetaIncidentDeg,
42 Float_t PhiIncidentDeg, Int_t BeamParameter)
44 SetRunNumber(RunNumber);
45 SetNumberOfEvents(NumberOfEvents);
46 SetParticleDensity(ParticleDensity);
47 SetThetaIncidentDeg(ThetaIncidentDeg);
48 SetPhiIncidentDeg(PhiIncidentDeg);
49 SetBeamOption(BeamParameter);
61 void DIGBeam::SetRunNumber(Int_t RunNumber){
62 fRunNumber = RunNumber;
66 void DIGBeam::SetNumberOfEvents(Int_t NumberOfEvents){
67 fNumberOfEvents = NumberOfEvents;
71 void DIGBeam::SetParticleDensity(Float_t ParticleDensity){
72 fParticleDensity = ParticleDensity;
76 void DIGBeam::SetThetaIncidentDeg(Float_t ThetaIncidentDeg){
77 fThetaIncidentDeg = ThetaIncidentDeg;
81 void DIGBeam::SetPhiIncidentDeg(Float_t PhiIncidentDeg){
82 fPhiIncidentDeg = PhiIncidentDeg;
86 void DIGBeam::SetBeamOption(Int_t BeamOption){
87 fBeamOption = BeamOption;
92 void DIGBeam::PrintInfo() {
93 std::cout<<
"---------BEAM properties------------- "<<endl;
94 std::cout<<
"fRunNumber fNumberOfEvents fParticleDensity fThetaIncidentDeg fPhiIncidentDeg fBeamOption"<<endl;
95 std::cout<<fRunNumber<<
" "<< fNumberOfEvents<<
" "<< fParticleDensity<<
" "<< fThetaIncidentDeg<<
" "
96 << fPhiIncidentDeg<<
" "<<fBeamOption<<endl;