1 #ifndef ALIPHOSTRACKSEGMENTMAKERV1_H
2 #define ALIPHOSTRACKSEGMENTMAKERV1_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////
9 // Track Segment Maker class for PHOS //
10 // Version SUBATECH //
11 // Author Dmitri Peressounko RRC Ki //
12 // comment: finds pairs of clusters EMC+PPSD //
13 // performs unfolding. //
14 ///////////////////////////////////////////////////
16 // --- ROOT system ---
18 // --- Standard library ---
20 // --- AliRoot header files ---
22 #include "TObjArray.h"
23 #include "AliPHOSClusterizer.h"
24 #include "AliPHOSEmcRecPoint.h"
25 #include "AliPHOSPpsdRecPoint.h"
26 #include "AliPHOSTrackSegmentMaker.h"
29 class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
33 AliPHOSTrackSegmentMakerv1() ;
34 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
36 Bool_t FindFit(AliPHOSEmcRecPoint * emcRP, int * MaxAt, Float_t * maxAtEnergy,
37 Int_t NPar, Float_t * FitParametres) ; //Used in UnfoldClusters, calls TMinuit
38 void FillOneModule(DigitsList * Dl, RecPointsList * emcIn, TObjArray * emcOut, RecPointsList * ppsdIn,
39 TObjArray * ppsdOutUp, TObjArray * ppsdOutLow, Int_t &PHOSModule, Int_t & emcStopedAt,
40 Int_t & ppsdStopedAt) ; // Unfolds clusters and fills temporary arrais
41 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSPpsdRecPoint * Ppsd , Bool_t & TooFar ) ; // see R0
43 void MakeLinks(TObjArray * EmcRecPoints, TObjArray * PpsdRecPointsUp, TObjArray * PpsdRecPointsLow,
44 TClonesArray * LinkLowArray, TClonesArray *LinkUpArray) ; //Evaluates distances(links) between EMC and PPSD
45 void MakePairs(TObjArray * EmcRecPoints, TObjArray * PpsdRecPointsUp, TObjArray * PpsdRecPointsLow,
46 TClonesArray * LinkLowArray, TClonesArray * LinkUpArray, TrackSegmentsList * trsl) ;
47 //Finds pairs(triplets) with smallest link
48 void MakeTrackSegments(DigitsList * DL, RecPointsList * emcl, RecPointsList * ppsdl, TrackSegmentsList * trsl ) ; // does the job
49 virtual void SetUnfoldFlag() { fUnfoldFlag = kTRUE ; } ;
50 static Double_t ShowerShape(Double_t r) ; // Shape of shower used in unfolding; class member function (not object member function)
51 void UnfoldClusters(DigitsList * DL, RecPointsList * emcIn, AliPHOSEmcRecPoint * iniEmc, Int_t Nmax,
52 int * maxAt, Float_t * maxAtEnergy, TObjArray * emclist) ; //Unfolds overlaping clusters using TMinuit package
53 virtual void UnSetUnfoldFlag() { fUnfoldFlag = kFALSE ; } ;
57 Float_t fDelta ; // parameter used for sorting
58 Float_t fR0 ; // Maximal distance between EMC and PPSD clusters of one Track Segment in module plane
59 TMinuit * fMinuit ; // Minuit object needed by cluster unfolding
60 Bool_t fUnfoldFlag ;// Directive to unfold or not the clusters in case of multiple maxima
62 ClassDef( AliPHOSTrackSegmentMakerv1,1) // track segment maker implementation , version 1
66 #endif // AliPHOSTRACKSEGMENTMAKERV1_H