+
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
#include "AliRun.h"
#include "driver.h"
+using std::cerr;
+using std::endl;
+
ClassImp(AliGenHerwig)
fMaxPr(10),
fMaxErrors(1000),
fEnSoft(1),
- fEv1Pr(0),
- fEv2Pr(0),
fFileName(0),
fEtaMinParton(-20.),
fEtaMaxParton(20.),
fMaxPr(10),
fMaxErrors(1000),
fEnSoft(1),
- fEv1Pr(0),
- fEv2Pr(0),
fFileName(0),
fEtaMinParton(-20.),
fEtaMaxParton(20.),
// Destructor
}
-void AliGenHerwig::SetEventListRange(Int_t eventFirst, Int_t eventLast)
-{
- fEv1Pr = eventFirst;
- fEv2Pr = eventLast;
- if ( fEv2Pr == -1 ) fEv2Pr = fEv1Pr;
-}
-
void AliGenHerwig::Init()
{
// Initialisation
fHerwig->SetPTMIN(fPtHardMin);
fHerwig->SetPTMAX(fPtHardMax);
fHerwig->SetPTRMS(fPtRMS);
+ printf("SetMAXPR %15d \n", fMaxPr);
fHerwig->SetMAXPR(fMaxPr);
fHerwig->SetMAXER(fMaxErrors);
fHerwig->SetENSOF(fEnSoft);
if (!CheckParton(parton1, parton2)) continue ;
}
- //
- if (gAlice) {
- if (gAlice->GetEvNumber()>=fEv1Pr &&
- gAlice->GetEvNumber()<=fEv2Pr) fHerwig->PrintEvt();
-
- }
-
-
Int_t nc = 0;
fNprimaries = 0;
origin[1] = fVertex[1] + iparticle->Vy()/10; // [cm]
origin[2] = fVertex[2] + iparticle->Vz()/10; // [cm]
- Float_t tof = kconv*iparticle->T();
+ Float_t tof = fTime + kconv*iparticle->T();
Int_t iparent = (imo > -1) ? newPos[imo] : -1;
Int_t trackIt = (ks == 1) && fTrackIt;
PushTrack(trackIt, iparent, kf,
//
// Event Vertex
fHeader->SetPrimaryVertex(fVertex);
-
+ fHeader->SetInteractionTime(fTime);
//
// Number of primaries
fHeader->SetNProduced(fNprimaries);