Skip to content

Commit

Permalink
Removing the tasks from the digitization (Ruben)
Browse files Browse the repository at this point in the history
  • Loading branch information
hristov committed Oct 23, 2011
1 parent 61d4455 commit 2a69928
Show file tree
Hide file tree
Showing 122 changed files with 829 additions and 1,908 deletions.
4 changes: 2 additions & 2 deletions ACORDE/AliACORDE.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ AliLoader* AliACORDE::MakeLoader(const char* topfoldername)
}


AliDigitizer* AliACORDE::CreateDigitizer(AliRunDigitizer* manager) const
AliDigitizer* AliACORDE::CreateDigitizer(AliDigitizationInput* digInput) const
{
//
//
return new AliACORDEDigitizer(manager);
return new AliACORDEDigitizer(digInput);
}

void AliACORDE::Digits2Raw()
Expand Down
2 changes: 1 addition & 1 deletion ACORDE/AliACORDE.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AliACORDE : public AliDetector {

virtual AliLoader* MakeLoader(const char* topfoldername);

AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
AliDigitizer* CreateDigitizer(AliDigitizationInput* digInput) const;

virtual AliTriggerDetector* CreateTriggerDetector() const
{ return new AliACORDETrigger(); }
Expand Down
14 changes: 7 additions & 7 deletions ACORDE/AliACORDEDigitizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "AliACORDEhit.h"
#include "AliRunLoader.h"
#include "AliLoader.h"
#include "AliRunDigitizer.h"
#include "AliDigitizationInput.h"
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
#include "AliCDBEntry.h"
Expand All @@ -56,8 +56,8 @@ AliACORDEDigitizer::AliACORDEDigitizer()
// default constructor
}

AliACORDEDigitizer::AliACORDEDigitizer(AliRunDigitizer* manager)
:AliDigitizer(manager),
AliACORDEDigitizer::AliACORDEDigitizer(AliDigitizationInput* digInput)
:AliDigitizer(digInput),
fCalibData(GetCalibData()),
fNdigits(0),
fDigits(0)
Expand Down Expand Up @@ -89,7 +89,7 @@ Bool_t AliACORDEDigitizer::Init()
return kTRUE;
}

void AliACORDEDigitizer::Exec(Option_t* /*option*/)
void AliACORDEDigitizer::Digitize(Option_t* /*option*/)
{

// Creates digits from hits
Expand Down Expand Up @@ -128,7 +128,7 @@ void AliACORDEDigitizer::Exec(Option_t* /*option*/)

// 2.- get loaders
AliRunLoader* outRunLoader =
AliRunLoader::GetRunLoader(fManager->GetOutputFolderName());
AliRunLoader::GetRunLoader(fDigInput->GetOutputFolderName());
if (!outRunLoader) {
Error("Exec", "Can not get output Run Loader");
return;}
Expand All @@ -146,9 +146,9 @@ void AliACORDEDigitizer::Exec(Option_t* /*option*/)
treeD->Branch("ACORDEdigit", &fDigits, bufsize);

// 3. loop over inputs
for (Int_t iInput = 0; iInput < fManager->GetNinputs(); iInput++) {
for (Int_t iInput = 0; iInput < fDigInput->GetNinputs(); iInput++) {
AliRunLoader* runLoader =
AliRunLoader::GetRunLoader(fManager->GetInputFolderName(iInput));
AliRunLoader::GetRunLoader(fDigInput->GetInputFolderName(iInput));
AliLoader* loader = runLoader->GetLoader("ACORDELoader");
if (!loader) {
Error("Exec", "Can not get ACORDE Loader for input %d", iInput);
Expand Down
6 changes: 3 additions & 3 deletions ACORDE/AliACORDEDigitizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "AliDigitizer.h"

class TClonesArray;
class AliRunDigitizer;
class AliDigitizationInput;
class AliCDBManager;
class AliCDBStorage;
class AliACORDECalibData;
Expand All @@ -26,11 +26,11 @@ class AliACORDEDigitizer: public AliDigitizer {
public:

AliACORDEDigitizer() ; // constructor
AliACORDEDigitizer(AliRunDigitizer *manager);// constructor
AliACORDEDigitizer(AliDigitizationInput* digInput);// constructor
virtual ~AliACORDEDigitizer() ; // destructor

virtual Bool_t Init();
virtual void Exec(Option_t* option=0);
virtual void Digitize(Option_t* option=0);

void AddDigit(Int_t* track, Int_t module, Float_t time);
void AddDigit(Int_t* modul, Float_t time);
Expand Down
2 changes: 1 addition & 1 deletion ACORDE/AliACORDERawReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
ClassImp(AliACORDERawReader)

AliACORDERawReader::AliACORDERawReader (AliRawReader *rawReader, Bool_t isOnline):
TTask("ACORDERawReader","read raw ACORDE data"),
TNamed("ACORDERawReader","read raw ACORDE data"),
fRawReader(rawReader),
fData(NULL),
fPosition(0),
Expand Down
8 changes: 4 additions & 4 deletions ACORDE/AliACORDERawReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
// Mario Rodriguez Cahuantzi <[email protected]>
// Arturo Fernandez Tellez <[email protected]>

#include <TTask.h>
#include <TNamed.h>
#include "AliRawReader.h"


class AliACORDERawReader : public TTask {
class AliACORDERawReader : public TNamed {
public :

AliACORDERawReader(AliRawReader *rawReader,Bool_t isOnline = kFALSE) ;
//AliACORDERawReader(AliRawReader *rawReader,Bool_t isOnline = kTRUE) ;

virtual ~AliACORDERawReader();
AliACORDERawReader(const AliACORDERawReader& o): TTask(o),fRawReader(0),fData(NULL),fPosition(0),fIsOnline(kFALSE),fDataSize(0)
AliACORDERawReader(const AliACORDERawReader& o): TNamed(o),fRawReader(0),fData(NULL),fPosition(0),fIsOnline(kFALSE),fDataSize(0)
{
fWord[0] = fWord[1] = fWord[2] = fWord[3] = 0;
}
Expand Down Expand Up @@ -64,7 +64,7 @@ enum EACORDERawStreamError {
kRawDataSizeErr = 1
};

ClassDef(AliACORDERawReader,2) //class for reading ACORDE Raw data
ClassDef(AliACORDERawReader,3) //class for reading ACORDE Raw data
};

typedef AliACORDERawReader AliSTARTRawReader; // for backward compatibility
Expand Down
12 changes: 3 additions & 9 deletions EMCAL/AliEMCAL.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ AliEMCAL::~AliEMCAL()
//dtor
delete fgRawUtils;
delete fTriggerData;

AliLoader *emcalLoader=0;
if ((emcalLoader = AliRunLoader::Instance()->GetDetectorLoader("EMCAL")))
emcalLoader->CleanSDigitizer();


}

//____________________________________________________________________________
Expand Down Expand Up @@ -196,10 +190,10 @@ void AliEMCAL::InitConstants()
// }

//____________________________________________________________________________
AliDigitizer* AliEMCAL::CreateDigitizer(AliRunDigitizer* manager) const
AliDigitizer* AliEMCAL::CreateDigitizer(AliDigitizationInput* digInput) const
{
//create and return the digitizer
return new AliEMCALDigitizer(manager);
return new AliEMCALDigitizer(digInput);
}

//____________________________________________________________________________
Expand Down Expand Up @@ -314,7 +308,7 @@ void AliEMCAL::Hits2SDigits()
GetGeometry();
AliEMCALSDigitizer emcalDigitizer(fLoader->GetRunLoader()->GetFileName().Data()) ;
emcalDigitizer.SetEventRange(0, -1) ; // do all the events
emcalDigitizer.ExecuteTask() ;
emcalDigitizer.Digitize() ;
}

//______________________________________________________________________
Expand Down
3 changes: 1 addition & 2 deletions EMCAL/AliEMCAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
// --- ROOT system ---

class TString ;
class TTask ;
class TFolder ;
class TRandom ;
class TGraph;
Expand All @@ -57,7 +56,7 @@ class AliEMCAL : public AliDetector {
virtual void AddHit(Int_t, Int_t*, Float_t *) {
Fatal("AddHit(Int_t, Int_t*, Float_t *", "not to be used: use AddHit( Int_t shunt, Int_t primary, Int_t track,Int_t id, Float_t *hits )") ;
}
virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
virtual AliDigitizer* CreateDigitizer(AliDigitizationInput* digInput) const;
virtual void CreateMaterials() ;
virtual void Init() ;
virtual void Digits2Raw();
Expand Down
Loading

0 comments on commit 2a69928

Please sign in to comment.