]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSTrackSegmentMakerv1.h
added the charged track reference in the construction of the links
[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
194f9939 10// Associates EMC and CPV lusters
b2a60966 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 ;
2bb500e5 23class AliPHOSCpvRecPoint ;
2731cd1e 24
d15a28e7 25class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
26
27public:
28
29 AliPHOSTrackSegmentMakerv1() ;
e191bb57 30 AliPHOSTrackSegmentMakerv1(const TString alirunFileNameFile, const TString eventFolderName = AliConfig::GetDefaultEventFolderName());
a8c47ab6 31 AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) : AliPHOSTrackSegmentMaker(tsm) {
839ffcb3 32 // cpy ctor: no implementation yet
33 // requested by the Coding Convention
f1611b7c 34 Fatal("cpy ctor", "not implemented") ;
88cb7938 35 }
9f616d61 36 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
d15a28e7 37
fbf811ec 38 // virtual char* GetRecPointsBranch (void)const{return (char*)fRecPointsBranchTitle.Data() ;}
39 // virtual char* GetTrackSegmentsBranch(void)const{return (char*)fTrackSegmentsBranchTitle.Data() ;}
2b60655b 40 virtual const Int_t GetTrackSegmentsInRun()const {return fTrackSegmentsInRun ;}
2731cd1e 41
eabde521 42 virtual void Exec(Option_t *option); // Does the job
2731cd1e 43 void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are
44
194f9939 45 void MakeLinks() const; //Evaluates distances(links) between EMC and CPV
2731cd1e 46 void MakePairs() ; //Finds pairs(triplets) with smallest link
88cb7938 47 virtual void Print() const ;
fbf811ec 48 virtual void SetMaxEmcCPVDistance(Float_t r){ fRcpv = r ;} //Maximal distance (in PHOS plane)
49 //between EMCrp and CPVrp
50 virtual void SetMaxEmcTPCDistance(Float_t r){ fRtpc = r ;} //Maximal distance (in PHOS plane)
51 //between EMCrp and extrapolation of TPC track
52 // virtual void SetRecPointsBranch(const char * title) { fRecPointsBranchTitle = title ;}
53 // virtual void SetTrackSegmentsBranch(const char * title){ fTrackSegmentsBranchTitle = title ; }
7b7c1533 54 virtual const char * Version() const { return "tsm-v1" ; }
d15a28e7 55
2f04ed65 56 AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) {
baef0810 57 // assignement operator requested by coding convention but not needed
f1611b7c 58 Fatal("operator =", "not implemented") ;
839ffcb3 59 return *this ;
60 }
88cb7938 61 void Unload() ;
7b7c1533 62
d15a28e7 63private:
fc12304f 64
65 const TString BranchName() const ;
194f9939 66 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSCpvRecPoint * Cpv , Int_t & track ) const ; // see R0
bfc17d18 67 TVector3 PropagateToPlane(Double_t *x, Double_t *p, char *det, Int_t module) const;
2731cd1e 68 void Init() ;
8d0f3f77 69 void InitParameters() ;
2731cd1e 70 void PrintTrackSegments(Option_t *option) ;
90cceaf6 71 virtual void WriteTrackSegments() ;
2731cd1e 72
73private:
74
92f521a9 75 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
fc12304f 76
7b7c1533 77 Int_t fNTrackSegments ; // number of track segments found
88cb7938 78
fbf811ec 79 Float_t fRcpv ; // Maximum distance between a EMC RecPoint and a CPV RecPoint
80 Float_t fRtpc ; // Maximum distance between a EMC RecPoint and extrapolation of a TPC track
81
2731cd1e 82 TClonesArray * fLinkUpArray ; //!
2731cd1e 83 Int_t fEmcFirst; //! Index of first EMC RecPoint belonging to currect PHOS module
84 Int_t fEmcLast ; //!
85 Int_t fCpvFirst; //! Cpv upper layer
86 Int_t fCpvLast; //!
2731cd1e 87 Int_t fModule ; //! number of module being processed
2b60655b 88 Int_t fTrackSegmentsInRun ; //! Total number of track segments in one run
d15a28e7 89
88cb7938 90 ClassDef( AliPHOSTrackSegmentMakerv1,3) // Implementation version 1 of algorithm class to make PHOS track segments
d15a28e7 91
88cb7938 92 };
d15a28e7 93
6ad0bfa0 94#endif // AliPHOSTRACKSEGMENTMAKERV1_H