]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegmentMakerv1.h
A new (final?) geometry developed
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMakerv1.h
1 #ifndef ALIPHOSTRACKSEGMENTMAKERV1_H
2 #define ALIPHOSTRACKSEGMENTMAKERV1_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 // Implementation version 1 of algorithm class to construct PHOS track segments
10 // Associates EMC and PPSD clusters
11 // Unfolds the EMC cluster   
12 //                  
13 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
14
15 // --- ROOT system ---
16
17 // --- Standard library ---
18
19 // --- AliRoot header files ---
20 #include "AliPHOSTrackSegmentMaker.h"
21
22 class AliPHOSEmcRecPoint ;
23 class AliPHOSRecPoint ;
24
25
26 class  AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
27
28 public:
29
30   AliPHOSTrackSegmentMakerv1() ;                     
31   AliPHOSTrackSegmentMakerv1(const char* headerFile, const char* name = "Default") ;                     
32   AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) {
33     // cpy ctor: no implementation yet
34     // requested by the Coding Convention
35     abort() ; 
36   }
37    
38   virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
39   
40   virtual char*  GetRecPointsBranch    (void)const {return (char*)fRecPointsBranchTitle.Data() ;}
41   virtual char*  GetTrackSegmentsBranch(void)const {return (char*)fTrackSegmentsBranchTitle.Data() ;}
42   virtual const Int_t GetTrackSegmentsInRun()const {return fTrackSegmentsInRun ;}  
43
44   virtual void   Exec(Option_t * option) ;
45           void   FillOneModule() ;       // Finds range in which RecPoints belonging current PHOS module are
46
47           void   MakeLinks() const;      //Evaluates distances(links) between EMC and PPSD
48           void   MakePairs() ;           //Finds pairs(triplets) with smallest link
49   virtual void   Print(Option_t * option) const ;
50   virtual void   SetMaxEmcPpsdDistance(Float_t r){ fR0 = r ;}
51   virtual void   SetRecPointsBranch(const char * title) { fRecPointsBranchTitle = title ;} 
52   virtual void   SetTrackSegmentsBranch(const char * title){ fTrackSegmentsBranchTitle = title ; }
53   virtual const char * Version() const { return "tsm-v1" ; }  
54
55   AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & )  {
56     // assignement operator requested by coding convention but not needed
57     abort() ;
58     return *this ; 
59   }
60
61
62 private:
63   Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSRecPoint * Ppsd , Bool_t & TooFar )const ; // see R0
64   void    Init() ;
65   void    PrintTrackSegments(Option_t *option) ;
66   virtual Bool_t ReadRecPoints(Int_t event) ;
67   virtual void   WriteTrackSegments(Int_t event) ;
68
69 private:  
70
71   TString fHeaderFileName ;          // name of the file which contains gAlice, Tree headers etc.
72   TString fRecPointsBranchTitle ; // name of the file, where RecPoints branchs are stored
73   TString fTrackSegmentsBranchTitle ;        // name of the file, where TrackSegment branchs is stored
74   Int_t fNTrackSegments ; // number of track segments found 
75
76   Float_t fR0 ;        // Maximum distance between a EMC RecPoint and a PPSD RecPoint   
77
78   TClonesArray * fLinkLowArray ;  //!
79   TClonesArray * fLinkUpArray  ;  //!
80
81
82   Int_t fEmcFirst;     //! Index of first EMC RecPoint belonging to currect PHOS module
83   Int_t fEmcLast ;     //!
84   Int_t fCpvFirst;     //! Cpv upper layer     
85   Int_t fCpvLast;      //! 
86   Int_t fPpsdFirst;    //! Cpv low layer     
87   Int_t fPpsdLast;     //!
88   Int_t fModule ;      //! number of module being processed
89   Int_t fTrackSegmentsInRun ; //! Total number of track segments in one run
90
91   ClassDef( AliPHOSTrackSegmentMakerv1,1)  // Implementation version 1 of algorithm class to make PHOS track segments 
92
93 };
94
95 #endif // AliPHOSTRACKSEGMENTMAKERV1_H