]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/html/AliPHOSTrackSegmentMakerv1.h
Calculation of number of participants added.
[u/mrichter/AliRoot.git] / PHOS / html / AliPHOSTrackSegmentMakerv1.h
CommitLineData
aa7c9120 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
22class AliPHOSEmcRecPoint ;
23class AliPHOSRecPoint ;
24
25
26class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
27
28public:
29
30 AliPHOSTrackSegmentMakerv1() ;
31 AliPHOSTrackSegmentMakerv1(const char* HeaderFile,const char* branchFile = 0) ;
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*)fRecPointsBranchFileName.Data() ;}
41 virtual char* GetTrackSegmentsBranch(void)const{return (char*)fTSBranchFileName.Data() ;}
42
43 virtual void Exec(Option_t * option) ;
44 void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are
45
46 void MakeLinks() ; //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 * file) ;
52 virtual void SetTrackSegmentsBranch(const char * file) ;
53 virtual void WriteTrackSegments() ;
54
55 AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) {
56 // assignement operator requested by coding convention
57 // but not needed
58 abort() ;
59 return *this ;
60 }
61
62private:
63 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSRecPoint * Ppsd , Bool_t & TooFar ) ; // see R0
64 void Init() ;
65 void PrintTrackSegments(Option_t *option) ;
66
67private:
68
69 TString fHeaderFileName ; // name of the file which contains gAlice, Tree headers etc.
70 TString fRecPointsBranchFileName ; // name of the file, where RecPoints branchs are stored
71 TString fTSBranchFileName ; // name of the file, where TrackSegment branchs is stored
72 AliPHOSClusterizer * fClusterizer ; // !
73 Int_t fNTrackSegments ; // number of track segments found
74 AliPHOSGeometry * fGeom ; //! pointer to PHOS geometry
75 Int_t fEvent ; // ! event being precessed
76 TObjArray * fEmcRecPoints ; // ! List of EMC Rec Points
77 TObjArray * fCpvRecPoints ; // ! List of CPV/PPSD recPoints
78 TClonesArray * fTrackSegments; // ! list of final track segments
79
80
81 Bool_t fIsInitialized ; //
82
83 Float_t fR0 ; // Maximum distance between a EMC RecPoint and a PPSD RecPoint
84
85 TClonesArray * fLinkLowArray ; //!
86 TClonesArray * fLinkUpArray ; //!
87
88
89 Int_t fEmcFirst; //! Index of first EMC RecPoint belonging to currect PHOS module
90 Int_t fEmcLast ; //!
91 Int_t fCpvFirst; //! Cpv upper layer
92 Int_t fCpvLast; //!
93 Int_t fPpsdFirst; //! Cpv low layer
94 Int_t fPpsdLast; //!
95 Int_t fModule ; //! number of module being processed
96
97 ClassDef( AliPHOSTrackSegmentMakerv1,1) // Implementation version 1 of algorithm class to make PHOS track segments
98
99};
100
101#endif // AliPHOSTRACKSEGMENTMAKERV1_H