]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSClusterFinder.h
Adaption to new fluka common blocks (E. Futo)
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinder.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSCLUSTERFINDER_H
2#define ALIITSCLUSTERFINDER_H
9de0700b 3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
b0f5e3fc 8
9////////////////////////////////////////////////
e8189707 10// ITS Cluster Finder Class //
b0f5e3fc 11////////////////////////////////////////////////
12
e8189707 13#include <TObject.h>
14#include <TClonesArray.h>
15
16class AliITSMap;
17class AliITSresponse;
18class AliITSsegmentation;
19class AliITSRawCluster;
20class AliITS;
8ca6a9a5 21class AliITSdigit;
9355b256 22class AliITSRecPoint;
b0f5e3fc 23
9de0700b 24//----------------------------------------------------------------------
25class AliITSClusterFinder :public TObject{
26 public:
28a570fd 27 AliITSClusterFinder(); // Default constructor
9de0700b 28 AliITSClusterFinder(AliITSsegmentation *seg, AliITSresponse *resp,
28a570fd 29 TClonesArray *digits);// Standard Constructor
30 virtual ~AliITSClusterFinder(); // Destructor
9de0700b 31 AliITSClusterFinder(const AliITSClusterFinder &source); // copy constructor
32 // assignment operator
33 AliITSClusterFinder& operator=(const AliITSClusterFinder &source);
28a570fd 34 virtual void SetResponse(AliITSresponse *response) {// set response
35 fResponse=response;}
9de0700b 36 virtual void SetSegmentation(AliITSsegmentation *segmentation) {
37 // set segmentation
28a570fd 38 fSegmentation=segmentation;}
39 virtual void SetDigits(TClonesArray *ITSdigits) {// set digits
40 fDigits=ITSdigits;fNdigits = fDigits->GetEntriesFast();}
41 virtual AliITSdigit* GetDigit(Int_t i){ // Returns ith digit
42 return (AliITSdigit*) fDigits->UncheckedAt(i);}
43 virtual TClonesArray* Digits(){ // Gets fDigits
44 return fDigits;}
45 virtual Int_t NDigits() const {// Get Number of Digits
46 return fNdigits;}
47 // Standard Getters.
48 virtual AliITSresponse * GetResp(){// Returns fResponse
49 return fResponse;}
50 virtual AliITSsegmentation * GetSeg(){// Returns fSegmentation
51 return fSegmentation;}
52 virtual Int_t GetNRawClusters(){ // returns fNRawClusters
53 return fNRawClusters;}
54 AliITSMap *Map() {// map
55 return fMap;}
56 virtual Int_t GetNperMax(){ // returns fNperMax
57 return fNperMax;}
58 virtual Int_t GetDeclusterFlag(){ // returns fDeclusterFlag
59 return fDeclusterFlag;}
60 virtual Int_t GetClusterSize(){ // returns fClusterSize
61 return fClusterSize;}
62 virtual Int_t GetNPeaks(){ // returns fNPeaks
63 return fNPeaks;}
9de0700b 64 //
65 virtual void AddCluster(Int_t branch, AliITSRawCluster *c);
66 virtual void AddCluster(Int_t branch, AliITSRawCluster *c,
67 AliITSRecPoint &rp);
f8d9a5b8 68 virtual void FindRawClusters(Int_t mod=0); // Finds cluster of digits.
69 // Determins if digit i has a neighbor and if so that neighor index is j.
bf3f2830 70 virtual Bool_t IsNeighbor(TObjArray *digs,Int_t i,Int_t j[]) const;
f8d9a5b8 71 // Given a cluster of digits, creates the nessesary RecPoint. May also
72 // do some peak separation.
73 virtual void CreateRecPoints(TObjArray *cluster,Int_t mod){};
9de0700b 74 virtual void FindCluster(Int_t i, Int_t j, AliITSRawCluster *c) {
75 // find cluster
76 }
77 virtual void Decluster(AliITSRawCluster *cluster) {
78 // Decluster
79 }
80 virtual void SetNperMax(Int_t npermax=3) {
81 // Set max. Number of cells per local cluster
82 fNperMax = npermax;
83 }
84 virtual void SetDeclusterFlag(Int_t flag=1) {
85 // Decluster ?
86 fDeclusterFlag =flag;
87 }
88 virtual void SetClusterSize(Int_t clsize=3) {
89 // Set max. cluster size ; bigger clusters will be rejected
90 fClusterSize = clsize;
91 }
92 virtual void CalibrateCOG() {
93 // Self Calibration of COG
94 }
95 virtual void CorrectCOG(){
96 // correct COG
97 }
bf3f2830 98 virtual Bool_t Centered(AliITSRawCluster *cluster) const {
9de0700b 99 // cluster
100 return kTRUE;
101 }
102 virtual void SplitByLocalMaxima(AliITSRawCluster *cluster) {
103 // split by local maxima
104 }
105 virtual void FillCluster(AliITSRawCluster *cluster, Int_t) {
106 // fiil cluster
107 }
108 virtual void FillCluster(AliITSRawCluster *cluster) {
109 // fill cluster
110 FillCluster(cluster,1);
111 }
112 // set the fitting methods in the derived classes
113 // data members
e8189707 114
bf3f2830 115
9de0700b 116 protected:
bf3f2830 117 TClonesArray *fDigits; //! digits
118 Int_t fNdigits; //! num of digits
9de0700b 119 AliITSresponse *fResponse; //! response
120 AliITSsegmentation *fSegmentation; //!segmentation
121 Int_t fNRawClusters; //! in case we split the cluster
122 // and want to keep track of
123 // the cluster which was splitted
124 AliITSMap *fMap; //! map
125 Int_t fNperMax; //! NperMax
126 Int_t fDeclusterFlag; //! DeclusterFlag
127 Int_t fClusterSize; //! ClusterSize
128 Int_t fNPeaks; //! NPeaks
b0f5e3fc 129
2b00434a 130 ClassDef(AliITSClusterFinder,2) //Class for clustering and reconstruction of space points
9de0700b 131};
b0f5e3fc 132#endif