StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
digbeam.cxx
1 // //
3 // DIGBeam //
4 // //
5 // Class containing incident particles / beam informations //
6 // //
7 // //
8 // //
9 // //
10 // //
11 // //
12 // //
14 #include "digbeam.h"
15 
16 #include <TROOT.h> // for gROOT object
17 #include <TMath.h>
18 #include <TMatrixD.h>
19 #include <TCanvas.h>
20 #include <TGraph.h>
21 #include <TAxis.h>
22 #include <TRandom3.h>
23 #include <TFile.h>
24 #include <TTree.h>
25 #include <TBranch.h>
26 #include <TClonesArray.h>
27 using namespace std;
28 
29 //==============================================================================
30 ClassImp(DIGBeam)
31 
32 DIGBeam::DIGBeam()
33 {
34  //
35  // default constructor
36  //
37 
38 }
39 //______________________________________________________________________________
40 //
41 DIGBeam::DIGBeam(Int_t RunNumber, Int_t NumberOfEvents,Float_t ParticleDensity,Float_t ThetaIncidentDeg,
42  Float_t PhiIncidentDeg, Int_t BeamParameter)
43 {
44  SetRunNumber(RunNumber);
45  SetNumberOfEvents(NumberOfEvents);
46  SetParticleDensity(ParticleDensity);
47  SetThetaIncidentDeg(ThetaIncidentDeg);
48  SetPhiIncidentDeg(PhiIncidentDeg);
49  SetBeamOption(BeamParameter);
50 }
51 //______________________________________________________________________________
52 //
53 
54 DIGBeam::~DIGBeam() { //
55  // virtual destructor
56  //
57  // delete fLayers;
58 }
59 //______________________________________________________________________________
60 //
61 void DIGBeam::SetRunNumber(Int_t RunNumber){
62  fRunNumber = RunNumber;
63 }
64 //______________________________________________________________________________
65 //
66 void DIGBeam::SetNumberOfEvents(Int_t NumberOfEvents){
67  fNumberOfEvents = NumberOfEvents;
68 }
69 //______________________________________________________________________________
70 //
71 void DIGBeam::SetParticleDensity(Float_t ParticleDensity){
72  fParticleDensity = ParticleDensity;
73 }
74 //______________________________________________________________________________
75 //
76 void DIGBeam::SetThetaIncidentDeg(Float_t ThetaIncidentDeg){
77  fThetaIncidentDeg = ThetaIncidentDeg;
78 }
79 //______________________________________________________________________________
80 //
81 void DIGBeam::SetPhiIncidentDeg(Float_t PhiIncidentDeg){
82  fPhiIncidentDeg = PhiIncidentDeg;
83 }
84 //______________________________________________________________________________
85 //
86 void DIGBeam::SetBeamOption(Int_t BeamOption){
87  fBeamOption = BeamOption;
88 }
89 //______________________________________________________________________________
90 //
91 
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;
97 }
98 
99 //==============================================================================