]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSDigitizer.h
Transition to NewIO
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigitizer.h
index a48108294315c27b34da85a3fdb134b405b85a89..30c61f70209480dda4d655e47c874702744a6855 100644 (file)
@@ -18,7 +18,6 @@
 #include "TObjString.h"
 class TArrayI ;
 class TClonesArray ; 
-class TFile ; 
 
 // --- Standard library ---
 
@@ -31,10 +30,9 @@ class AliPHOSDigitizer: public AliDigitizer {
 
 public:
   AliPHOSDigitizer() ;          // ctor
-  AliPHOSDigitizer(const char *headerFile, const char * name = "Default", const Bool_t toSplit = kFALSE ) ; 
-  AliPHOSDigitizer(AliRunDigitizer * ard) ;
-  AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) 
-                  {( (AliPHOSDigitizer &)dtizer ).Copy(*this) ;} 
+  AliPHOSDigitizer(const TString alirunFileNameFile, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ; 
+  AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) ;
+  AliPHOSDigitizer(AliRunDigitizer * manager) ;
   virtual ~AliPHOSDigitizer() ;       
 
   void    Digitize(const Int_t event) ;            // Make Digits from SDigits 
@@ -65,12 +63,14 @@ public:
   void   SetNEMCchannels(Int_t n)      { fNADCemc = n; }
   void   SetEMCchannel(Float_t width)  { fADCchanelEmc = width; }
   void   SetEMCpedestal(Float_t ped)   { fADCpedestalEmc = ped ; }  
+  void   SetEventFolderName(TString name) { fEventFolderName = name ; }
   void   SetTimeResolution(Float_t res){ fTimeResolution = res ; }  
 
   //General
   const Int_t   GetDigitsInRun()  const { return fDigitsInRun ;}  
-  void    MixWith(const char* HeaderFile,const char* brname = 0) ; // Add another one file to mix
-  void    Print(Option_t* option)const ;
+  void    MixWith(const TString alirunFileName, 
+                 const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ; // Add another one file to mix
+  void    Print()const ;
  
   AliPHOSDigitizer & operator = (const AliPHOSDigitizer & rvalue)  {
     // assignement operator requested by coding convention but not needed
@@ -80,11 +80,13 @@ public:
 
 private:
 
-  Bool_t  Init() ; 
+  virtual Bool_t Init() ; 
   void    InitParameters() ; 
   void    PrintDigits(Option_t * option) ;
+  void    Unload() ; 
   void    WriteDigits(Int_t evt) ;            // Writes Digits for particular event
   Float_t TimeOfNoise(void) const;            // Calculate time signal generated by noise
+
   //Calculate the time of crossing of the threshold by front edge
   Float_t FrontEdgeTime(TClonesArray * ticks) const ; 
   //Calculate digitized signal with gived ADC parameters
@@ -93,7 +95,12 @@ private:
 private:
 
   Bool_t  fDefaultInit;             //! Says if the task was created by defaut ctor (only parameters are initialized)
-  Int_t fDigitsInRun ;              //! Total number of digits in one run
+  Int_t   fDigitsInRun ;            //! Total number of digits in one run
+  Bool_t  fInit ;                   //! To avoid overwriting existing files
+
+  Int_t   fInput ;                  // Number of files to merge
+  TString * fInputFileNames ;       //[fInput] List of file names to merge 
+  TString * fEventNames ;           //[fInput] List of event names to merge
 
   Int_t   fEmcCrystals ;            // Number of EMC crystalls in the given geometry
 
@@ -116,11 +123,9 @@ private:
   Float_t fADCpedestalCpv ;         // value of the CPV ADC pedestal in CPV units
   Int_t   fNADCcpv ;                // number of channels in CPV ADC
 
-  Bool_t  fToSplit ;                //! Do we work in the split mode
-  TFile * fSplitFile ;              //! file in which Digits will eventually be stored
-
-
-  ClassDef(AliPHOSDigitizer,1)  // description 
+  TString fEventFolderName;         // skowron: name of EFN to read data from in stand alone mode
+  
+  ClassDef(AliPHOSDigitizer,2)  // description 
 
 };