]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSTrackSegmentMakerv1.h
Bug fix in the order of the Ds cuts (Sadhana, Francesco)
[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$ */
702ab87e 7/* History of cvs commits:
8 *
9 * $Log$
9a2cdbdf 10 * Revision 1.51 2007/03/28 19:18:15 kharlov
11 * RecPoints recalculation in TSM removed
12 *
8c1fb709 13 * Revision 1.50 2007/03/06 06:54:48 kharlov
14 * DP:Calculation of cluster properties dep. on vertex added
15 *
e84d3def 16 * Revision 1.49 2007/02/01 13:59:11 hristov
17 * Forward declaration
18 *
354883bc 19 * Revision 1.48 2006/08/28 10:01:56 kharlov
20 * Effective C++ warnings fixed (Timur Pocheptsov)
21 *
3663622c 22 * Revision 1.47 2005/11/17 12:35:27 hristov
23 * Use references instead of objects. Avoid to create objects when they are not really needed
24 *
7b51037f 25 * Revision 1.46 2005/05/28 14:19:05 schutz
26 * Compilation warnings fixed by T.P.
27 *
702ab87e 28 */
6ad0bfa0 29
b2a60966 30//_________________________________________________________________________
31// Implementation version 1 of algorithm class to construct PHOS track segments
194f9939 32// Associates EMC and CPV lusters
b2a60966 33// Unfolds the EMC cluster
34//
35//*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
d15a28e7 36
37// --- ROOT system ---
5fe305fe 38#include <TVector3.h>
d15a28e7 39
40// --- Standard library ---
41
42// --- AliRoot header files ---
d15a28e7 43#include "AliPHOSTrackSegmentMaker.h"
2731cd1e 44
45class AliPHOSEmcRecPoint ;
2bb500e5 46class AliPHOSCpvRecPoint ;
354883bc 47class TClonesArray;
2731cd1e 48
d15a28e7 49class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
50
51public:
52
53 AliPHOSTrackSegmentMakerv1() ;
9a2cdbdf 54 AliPHOSTrackSegmentMakerv1(AliPHOSGeometry *geom);
3663622c 55 AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm);
56
9f616d61 57 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
d15a28e7 58
9a2cdbdf 59 virtual void Clusters2TrackSegments(Option_t *option); // Does the job
2731cd1e 60 void FillOneModule() ; // Finds range in which RecPoints belonging current PHOS module are
61
194f9939 62 void MakeLinks() const; //Evaluates distances(links) between EMC and CPV
2731cd1e 63 void MakePairs() ; //Finds pairs(triplets) with smallest link
702ab87e 64 virtual void Print(const Option_t * = "") const ;
adcca1e6 65 //Switch to "on flyght" mode, without writing to TreeR and file
5d0435dd 66 void SetWriting(Bool_t toWrite = kFALSE){fWrite = toWrite;}
fbf811ec 67 virtual void SetMaxEmcCPVDistance(Float_t r){ fRcpv = r ;} //Maximal distance (in PHOS plane)
68 //between EMCrp and CPVrp
743cb288 69 virtual void SetMaxCPVTPCDistance(Float_t r){ fRtpc = r ;} //Maximal distance
fbf811ec 70 //between EMCrp and extrapolation of TPC track
7b7c1533 71 virtual const char * Version() const { return "tsm-v1" ; }
d15a28e7 72
2f04ed65 73 AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & ) {
baef0810 74 // assignement operator requested by coding convention but not needed
f1611b7c 75 Fatal("operator =", "not implemented") ;
839ffcb3 76 return *this ;
77 }
9a2cdbdf 78
79 virtual TClonesArray * GetTrackSegments() const { return fTrackSegments; }
7b7c1533 80
d15a28e7 81private:
fc12304f 82
e84d3def 83 void GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSCpvRecPoint * Cpv,
84 Int_t & track, Float_t &dx, Float_t &dz ) const ; // see R0
2731cd1e 85 void Init() ;
8d0f3f77 86 void InitParameters() ;
2731cd1e 87 void PrintTrackSegments(Option_t *option) ;
f96711b8 88
2731cd1e 89
90private:
91
92f521a9 92 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
adcca1e6 93 Bool_t fWrite ; // Write Tracks to TreeT
fc12304f 94
7b7c1533 95 Int_t fNTrackSegments ; // number of track segments found
88cb7938 96
fbf811ec 97 Float_t fRcpv ; // Maximum distance between a EMC RecPoint and a CPV RecPoint
98 Float_t fRtpc ; // Maximum distance between a EMC RecPoint and extrapolation of a TPC track
e84d3def 99
100 TVector3 fVtx ; //! Vertex in current position
fbf811ec 101
2731cd1e 102 TClonesArray * fLinkUpArray ; //!
2731cd1e 103 Int_t fEmcFirst; //! Index of first EMC RecPoint belonging to currect PHOS module
104 Int_t fEmcLast ; //!
105 Int_t fCpvFirst; //! Cpv upper layer
106 Int_t fCpvLast; //!
2731cd1e 107 Int_t fModule ; //! number of module being processed
d15a28e7 108
9a2cdbdf 109 TClonesArray * fTrackSegments; // Array with found track-segments
110
111 ClassDef( AliPHOSTrackSegmentMakerv1,4) // Implementation version 1 of algorithm class to make PHOS track segments
d15a28e7 112
88cb7938 113 };
d15a28e7 114
6ad0bfa0 115#endif // AliPHOSTRACKSEGMENTMAKERV1_H