]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSTrackSegmentMakerv1.h
New Get Index functions (Emc et ppsd for the analysis of reconstructed events
[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
10// Associates EMC and PPSD clusters
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 ---
20
21#include "TObjArray.h"
22#include "AliPHOSClusterizer.h"
23#include "AliPHOSEmcRecPoint.h"
24#include "AliPHOSPpsdRecPoint.h"
25#include "AliPHOSTrackSegmentMaker.h"
9f616d61 26#include "TMinuit.h"
d15a28e7 27
28class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker {
29
30public:
31
32 AliPHOSTrackSegmentMakerv1() ;
9f616d61 33 virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor
d15a28e7 34
35 Bool_t FindFit(AliPHOSEmcRecPoint * emcRP, int * MaxAt, Float_t * maxAtEnergy,
36 Int_t NPar, Float_t * FitParametres) ; //Used in UnfoldClusters, calls TMinuit
d15a28e7 37 void FillOneModule(DigitsList * Dl, RecPointsList * emcIn, TObjArray * emcOut, RecPointsList * ppsdIn,
38 TObjArray * ppsdOutUp, TObjArray * ppsdOutLow, Int_t &PHOSModule, Int_t & emcStopedAt,
39 Int_t & ppsdStopedAt) ; // Unfolds clusters and fills temporary arrais
d15a28e7 40 Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSPpsdRecPoint * Ppsd , Bool_t & TooFar ) ; // see R0
41
42 void MakeLinks(TObjArray * EmcRecPoints, TObjArray * PpsdRecPointsUp, TObjArray * PpsdRecPointsLow,
43 TClonesArray * LinkLowArray, TClonesArray *LinkUpArray) ; //Evaluates distances(links) between EMC and PPSD
d15a28e7 44 void MakePairs(TObjArray * EmcRecPoints, TObjArray * PpsdRecPointsUp, TObjArray * PpsdRecPointsLow,
45 TClonesArray * LinkLowArray, TClonesArray * LinkUpArray, TrackSegmentsList * trsl) ;
46 //Finds pairs(triplets) with smallest link
d15a28e7 47 void MakeTrackSegments(DigitsList * DL, RecPointsList * emcl, RecPointsList * ppsdl, TrackSegmentsList * trsl ) ; // does the job
d912c4d7 48 virtual void SetMaxEmcPpsdDistance(Float_t r){ fR0 = r ;}
6727be7e 49 virtual void SetUnfoldFlag() { fUnfoldFlag = kTRUE ; } ;
9f616d61 50 static Double_t ShowerShape(Double_t r) ; // Shape of shower used in unfolding; class member function (not object member function)
d912c4d7 51 void UnfoldClusters(DigitsList * DL, RecPointsList * emcIn, AliPHOSEmcRecPoint * iniEmc, Int_t Nmax,
9f616d61 52 int * maxAt, Float_t * maxAtEnergy, TObjArray * emclist) ; //Unfolds overlaping clusters using TMinuit package
d912c4d7 53 virtual void UnsetUnfoldFlag() { fUnfoldFlag = kFALSE ; }
d15a28e7 54
55private:
56
b2a60966 57 Float_t fDelta ; // parameter used for sorting
58 TMinuit * fMinuit ; // Minuit object needed by cluster unfolding
59 Float_t fR0 ; // Maximum distance between a EMC RecPoint and a PPSD RecPoint
60 Bool_t fUnfoldFlag ; // Directive to unfold or not the clusters in case of multiple maxima
d15a28e7 61
b2a60966 62 ClassDef( AliPHOSTrackSegmentMakerv1,1) // Implementation version 1 of algorithm class to make PHOS track segments
d15a28e7 63
64};
65
6ad0bfa0 66#endif // AliPHOSTRACKSEGMENTMAKERV1_H