#include "AliRunLoader.h"
#include "AliLoader.h"
#include "AliGRPObject.h"
-#include "AliRunDigitizer.h"
+#include "AliDigitizationInput.h"
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
#include "AliCDBEntry.h"
}
//____________________________________________________________________________
- AliVZERODigitizer::AliVZERODigitizer(AliRunDigitizer* manager)
- :AliDigitizer(manager),
+ AliVZERODigitizer::AliVZERODigitizer(AliDigitizationInput* digInput)
+ :AliDigitizer(digInput),
fCalibData(GetCalibData()),
fPhotoCathodeEfficiency(0.18),
fNdigits(0),
}
//____________________________________________________________________________
-void AliVZERODigitizer::Exec(Option_t* /*option*/)
+void AliVZERODigitizer::Digitize(Option_t* /*option*/)
{
// Creates digits from hits
fNdigits = 0;
- if (fVZERO && !fManager) {
+ if (fVZERO && !fDigInput) {
AliLoader *loader = fVZERO->GetLoader();
if (!loader) {
AliError("Can not get VZERO Loader via AliVZERO object!");
}
}
}
- else if (fManager) {
+ else if (fDigInput) {
ReadSDigits();
DigitizeSDigits();
- AliRunLoader *currentLoader = AliRunLoader::GetRunLoader(fManager->GetOutputFolderName());
+ AliRunLoader *currentLoader = AliRunLoader::GetRunLoader(fDigInput->GetOutputFolderName());
AliLoader *loader = currentLoader->GetLoader("VZEROLoader");
if (!loader) {
AliError("Cannot get VZERO Loader via RunDigitizer!");
}
// Loop over input files
- Int_t nFiles= fManager->GetNinputs();
+ Int_t nFiles= fDigInput->GetNinputs();
for (Int_t inputFile = 0; inputFile < nFiles; inputFile++) {
// Get the current loader
AliRunLoader* currentLoader =
- AliRunLoader::GetRunLoader(fManager->GetInputFolderName(inputFile));
+ AliRunLoader::GetRunLoader(fDigInput->GetInputFolderName(inputFile));
AliLoader *loader = currentLoader->GetLoader("VZEROLoader");
loader->LoadSDigits("READ");
// Get the tree of summable digits
TTree* sdigitsTree = loader->TreeS();
if (!sdigitsTree) {
- AliError("No sdigit tree from manager");
+ AliError("No sdigit tree from digInput");
continue;
}