31 if (!fgTracks) fgTracks =
new TClonesArray(
"Track", 100);
66 for (
Int_t j=0;j<njets;j++) {
78 for (
Int_t ha=0;ha<nhitsA;ha++) {
80 hit->
fX = 10000*j + 100*
t +ha;
81 hit->
fY = 10000*j + 100*
t +ha+0.1;
82 hit->
fZ = 10000*j + 100*
t +ha+0.2;
86 for (
Int_t hb=0;hb<nhitsB;hb++) {
88 hit->
fX = 20000*j + 100*
t +hb+0.3;
89 hit->
fY = 20000*j + 100*
t +hb+0.4;
90 hit->
fZ = 20000*j + 100*
t +hb+0.5;
93 track->
fNhit = nhitsA + nhitsB;
Jet * AddJet()
Add a new Jet to the list of tracks for this event.
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
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...
Track * AddTrack()
Add a new track to the list of tracks for this event.
void Build(Int_t jetm=3, Int_t trackm=10, Int_t hitam=100, Int_t hitbm=10)
Build one event.
void Clear(Option_t *option="")
static TClonesArray * fgHitsA
void SetXYZ(Double_t x, Double_t y, Double_t z)
static void SetObjectCount(UInt_t number)
static function to set the current referenced object count fgNumber is incremented every time a new o...
virtual void Clear(Option_t *option="")
Clear the clones array.
Hit * AddHitB()
Add a new hit to the list of hits in detector B.
R__EXTERN TRandom * gRandom
static TClonesArray * fgJets
void Reset(Option_t *option="")
Static function to reset all static objects for this event.
Hit * AddHitA()
Add a new hit to the list of hits in detector A.
An array of clone (identical) objects.
static TClonesArray * fgTracks
static TClonesArray * fgHitsB
static UInt_t GetObjectCount()
Return the current referenced object count fgNumber is incremented every time a new object is referen...