Read TreeQA only if it already exists
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMakerv1.h
CommitLineData
6ad0bfa0 1#ifndef ALIPHOSTRACKSEGMENTMAKERV1_H
2#define ALIPHOSTRACKSEGMENTMAKERV1_H
d15a28e7 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6ad0bfa0 6/* $Id$ */
7
b2a60966 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)
d15a28e7 14
15// --- ROOT system ---
16
17// --- Standard library ---
18
19// --- AliRoot header files ---
d15a28e7 20#include "AliPHOSTrackSegmentMaker.h"
2731cd1e 21
22class AliPHOSEmcRecPoint ;
23class AliPHOSRecPoint ;
24
d15a28e7 25
26class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
27
28public:
29
30 AliPHOSTrackSegmentMakerv1() ;
7b7c1533 31 AliPHOSTrackSegmentMakerv1(const char* headerFile, const char* name = 0) ;
839ffcb3 32 AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
2731cd1e 35 abort() ;
839ffcb3 36 }
37
9f616d61 38 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
d15a28e7 39
2731cd1e 40 virtual char* GetRecPointsBranch (void)const{return (char*)fRecPointsBranchTitle.Data() ;}
7b7c1533 41 virtual char* GetTrackSegmentsBranch(void)const{return (char*)fTrackSegmentsBranchTitle.Data() ;}
2731cd1e 42
43 virtual void Exec(Option_t * option) ;
44 void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are
45
baef0810 46 void MakeLinks() const; //Evaluates distances(links) between EMC and PPSD
2731cd1e 47 void MakePairs() ; //Finds pairs(triplets) with smallest link
48 virtual void Print(Option_t * option) const ;
2731cd1e 49 virtual void SetMaxEmcPpsdDistance(Float_t r){ fR0 = r ;}
f035f6ce 50 virtual void SetRecPointsBranch(const char * title) { fRecPointsBranchTitle = title ;}
7b7c1533 51 virtual void SetTrackSegmentsBranch(const char * title){ fTrackSegmentsBranchTitle = title ; }
52 virtual const char * Version() const { return "tsm-v1" ; }
d15a28e7 53
2f04ed65 54 AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) {
baef0810 55 // assignement operator requested by coding convention but not needed
2731cd1e 56 abort() ;
839ffcb3 57 return *this ;
58 }
59
7b7c1533 60
d15a28e7 61private:
baef0810 62 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSRecPoint * Ppsd , Bool_t & TooFar )const ; // see R0
2731cd1e 63 void Init() ;
64 void PrintTrackSegments(Option_t *option) ;
7b7c1533 65 virtual Bool_t ReadRecPoints(Int_t event) ;
66 virtual void WriteTrackSegments(Int_t event) ;
2731cd1e 67
68private:
69
70 TString fHeaderFileName ; // name of the file which contains gAlice, Tree headers etc.
71 TString fRecPointsBranchTitle ; // name of the file, where RecPoints branchs are stored
7b7c1533 72 TString fTrackSegmentsBranchTitle ; // name of the file, where TrackSegment branchs is stored
73 Int_t fNTrackSegments ; // number of track segments found
d15a28e7 74
b2a60966 75 Float_t fR0 ; // Maximum distance between a EMC RecPoint and a PPSD RecPoint
2731cd1e 76
77 TClonesArray * fLinkLowArray ; //!
78 TClonesArray * fLinkUpArray ; //!
79
80
81 Int_t fEmcFirst; //! Index of first EMC RecPoint belonging to currect PHOS module
82 Int_t fEmcLast ; //!
83 Int_t fCpvFirst; //! Cpv upper layer
84 Int_t fCpvLast; //!
85 Int_t fPpsdFirst; //! Cpv low layer
86 Int_t fPpsdLast; //!
87 Int_t fModule ; //! number of module being processed
d15a28e7 88
b2a60966 89 ClassDef( AliPHOSTrackSegmentMakerv1,1) // Implementation version 1 of algorithm class to make PHOS track segments
d15a28e7 90
91};
92
6ad0bfa0 93#endif // AliPHOSTRACKSEGMENTMAKERV1_H