// --- ROOT system ---
#include "TBenchmark.h"
+ //#include "TObjectTable.h"
// --- Standard library ---
#include "stdlib.h"
// --- AliRoot header files ---
+#include "AliLog.h"
#include "AliEMCALDigit.h"
#include "AliEMCALGetter.h"
#include "AliEMCALHit.h"
#include "AliEMCALSDigitizer.h"
#include "AliEMCALGeometry.h"
+ //#include "AliMemoryWatcher.h"
ClassImp(AliEMCALSDigitizer)
{
// ctor
fFirstEvent = fLastEvent = 0 ;
- InitParameters() ;
fDefaultInit = kTRUE ;
}
//____________________________________________________________________________
-AliEMCALSDigitizer::AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName):
- TTask("EMCAL"+AliConfig::fgkSDigitizerTaskName, alirunFileName),
+AliEMCALSDigitizer::AliEMCALSDigitizer(const char * alirunFileName,
+ const char * eventFolderName):
+ TTask("EMCAL"+AliConfig::Instance()->GetSDigitizerTaskName(), alirunFileName),
fEventFolderName(eventFolderName)
{
// ctor
AliEMCALSDigitizer::~AliEMCALSDigitizer() {
// dtor
AliEMCALGetter * gime =
- AliEMCALGetter::Instance(GetTitle(), fEventFolderName.Data());
+ // AliEMCALGetter::Instance(GetTitle(), fEventFolderName.Data());
+ AliEMCALGetter::Instance();
gime->EmcalLoader()->CleanSDigitizer();
}
if (geom->GetSampling() == 0.) {
Fatal("InitParameters", "Sampling factor not set !") ;
}
- else
- Info("InitParameters", "Sampling factor set to %f", geom->GetSampling()) ;
+// else
+// Info("InitParameters", "Sampling factor set to %f", geom->GetSampling()) ;
// this threshold corresponds approximately to 100 MeV
fECPrimThreshold = 100E-3;
if(strstr(option,"tim"))
gBenchmark->Start("EMCALSDigitizer");
- AliEMCALGetter * gime = AliEMCALGetter::Instance(GetTitle()) ;
-
+ //AliEMCALGetter * gime = AliEMCALGetter::Instance(GetTitle()) ;
+ AliEMCALGetter * gime = AliEMCALGetter::Instance() ;
+
//switch off reloading of this task while getting event
if (!fInit) { // to prevent overwrite existing file
- Error( "Exec", "Give a version name different from %s", fEventFolderName.Data() ) ;
+ AliError( Form("Give a version name different from %s", fEventFolderName.Data()) ) ;
return ;
}
Int_t nEvents = fLastEvent - fFirstEvent + 1;
Int_t ievent ;
+
+ //AliMemoryWatcher memwatcher;
+
for (ievent = fFirstEvent; ievent <= fLastEvent; ievent++) {
gime->Event(ievent,"H") ;
TTree * treeS = gime->TreeS();
if(strstr(option,"deb"))
PrintSDigits(option) ;
- }
+
+ //gObjectTable->Print() ;
+ //memwatcher.Watch(ievent);
+ }// event loop
Unload();
printf("Exec: took %f seconds for SDigitizing %f seconds per event",
gBenchmark->GetCpuTime("EMCALSDigitizer"), gBenchmark->GetCpuTime("EMCALSDigitizer")/nEvents ) ;
}
+
+ //TFile f("out.root","RECREATE");
+ //memwatcher.WriteToFile();
+ //f.Close();
}