]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCSelectorESD.h
Possibility to register data - AliTPCselector*
[u/mrichter/AliRoot.git] / TPC / AliTPCSelectorESD.h
index c8955684d706eb2168bfef5c547a53c1d9cd6cee..70c799cdea4442c0d978b346cf181a62a2e1b83a 100644 (file)
@@ -11,6 +11,7 @@ using namespace std;
 #include <TChain.h>
 #include <TFile.h>
 
+class TString;
 class AliESDEvent; 
 class AliESD;
 class AliESDfriend;
@@ -19,45 +20,47 @@ class TH1I;
  
 class AliTPCSelectorESD : public TSelector {
 public :
-   AliTPCSelectorESD(TTree *tree=0);
-   virtual ~AliTPCSelectorESD() { /*delete fESD; delete fESDfriend;*/ }
-   virtual Int_t   Version() const { return 1; }
-   virtual void    Begin(TTree *tree);
-   virtual void    SlaveBegin(TTree *tree);
-   virtual void    Init(TTree *tree);
-   virtual Bool_t  Notify();
-   virtual Bool_t  Process(Long64_t entry);
+  AliTPCSelectorESD(TTree *tree=0);
+  virtual ~AliTPCSelectorESD() { /*delete fESD; delete fESDfriend;*/ }
+  virtual Int_t   Version() const { return 1; }
+  virtual void    Begin(TTree *tree);
+  virtual void    SlaveBegin(TTree *tree);
+  virtual void    Init(TTree *tree);
+  virtual Bool_t  Notify();
+  virtual Bool_t  Process(Long64_t entry);
   virtual Int_t   ReadEvent(Long64_t entry);
-   virtual Int_t   ProcessIn(Long64_t entry);   
+  virtual Int_t   ProcessIn(Long64_t entry);   
+  virtual void    RegisterData();
 
-   virtual void    SetOption(const char *option) { fOption = option; }
-   virtual void    SetObject(TObject *obj) { fObject = obj; }
-   virtual void    SetInputList(TList *input) { fInput = input; }
-   virtual TList  *GetOutputList() const { return fOutput; }
-   virtual void    SlaveTerminate();
-   virtual void    Terminate();
-   void            CleanESD();
-   void            DumpSysInfo(Int_t entry); // dump system info  
+
+  virtual void    SetOption(const char *option) { fOption = option; }
+  virtual void    SetObject(TObject *obj) { fObject = obj; }
+  virtual void    SetInputList(TList *input);
+  virtual TList  *GetOutputList() const { return fOutput; }
+  virtual void    SlaveTerminate();
+  virtual void    Terminate();
+  void            CleanESD();
+  void            DumpSysInfo(Int_t entry); // dump system info  
    
 protected:
-   TTree          *fChain;        //! pointer to the analyzed TTree or TChain
-   TTree          *fTreeFriend;   //! pointer to friend tree
+  TTree          *fChain;        //! pointer to the analyzed TTree or TChain
+  TTree          *fTreeFriend;   //! pointer to friend tree
   AliESDEvent    *fESDevent;      //! esd event
-   AliESD         *fESD;          //! pointer to ESD
-   AliESDfriend   *fESDfriend;    //! pointer to friend
+  AliESD         *fESD;          //! pointer to ESD
+  AliESDfriend   *fESDfriend;    //! pointer to friend
   //                USER defined variables
-   Int_t           fFileNo;       //! file number
-   TH1I          *fNtracks;       //! number of Tracks
-   TH1I          *fNtracksFriend; //! number of firend Tracks  
-   TH1I          *fNClusters;      //! number of clusters on track
-   //
-   // System info 
-   //
-   fstream        *fSysWatch;       // system watch - Memory and CPU usage 
-   fstream        *fFileWatch;      // file watch   - write the status of the analyzed files
-   Int_t              fDebugLevel;     //debug level
-
-   ClassDef(AliTPCSelectorESD,1);
+  Int_t           fFileNo;       //! file number
+  TH1I          *fNtracks;       //! number of Tracks
+  TH1I          *fNtracksFriend; //! number of firend Tracks  
+  TH1I          *fNClusters;      //! number of clusters on track
+  TString       *fRegPath;       // path to store persistent data 
+  //
+  // System info 
+  //
+  fstream        *fSysWatch;       // system watch - Memory and CPU usage 
+  fstream        *fFileWatch;      // file watch   - write the status of the analyzed files
+  Int_t              fDebugLevel;     //debug level  
+  ClassDef(AliTPCSelectorESD,1);
 };