]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFSDigitizer.h
New Global2Local
[u/mrichter/AliRoot.git] / TOF / AliTOFSDigitizer.h
index 143a4152f8af88ccf62924c88dff6e82deb49e73..08f78ffcff191e000b1cc0ed19d19bd86d83fac0 100644 (file)
@@ -12,8 +12,7 @@
 
 #include "TTask.h"
 #include "TString.h"
-#include "AliTOF.h"
-#include "AliDetector.h"
+class AliRunLoader;
 
 class TF1;
 
@@ -21,23 +20,23 @@ class AliTOFSDigitizer: public TTask {
 
 public:
   AliTOFSDigitizer() ;          // ctor
-  AliTOFSDigitizer(char* HeaderFile, char *SdigitsFile = 0, Int_t evNumber1=0, Int_t nEvents=1) ; // par ctor
+  AliTOFSDigitizer(char* HeaderFile, Int_t evNumber1=0, Int_t nEvents=1) ; // par ctor
 
   virtual ~AliTOFSDigitizer() ; // dtor
-  const char *GetSDigitsFile() const {return fSDigitsFile.Data();}  
+
   virtual void  Exec(Option_t *verboseOption, Option_t *allEvents="noAll"); 
-  void SetSDigitsFile(char * file ) ;
+  void SetSDigitsFile(char * /*file*/ ) {;}
+  
   void InitParameters();
   virtual void PrintParameters() const ;
   virtual void  SimulateDetectorResponse(Float_t z0, Float_t x0, Float_t geantTime, Int_t& nActivatedPads, Int_t& nFiredPads, Bool_t* isFired, Int_t* nPlace, Float_t* qInduced, Float_t* tofTime, Float_t& averageTime);
   virtual void Print(Option_t* opt) const ;
-  TClonesArray *SDigits() const {return fSDigits;}
   void  SetFirstEvent(Int_t event1)      {fEvent1=event1;}
   void  SetSecondEvent(Int_t event2)     {fEvent2=event2;}
   Int_t GetFirstEvent()  const {return fEvent1;}
   Int_t GetSecondEvent() const {return fEvent2;}
   Int_t GetNEvents() const {return (fEvent2-fEvent1);}
+  void  SelectSectorAndPlate(Int_t sector, Int_t plate);
 
   // setters and getters for detector simulation
   // it summarizes all it is known about TOF strip 
@@ -106,10 +105,13 @@ public:
 private:
   Int_t   fEvent1;          // lower bound for events to sdigitize
   Int_t   fEvent2;          // upper bound for events to sdigitize
-  TString fSDigitsFile;     // output file 
-  TClonesArray *fSDigits;   //! array of summable digits
   TF1     *ftail;           // pointer to formula for time with tail
   TString fHeadersFile;     // input file
+  AliRunLoader* fRunLoader;  //! Run Loader
+  
+
+  Int_t fSelectedSector;    // sector number for sdigitization
+  Int_t fSelectedPlate ;    // plate  number for sdigitization
 
   // detector response simulation
   // Intrisic MRPC time resolution and pad (edge effect) parameters
@@ -155,7 +157,7 @@ private:
  protected:
 
 
-  ClassDef(AliTOFSDigitizer,1)  // creates TOF SDigits
+  ClassDef(AliTOFSDigitizer,2)  // creates TOF SDigits
 
 };