61 for (
Int_t j=0;j<njets;j++) {
66 for (
Int_t t=0;t<ntracks;t++) {
73 for (
Int_t ha=0;ha<nhitsA;ha++) {
75 hit->
fX = 10000*j + 100*t +ha;
76 hit->
fY = 10000*j + 100*t +ha+0.1;
77 hit->
fZ = 10000*j + 100*t +ha+0.2;
81 for (
Int_t hb=0;hb<nhitsB;hb++) {
83 hit->
fX = 20000*j + 100*t +hb+0.3;
84 hit->
fY = 20000*j + 100*t +hb+0.4;
85 hit->
fZ = 20000*j + 100*t +hb+0.5;
88 track->
fNhit = nhitsA + nhitsB;
R__EXTERN TRandom * gRandom
static TClonesArray * fgTracks
Jet * AddJet()
Add a new Jet to the list of tracks for this event.
Hit * AddHitB()
Add a new hit to the list of hits in detector B.
static TClonesArray * fgJets
static TClonesArray * fgHitsB
JetEvent()
Create a JetEvent object.
Hit * AddHitA()
Add a new hit to the list of hits in detector A.
static TClonesArray * fgHitsA
Track * AddTrack()
Add a new track to the list of tracks for this event.
void Reset(Option_t *option="")
Static function to reset all static objects for this event.
void Clear(Option_t *option="")
void Build(Int_t jetm=3, Int_t trackm=10, Int_t hitam=100, Int_t hitbm=10)
Build one event.
An array of clone (identical) objects.
virtual void Clear(Option_t *option="")
Clear the clones array.
friend class TClonesArray
static UInt_t GetObjectCount()
Return the current referenced object count fgNumber is incremented every time a new object is referen...
static void SetObjectCount(UInt_t number)
static function to set the current referenced object count fgNumber is incremented every time a new o...
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual Double_t Rndm()
Machine independent random number generator.
void SetXYZ(Double_t x, Double_t y, Double_t z)