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 */
8 //_________________________________________________________________________
9 // Implementation version 1 of algorithm class to construct PHOS track segments
10 // Associates EMC and PPSD clusters
11 // Unfolds the EMC cluster
13 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
15 // --- ROOT system ---
17 // --- Standard library ---
19 // --- AliRoot header files ---
20 #include "AliPHOSTrackSegmentMaker.h"
22 class AliPHOSEmcRecPoint ;
23 class AliPHOSRecPoint ;
26 class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
30 AliPHOSTrackSegmentMakerv1() ;
31 AliPHOSTrackSegmentMakerv1(const char* headerFile,const char* branchTitle = 0) ;
32 AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
38 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
40 virtual char* GetRecPointsBranch (void)const{return (char*)fRecPointsBranchTitle.Data() ;}
41 virtual char* GetTrackSegmentsBranch(void)const{return (char*)fTSBranchTitle.Data() ;}
43 virtual void Exec(Option_t * option) ;
44 void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are
46 void MakeLinks() const; //Evaluates distances(links) between EMC and PPSD
47 void MakePairs() ; //Finds pairs(triplets) with smallest link
48 virtual void Print(Option_t * option) const ;
49 virtual Bool_t ReadRecPoints() ;
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){ fTSBranchTitle = title ; }
53 virtual void WriteTrackSegments() ;
55 AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) {
56 // assignement operator requested by coding convention but not needed
62 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSRecPoint * Ppsd , Bool_t & TooFar )const ; // see R0
64 void PrintTrackSegments(Option_t *option) ;
68 TString fHeaderFileName ; // name of the file which contains gAlice, Tree headers etc.
69 TString fRecPointsBranchTitle ; // name of the file, where RecPoints branchs are stored
70 TString fTSBranchTitle ; // name of the file, where TrackSegment branchs is stored
71 AliPHOSClusterizer * fClusterizer ; // !
72 Int_t fNTrackSegments ; // number of track segments found
73 AliPHOSGeometry * fGeom ; //! pointer to PHOS geometry
74 Int_t fEvent ; // ! event being precessed
75 TObjArray * fEmcRecPoints ; // ! List of EMC Rec Points
76 TObjArray * fCpvRecPoints ; // ! List of CPV/PPSD recPoints
77 TClonesArray * fTrackSegments; // ! list of final track segments
80 Bool_t fIsInitialized ; // kTRUE if track segment maker is initialized
82 Float_t fR0 ; // Maximum distance between a EMC RecPoint and a PPSD RecPoint
84 TClonesArray * fLinkLowArray ; //!
85 TClonesArray * fLinkUpArray ; //!
88 Int_t fEmcFirst; //! Index of first EMC RecPoint belonging to currect PHOS module
90 Int_t fCpvFirst; //! Cpv upper layer
92 Int_t fPpsdFirst; //! Cpv low layer
94 Int_t fModule ; //! number of module being processed
96 ClassDef( AliPHOSTrackSegmentMakerv1,1) // Implementation version 1 of algorithm class to make PHOS track segments
100 #endif // AliPHOSTRACKSEGMENTMAKERV1_H