]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/icepack/iceconvert/IceF2k.h
08-mar-2006 NvE Time offset correction in IceF2k extended to allow also a user define...
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / IceF2k.h
index 267ba35440252ac728204cf04f9b441e7e53f384..2311a8b07a199888209873e1ac68740d1f1dd258 100644 (file)
@@ -9,6 +9,8 @@
 #include "TFile.h"
 #include "TTree.h"
 #include "TString.h"
 #include "TFile.h"
 #include "TTree.h"
 #include "TString.h"
+#include "TObjString.h"
+#include "TObjArray.h"
 #include "TDatabasePDG.h"
 
 #include "AliJob.h"
 #include "TDatabasePDG.h"
 
 #include "AliJob.h"
@@ -28,37 +30,45 @@ class IceF2k : public AliJob
   void SetPrintFreq(Int_t f);                             // Set printfrequency to provide info every f events
   void SetSplitLevel(Int_t split);                        // Set split level for the produced ROOT data file
   void SetBufferSize(Int_t bsize);                        // Set buffersize for the produced ROO data file
   void SetPrintFreq(Int_t f);                             // Set printfrequency to provide info every f events
   void SetSplitLevel(Int_t split);                        // Set split level for the produced ROOT data file
   void SetBufferSize(Int_t bsize);                        // Set buffersize for the produced ROO data file
-  void SetInputFile(TString name);                        // Set name of F2K input file
+  void SetInputFile(TString name);                        // Set name of F2K input file (obsolete)
+  void AddInputFile(TString name);                        // Add name of F2K input file to the list
   void SetOutputFile(TFile* ofile);                       // Set output file for the ROOT data structures       
   void SetOutputFile(TString name);                       // Create output file for the ROOT data structures
   void SetOutputFile(TFile* ofile);                       // Set output file for the ROOT data structures       
   void SetOutputFile(TString name);                       // Create output file for the ROOT data structures
+  void SetMcToffset(Float_t toffset);                     // Set user defined time offset for MC data
   TFile* GetOutputFile();                                 // Provide pointer to the ROOT output file
   TDatabasePDG* GetPDG();           // Provide pointer to the PDG database
   AliObjMatrix* GetOMdbase();       // Provide pointer to the OM geometry, calib. etc... database
   AliDevice* GetFitdefs();          // Provide pointer to the Fit definition parameters
   TFile* GetOutputFile();                                 // Provide pointer to the ROOT output file
   TDatabasePDG* GetPDG();           // Provide pointer to the PDG database
   AliObjMatrix* GetOMdbase();       // Provide pointer to the OM geometry, calib. etc... database
   AliDevice* GetFitdefs();          // Provide pointer to the Fit definition parameters
+  AliDevice* GetTrigdefs();         // Provide pointer to the Fit definition parameters
   virtual void Exec(Option_t* opt); // Perform the format conversion
 
  protected :
   virtual void Exec(Option_t* opt); // Perform the format conversion
 
  protected :
-  Int_t fSplit;     // The split level of the produced ROOT data file
-  Int_t fBsize;     // The buffersize of the produced ROOT data file
-  Int_t fMaxevt;    // The maximum number of events to be processed
-  Int_t fPrintfreq; // The event info printing frequency
-  TString fInfile;  // Name of the F2K input file
-  TFile* fOutfile;  // The ROOT output file
+  Int_t fSplit;        // The split level of the produced ROOT data file
+  Int_t fBsize;        // The buffersize of the produced ROOT data file
+  Int_t fMaxevt;       // The maximum number of events to be processed
+  Int_t fPrintfreq;    // The event info printing frequency
+  TObjArray* fInfiles; // Names of all the F2K input files
+  TFile* fOutfile;     // The ROOT output file
 
 
-  TDatabasePDG* fPdg;  // Database with PDG information
-  AliObjMatrix* fOmdb; // Database of all OM devices with their geometry, calib. etc... data
-  AliDevice* fFitdefs; // Fit definitions as indicated in the header of the F2000 input file
+  TDatabasePDG* fPdg;   // Database with PDG information
+  AliObjMatrix* fOmdb;  // Database of all OM devices with their geometry, calib. etc... data
+  AliDevice* fFitdefs;  // Fit definitions as indicated in the header of the F2000 input file
+  AliDevice* fTrigdefs; // Trigger definitions as indicated in the header of the F2000 input file
+  Float_t fToffset;     // Trigger time offset which might have been introduced during filtering
+  Float_t fMctoffset;   // Trigger time offset which might have been introduced during MC generation
 
   void FillOMdbase();   // Fill geometry and calib. parameters of all devices
   void SetFitdefs();    // Set the fit definitions as used in the F2000 input file
 
   void FillOMdbase();   // Fill geometry and calib. parameters of all devices
   void SetFitdefs();    // Set the fit definitions as used in the F2000 input file
+  void SetTrigdefs();   // Set the trigger definitions as used in the F2000 input file
   void PutMcTracks();   // Put the MC tracks from the F2000 file into the IcePack structure
   void PutRecoTracks(); // Put the reconstructed tracks from the F2000 file into the IcePack structure
   void PutHits();       // Put the hits and waveforms from the F2000 file into the IcePack structure
   void PutMcTracks();   // Put the MC tracks from the F2000 file into the IcePack structure
   void PutRecoTracks(); // Put the reconstructed tracks from the F2000 file into the IcePack structure
   void PutHits();       // Put the hits and waveforms from the F2000 file into the IcePack structure
+  void PutTrigger();    // Put the trigger information from the F2000 file into the IcePack structure
 
   mcfile* fInput;  //! Structure holding the input file characteristics
   array   fHeader; //! Structure holding the file header info
   mevt    fEvent;  //! Structure holding the actual event data (hits, tracks, etc...)
 
 
   mcfile* fInput;  //! Structure holding the input file characteristics
   array   fHeader; //! Structure holding the file header info
   mevt    fEvent;  //! Structure holding the actual event data (hits, tracks, etc...)
 
- ClassDef(IceF2k,3) // Job for conversion of F2K data into IceEvent physics event structures.
+ ClassDef(IceF2k,6) // Job for conversion of F2K data into IceEvent physics event structures.
 };
 #endif
 };
 #endif