AliPHOSSDigitizer::AliPHOSSDigitizer():TTask("","")
{
// ctor
+ fFirstEvent = fLastEvent = 0 ;
InitParameters() ;
fDefaultInit = kTRUE ;
}
{
// ctor
+ fFirstEvent = fLastEvent = 0 ; // runs one event by defaut
InitParameters() ;
Init();
fDefaultInit = kFALSE ;
{
//cpy ctor
+ fFirstEvent = sd.fFirstEvent ;
+ fLastEvent = sd.fLastEvent ;
fA = sd.fA ;
fB = sd.fB ;
fPrimThreshold = sd.fPrimThreshold ;
fB = 10000000.;
fPrimThreshold = 0.01 ;
fSDigitsInRun = 0 ;
- SetEventRange(0,-1) ;
}
//____________________________________________________________________________
if(strstr(option,"tim"))
gBenchmark->Start("PHOSSDigitizer");
- AliPHOSGetter * gime = AliPHOSGetter::Instance() ;
+ AliPHOSGetter * gime = AliPHOSGetter::Instance(GetTitle()) ;
//switch off reloading of this task while getting event
if (!fInit) { // to prevent overwrite existing file
return ;
}
-
if (fLastEvent == -1)
fLastEvent = gime->MaxEvent() - 1 ;
else
- fLastEvent = TMath::Min(fLastEvent,gime->MaxEvent());
+ fLastEvent = TMath::Min(fFirstEvent, gime->MaxEvent()); // only ine event at the time
Int_t nEvents = fLastEvent - fFirstEvent + 1;
Int_t ievent ;
for (ievent = fFirstEvent; ievent <= fLastEvent; ievent++) {
-
gime->Event(ievent,"H") ;
-
TTree * treeS = gime->TreeS();
TClonesArray * hits = gime->Hits() ;
TClonesArray * sdigits = gime->SDigits() ;
digit = dynamic_cast<AliPHOSDigit *>( sdigits->At(index) ) ;
// if(digit->GetNprimary() == 0)
// continue;
- printf("%6d %8d %6.5e %4d %2d :",
+ printf("%6d %8d %6.5e %4d %2d :\n",
digit->GetId(), digit->GetAmp(), digit->GetTime(), digit->GetIndexInList(), digit->GetNprimary()) ;
Int_t iprimary;
for (iprimary=0; iprimary<digit->GetNprimary(); iprimary++) {