]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegmentMaker.h
Possibility to reconstruct selected events via SetEventRange()
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.h
1 #ifndef ALIPHOSTRACKSEGMENTMAKER_H
2 #define ALIPHOSTRACKSEGMENTMAKER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 // Algorithm Base class to construct PHOS track segments
10 // Associates EMC and PPSD clusters
11 // Unfolds the EMC cluster   
12 //                  
13 //*-- Author: Dmitri Peressounko (RRC Kurchatov Institute  & SUBATECH)
14
15 // --- ROOT system ---
16 #include "TTask.h"
17 #include "AliConfig.h"
18 class TFile ; 
19
20 // --- Standard library ---
21 //#include <iostream>
22
23 // --- AliRoot header files ---
24
25
26 class AliPHOSClusterizer ;
27 class AliPHOSGeometry ;
28
29 class  AliPHOSTrackSegmentMaker : public TTask {
30
31 public:
32
33   AliPHOSTrackSegmentMaker();
34   AliPHOSTrackSegmentMaker(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;                     
35   AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) : TTask(tsmaker) { ; } 
36   virtual ~ AliPHOSTrackSegmentMaker() ;
37
38   virtual const Int_t GetTrackSegmentsInRun()  const {Warning("GetTrackSegmentsInRun", "Not Defined" ) ; return 0 ; } 
39
40   virtual void    Print()const {Warning("Print", "Not Defined" ) ; }
41   void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
42   void SetEventFolderName(TString name) { fEventFolderName = name ; }
43
44   virtual void WriteTrackSegments() = 0;
45   
46 protected:
47   TString fEventFolderName ;  // event folder name
48   Int_t   fFirstEvent;        // first event to process
49   Int_t   fLastEvent;         // last  event to process
50
51   ClassDef( AliPHOSTrackSegmentMaker,4)  // Algorithm class to make PHOS track segments (Base Class)
52 };
53
54 #endif // ALIPHOSTRACKSEGMENTMAKER_H