Tracking flag functionality increased. By A.Morsch.
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Jun 1999 17:07:57 +0000 (17:07 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Jun 1999 17:07:57 +0000 (17:07 +0000)
STEER/AliGenerator.cxx
STEER/AliGenerator.h

index c112b8c14525984f9ff285893bec27e86f528f10..72a1b342e59ba13261c3ff87086db2c670948918 100644 (file)
@@ -28,6 +28,8 @@ TGenerator* AliGenerator::fgMCEvGen=0;
 //____________________________________________________________
 AliGenerator::AliGenerator()
 {
+    printf("\n Initialising AliGenerator\n\n");
+    
     gAlice->SetGenerator(this);
     SetThetaRange();
     SetPhiRange();
@@ -35,6 +37,7 @@ AliGenerator::AliGenerator()
     SetPtRange();
     SetYRange();
     SetNumberParticles();
+    SetTrackingFlag();
   //
   //  fName="Default";
   //  fTitle="Base Generator Class";
@@ -49,6 +52,7 @@ AliGenerator::AliGenerator()
 AliGenerator::AliGenerator(Int_t npart)
     : TNamed(" "," ")
 {
+    printf("\n Initialising AliGenerator\n\n");
     gAlice->SetGenerator(this);
     SetThetaRange();
     SetPhiRange();
@@ -56,6 +60,7 @@ AliGenerator::AliGenerator(Int_t npart)
     SetPtRange();
     SetYRange();
     SetNumberParticles(npart);
+    SetTrackingFlag();
   //
   //  fName="Default";
   //  fTitle="Base Generator Class";
index fd4058672903ba8e5b404eb07aa59e9a517b1b48..b5540a041f8fcd1e4cdf3d6300563bd7007ae836 100644 (file)
@@ -33,9 +33,11 @@ protected:
     Int_t       fNpart;        //Maximum number of particles per event
     Float_t     fParentWeight; //Parent Weight
     Float_t     fChildWeight;  //ChildWeight
+    Int_t       fTrackit;      // Track the generated final state particle if 1
     Int_t       fAnalog;       //Flaf for anolog or pt-weighted generation
    //
     VertexSmear_t     fVertexSmear; //Vertex Smearing mode
+    Int_t       fTrackIt;    // if 1 Track final state particles 
     TArrayF     fOrigin;     //Origin of event
     TArrayF     fOsigma;     //Sigma of the Origin of event
 
@@ -74,6 +76,8 @@ protected:
     virtual void SetChildWeight(Float_t wgt)  {fChildWeight=wgt;}    
     virtual void SetAnalog(Int_t flag=1) {fAnalog=flag;}       
     virtual void SetVertexSmear(VertexSmear_t smear) {fVertexSmear = smear;}
+    virtual void SetTrackingFlag(Int_t flag=1) {fTrackIt=flag;}
+           
     virtual void SetMC(TGenerator *theMC) 
        {if (!fgMCEvGen) fgMCEvGen =theMC;}
     ClassDef(AliGenerator,1)