Merged ITS-working with HEAD. Improved some of the documentation and
[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
d15a28e7 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///////////////////////////////////////////////////
15
16// --- ROOT system ---
17
18// --- Standard library ---
19
20// --- AliRoot header files ---
21
22#include "TObjArray.h"
23#include "AliPHOSClusterizer.h"
24#include "AliPHOSEmcRecPoint.h"
25#include "AliPHOSPpsdRecPoint.h"
26#include "AliPHOSTrackSegmentMaker.h"
9f616d61 27#include "TMinuit.h"
d15a28e7 28
29class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
30
31public:
32
33 AliPHOSTrackSegmentMakerv1() ;
9f616d61 34 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
d15a28e7 35
36 Bool_t FindFit(AliPHOSEmcRecPoint * emcRP, int * MaxAt, Float_t * maxAtEnergy,
37 Int_t NPar, Float_t * FitParametres) ; //Used in UnfoldClusters, calls TMinuit
d15a28e7 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
d15a28e7 41 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSPpsdRecPoint * Ppsd , Bool_t & TooFar ) ; // see R0
42
43 void MakeLinks(TObjArray * EmcRecPoints, TObjArray * PpsdRecPointsUp, TObjArray * PpsdRecPointsLow,
44 TClonesArray * LinkLowArray, TClonesArray *LinkUpArray) ; //Evaluates distances(links) between EMC and PPSD
d15a28e7 45 void MakePairs(TObjArray * EmcRecPoints, TObjArray * PpsdRecPointsUp, TObjArray * PpsdRecPointsLow,
46 TClonesArray * LinkLowArray, TClonesArray * LinkUpArray, TrackSegmentsList * trsl) ;
47 //Finds pairs(triplets) with smallest link
d15a28e7 48 void MakeTrackSegments(DigitsList * DL, RecPointsList * emcl, RecPointsList * ppsdl, TrackSegmentsList * trsl ) ; // does the job
d912c4d7 49 virtual void SetMaxEmcPpsdDistance(Float_t r){ fR0 = r ;}
6727be7e 50 virtual void SetUnfoldFlag() { fUnfoldFlag = kTRUE ; } ;
9f616d61 51 static Double_t ShowerShape(Double_t r) ; // Shape of shower used in unfolding; class member function (not object member function)
d912c4d7 52 void UnfoldClusters(DigitsList * DL, RecPointsList * emcIn, AliPHOSEmcRecPoint * iniEmc, Int_t Nmax,
9f616d61 53 int * maxAt, Float_t * maxAtEnergy, TObjArray * emclist) ; //Unfolds overlaping clusters using TMinuit package
d912c4d7 54 virtual void UnsetUnfoldFlag() { fUnfoldFlag = kFALSE ; }
d15a28e7 55
56private:
57
9f616d61 58 Float_t fDelta ; // parameter used for sorting
9f616d61 59 TMinuit * fMinuit ; // Minuit object needed by cluster unfolding
d912c4d7 60 Float_t fR0 ;
6727be7e 61 Bool_t fUnfoldFlag ;// Directive to unfold or not the clusters in case of multiple maxima
d15a28e7 62
92862013 63 ClassDef( AliPHOSTrackSegmentMakerv1,1) // track segment maker implementation , version 1
d15a28e7 64
65};
66
6ad0bfa0 67#endif // AliPHOSTRACKSEGMENTMAKERV1_H