return;
}
- SetSCScalingFactor();
}
//________________________________________________________________
// between the fluctuation map and the average map
//
- if ( !(fTPCCorrection && fTPCCorrectionAv && fEvent) ) return;
+ if ( !(HasSCList() && fTPCCorrection && fTPCCorrectionAv && fEvent) ) return;
// loop over several z, r and phi bins and find a factor that minimises
// the distortions between the current map and the average map
Bool_t CloseOutputFile();
void FillTree();
void IterateSC(Int_t ipos=-1);
-
+ void SetSCScalingFactor();
+
UInt_t fCurrentTrack; // unique track id within the current event generation
Bool_t fPrereadSCList; // preread all SC files from the SC list
void InitSpaceChargeList();
- void SetSCScalingFactor();
ClassDef(AliToyMCEventGenerator, 1)
for (Int_t ievent=0; ievent<nevents; ++ievent){
printf("Generating event %3d (%.3g)\n",ievent,eventTime);
fEvent = Generate(eventTime);
+ SetSCScalingFactor();
FillTree();
delete fEvent;
fEvent=0x0;
if(equalSpacing) {
printf("Generating event %3d (%.3g)\n",nGeneratedEvents,eventTime);
fEvent = Generate(eventTime);
+ SetSCScalingFactor();
nGeneratedEvents++;
FillTree();
delete fEvent;
for(Int_t iColl = 0; iColl<nCollsInCrossing; iColl++){
printf("Generating event %3d (%.3g)\n",nGeneratedEvents,eventTime);
fEvent = Generate(eventTime);
+ SetSCScalingFactor();
nGeneratedEvents++;
FillTree();
delete fEvent;