]>
Commit | Line | Data |
---|---|---|
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 --- | |
5fe305fe | 16 | #include <TVector3.h> |
d15a28e7 | 17 | |
18 | // --- Standard library --- | |
19 | ||
20 | // --- AliRoot header files --- | |
d15a28e7 | 21 | #include "AliPHOSTrackSegmentMaker.h" |
2731cd1e | 22 | |
23 | class AliPHOSEmcRecPoint ; | |
2bb500e5 | 24 | class AliPHOSCpvRecPoint ; |
2731cd1e | 25 | |
d15a28e7 | 26 | class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker { |
27 | ||
28 | public: | |
29 | ||
30 | AliPHOSTrackSegmentMakerv1() ; | |
e191bb57 | 31 | AliPHOSTrackSegmentMakerv1(const TString alirunFileNameFile, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()); |
a8c47ab6 | 32 | AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) : AliPHOSTrackSegmentMaker(tsm) { |
839ffcb3 | 33 | // cpy ctor: no implementation yet |
34 | // requested by the Coding Convention | |
f1611b7c | 35 | Fatal("cpy ctor", "not implemented") ; |
88cb7938 | 36 | } |
9f616d61 | 37 | virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor |
d15a28e7 | 38 | |
fbf811ec | 39 | // virtual char* GetRecPointsBranch (void)const{return (char*)fRecPointsBranchTitle.Data() ;} |
40 | // virtual char* GetTrackSegmentsBranch(void)const{return (char*)fTrackSegmentsBranchTitle.Data() ;} | |
17323043 | 41 | virtual Int_t GetTrackSegmentsInRun()const {return fTrackSegmentsInRun ;} |
2731cd1e | 42 | |
eabde521 | 43 | virtual void Exec(Option_t *option); // Does the job |
2731cd1e | 44 | void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are |
45 | ||
194f9939 | 46 | void MakeLinks() const; //Evaluates distances(links) between EMC and CPV |
2731cd1e | 47 | void MakePairs() ; //Finds pairs(triplets) with smallest link |
88cb7938 | 48 | virtual void Print() const ; |
adcca1e6 | 49 | //Switch to "on flyght" mode, without writing to TreeR and file |
5d0435dd | 50 | void SetWriting(Bool_t toWrite = kFALSE){fWrite = toWrite;} |
fbf811ec | 51 | virtual void SetMaxEmcCPVDistance(Float_t r){ fRcpv = r ;} //Maximal distance (in PHOS plane) |
52 | //between EMCrp and CPVrp | |
743cb288 | 53 | virtual void SetMaxCPVTPCDistance(Float_t r){ fRtpc = r ;} //Maximal distance |
fbf811ec | 54 | //between EMCrp and extrapolation of TPC track |
55 | // virtual void SetRecPointsBranch(const char * title) { fRecPointsBranchTitle = title ;} | |
56 | // virtual void SetTrackSegmentsBranch(const char * title){ fTrackSegmentsBranchTitle = title ; } | |
7b7c1533 | 57 | virtual const char * Version() const { return "tsm-v1" ; } |
d15a28e7 | 58 | |
2f04ed65 | 59 | AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) { |
baef0810 | 60 | // assignement operator requested by coding convention but not needed |
f1611b7c | 61 | Fatal("operator =", "not implemented") ; |
839ffcb3 | 62 | return *this ; |
63 | } | |
88cb7938 | 64 | void Unload() ; |
7b7c1533 | 65 | |
d15a28e7 | 66 | private: |
fc12304f | 67 | |
68 | const TString BranchName() const ; | |
194f9939 | 69 | Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSCpvRecPoint * Cpv , Int_t & track ) const ; // see R0 |
d3d4a92f | 70 | TVector3 PropagateToPlane(Double_t *x, Double_t *p, const char *det, Int_t module) const; |
2731cd1e | 71 | void Init() ; |
8d0f3f77 | 72 | void InitParameters() ; |
2731cd1e | 73 | void PrintTrackSegments(Option_t *option) ; |
90cceaf6 | 74 | virtual void WriteTrackSegments() ; |
2731cd1e | 75 | |
76 | private: | |
77 | ||
92f521a9 | 78 | Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized) |
adcca1e6 | 79 | Bool_t fWrite ; // Write Tracks to TreeT |
fc12304f | 80 | |
7b7c1533 | 81 | Int_t fNTrackSegments ; // number of track segments found |
88cb7938 | 82 | |
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 | |
88cb7938 | 94 | ClassDef( AliPHOSTrackSegmentMakerv1,3) // Implementation version 1 of algorithm class to make PHOS track segments |
d15a28e7 | 95 | |
88cb7938 | 96 | }; |
d15a28e7 | 97 | |
6ad0bfa0 | 98 | #endif // AliPHOSTRACKSEGMENTMAKERV1_H |