]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSTrackSegmentMakerv1.h
cleaning before reading new data added in ReadTreeR
[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() ;
fbf811ec 31 AliPHOSTrackSegmentMakerv1(const char* headerFile, const char* name = "Default", const Bool_t toSplit = kFALSE) ;
839ffcb3 32 AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
f1611b7c 35 Fatal("cpy ctor", "not implemented") ;
36}
839ffcb3 37
9f616d61 38 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
d15a28e7 39
fbf811ec 40 // virtual char* GetRecPointsBranch (void)const{return (char*)fRecPointsBranchTitle.Data() ;}
41 // virtual char* GetTrackSegmentsBranch(void)const{return (char*)fTrackSegmentsBranchTitle.Data() ;}
2b60655b 42 virtual const Int_t GetTrackSegmentsInRun()const {return fTrackSegmentsInRun ;}
2731cd1e 43
44 virtual void Exec(Option_t * option) ;
45 void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are
46
baef0810 47 void MakeLinks() const; //Evaluates distances(links) between EMC and PPSD
2731cd1e 48 void MakePairs() ; //Finds pairs(triplets) with smallest link
49 virtual void Print(Option_t * option) const ;
fbf811ec 50 virtual void SetMaxEmcCPVDistance(Float_t r){ fRcpv = r ;} //Maximal distance (in PHOS plane)
51 //between EMCrp and CPVrp
52 virtual void SetMaxEmcTPCDistance(Float_t r){ fRtpc = r ;} //Maximal distance (in PHOS plane)
53 //between EMCrp and extrapolation of TPC track
54 // virtual void SetRecPointsBranch(const char * title) { fRecPointsBranchTitle = title ;}
55 // virtual void SetTrackSegmentsBranch(const char * title){ fTrackSegmentsBranchTitle = title ; }
7b7c1533 56 virtual const char * Version() const { return "tsm-v1" ; }
d15a28e7 57
2f04ed65 58 AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) {
baef0810 59 // assignement operator requested by coding convention but not needed
f1611b7c 60 Fatal("operator =", "not implemented") ;
839ffcb3 61 return *this ;
62 }
63
7b7c1533 64
d15a28e7 65private:
fc12304f 66
67 const TString BranchName() const ;
baef0810 68 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSRecPoint * Ppsd , Bool_t & TooFar )const ; // see R0
2731cd1e 69 void Init() ;
8d0f3f77 70 void InitParameters() ;
2731cd1e 71 void PrintTrackSegments(Option_t *option) ;
7b7c1533 72 virtual void WriteTrackSegments(Int_t event) ;
2731cd1e 73
74private:
75
92f521a9 76 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
fbf811ec 77 // TString fFrom ; // name of Recpoints
78 // TString fHeaderFileName ; // name of the file which contains gAlice, Tree headers etc.
79 // TString fRecPointsBranchTitle ; // name of the file, where RecPoints branchs are stored
80 // TString fTrackSegmentsBranchTitle ; // name of the file, where TrackSegment branchs is stored
fc12304f 81
7b7c1533 82 Int_t fNTrackSegments ; // number of track segments found
fbf811ec 83 Float_t fRcpv ; // Maximum distance between a EMC RecPoint and a CPV RecPoint
84 Float_t fRtpc ; // Maximum distance between a EMC RecPoint and extrapolation of a TPC track
85
2731cd1e 86 TClonesArray * fLinkUpArray ; //!
2731cd1e 87 Int_t fEmcFirst; //! Index of first EMC RecPoint belonging to currect PHOS module
88 Int_t fEmcLast ; //!
89 Int_t fCpvFirst; //! Cpv upper layer
90 Int_t fCpvLast; //!
2731cd1e 91 Int_t fModule ; //! number of module being processed
2b60655b 92 Int_t fTrackSegmentsInRun ; //! Total number of track segments in one run
d15a28e7 93
fc12304f 94 ClassDef( AliPHOSTrackSegmentMakerv1,2) // Implementation version 1 of algorithm class to make PHOS track segments
d15a28e7 95
96};
97
6ad0bfa0 98#endif // AliPHOSTRACKSEGMENTMAKERV1_H