Corrected storing of number of participants in header.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Nov 2010 10:29:04 +0000 (10:29 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Nov 2010 10:29:04 +0000 (10:29 +0000)
TDPMjet/AliGenDPMjet.cxx
TDPMjet/TDPMjet.cxx
TDPMjet/TDPMjet.h

index c74e595..58e4d11 100644 (file)
@@ -441,17 +441,12 @@ void AliGenDPMjet::MakeHeader()
     ((AliGenDPMjetEventHeader*) header)->SetNProduced(fDPMjet->GetNumStablePc());
     ((AliGenDPMjetEventHeader*) header)->SetImpactParameter(fDPMjet->GetBImpac());
     ((AliGenDPMjetEventHeader*) header)->SetTotalEnergy(fDPMjet->GetTotEnergy());
-    ((AliGenDPMjetEventHeader*) header)->SetParticipants(fDPMjet->GetfIp(), 
-                                                        fDPMjet->GetfIt());
-    ((AliGenDPMjetEventHeader*) header)->SetSpectators(fDPMjet->GetProjSpectators(), 
-                                                      0,
-                                                      fDPMjet->GetTargSpectators(),
-                                                      0);
-
- ((AliGenDPMjetEventHeader*) header)->SetProcessType(fDPMjet->GetProcessCode());
-// Bookkeeping for kinematic bias
+    ((AliGenDPMjetEventHeader*) header)->SetParticipants(fDPMjet->GetProjParticipants(), 
+                                                        fDPMjet->GetTargParticipants());
+     ((AliGenDPMjetEventHeader*) header)->SetProcessType(fDPMjet->GetProcessCode());
+    // Bookkeeping for kinematic bias
     ((AliGenDPMjetEventHeader*) header)->SetTrials(fTrials);
-// Event Vertex
+    // Event Vertex
     header->SetPrimaryVertex(fVertex);
     gAlice->SetGenEventHeader(header);    
     AddHeader(header);
index 4722279..65bf9f9 100644 (file)
@@ -517,13 +517,14 @@ Int_t TDPMjet::GetTargWounded() const
 {
        return DTGLCP.nwbsam;
 }
+
 //______________________________________________________________________________
-Int_t TDPMjet::GetProjSpectators() const
+Int_t TDPMjet::GetProjParticipants() const
 {
        return DTGLCP.nwtaac;
 }
 //______________________________________________________________________________
-Int_t TDPMjet::GetTargSpectators() const
+Int_t TDPMjet::GetTargParticipants() const
 {
        return DTGLCP.nwtbac;
 }
index 1454672..ac03d9a 100644 (file)
@@ -95,8 +95,8 @@ public:
    virtual Double_t GetTargRadius() const;
    virtual Int_t GetProjWounded() const;
    virtual Int_t GetTargWounded() const;
-   virtual Int_t GetProjSpectators() const;
-   virtual Int_t GetTargSpectators() const;
+   virtual Int_t GetProjParticipants() const;
+   virtual Int_t GetTargParticipants() const;
    virtual Int_t    GetProcessCode() const;
 
    // Phojet access (POEVT1)