Use fVertex instead of fEventVertex
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Jun 2003 10:24:32 +0000 (10:24 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Jun 2003 10:24:32 +0000 (10:24 +0000)
PYTHIA6/AliGenPythia.cxx
PYTHIA6/AliGenPythiaJets.cxx

index 63a20d3..5532a4f 100644 (file)
@@ -85,7 +85,6 @@ AliGenPythia::AliGenPythia(Int_t npart)
     // Produced particles  
     fParticles = new TClonesArray("TParticle",1000);
     fHeader = 0;
-    fEventVertex.Set(3);
     SetEventListRange();
     SetJetPhiRange();
     SetJetEtaRange();
@@ -324,9 +323,9 @@ void AliGenPythia::Generate()
        Float_t distz = iparticle->Vz()/10.;
        if(TMath::Abs(distz)>fCutVertexZ*fOsigma[2]) continue;
 //
-       fEventVertex[0] = iparticle->Vx()/10.+fOrigin.At(0);
-       fEventVertex[1] = iparticle->Vy()/10.+fOrigin.At(1);
-       fEventVertex[2] = iparticle->Vz()/10.+fOrigin.At(2);
+       fVertex[0] = iparticle->Vx()/10.+fOrigin.At(0);
+       fVertex[1] = iparticle->Vy()/10.+fOrigin.At(1);
+       fVertex[2] = iparticle->Vz()/10.+fOrigin.At(2);
 //
        Int_t* pParent   = new Int_t[np];
        Int_t* pSelected = new Int_t[np];
@@ -443,7 +442,7 @@ void AliGenPythia::Generate()
 // Track final state particle
                if (ks == 1) trackIt[i] = 1;
 // Track semi-stable particles
-               if ((ks ==1) || (fDecayer->GetLifetime(kf) > fMaxLifeTime))  trackIt[i] = 1;
+               if ((ks == 1) || (fDecayer->GetLifetime(kf) > fMaxLifeTime))  trackIt[i] = 1;
 // Track particles selected by process if undecayed. 
                if (fForceDecay == kNoDecay) {
                    if (ParentSelected(kf)) trackIt[i] = 1;
@@ -628,7 +627,7 @@ void AliGenPythia::MakeHeader()
     ((AliGenPythiaEventHeader*) fHeader)->SetTrials(fTrials);
 //
 // Event Vertex 
-    fHeader->SetPrimaryVertex(fEventVertex);
+    fHeader->SetPrimaryVertex(fVertex);
 //
 // Jets that have triggered
     if (fProcess == kPyJets)
index 3980c28..1c883ba 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.1  2003/03/15 15:00:48  morsch
+Classed imported from EVGEN.
+
 Revision 1.3  2003/02/26 13:08:22  morsch
 TParticle included.
 
@@ -142,9 +145,9 @@ void AliGenPythiaJets::Generate()
        if(TMath::Abs(distz)>fCutVertexZ*fOsigma[2]) continue;
 //
 //
-       fEventVertex[0] = iparticle->Vx()/10.+fOrigin.At(0);
-       fEventVertex[1] = iparticle->Vy()/10.+fOrigin.At(1);
-       fEventVertex[2] = iparticle->Vz()/10.+fOrigin.At(2);
+       fVertex[0] = iparticle->Vx()/10.+fOrigin.At(0);
+       fVertex[1] = iparticle->Vy()/10.+fOrigin.At(1);
+       fVertex[2] = iparticle->Vz()/10.+fOrigin.At(2);
 
        Int_t* pParent = new Int_t[np];
        for (i=0; i< np; i++) pParent[i] = -1;