Fixes for coverity
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
CommitLineData
b208c6a3 1#ifndef ALIPMDCLUSTERFINDER_H
2#define ALIPMDCLUSTERFINDER_H
ed228cbc 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
01709453 5//-----------------------------------------------------//
6// //
7// Date : August 05 2003 //
8// This reads the file PMD.digits.root(TreeD), //
9// calls the Clustering algorithm and stores the //
10// clustering output in PMD.RecPoints.root(TreeR) //
11// //
12//-----------------------------------------------------//
13
01709453 14class TClonesArray;
15class TFile;
01709453 16class TTree;
01709453 17
18class AliLoader;
19class AliRunLoader;
5f55af10 20class AliRawReader;
09a06455 21class AliPMDCalibData;
35535af7 22class AliPMDPedestal;
7adbd8e9 23class AliPMDHotData;
963fe679 24class AliPMDNoiseCut;
dc6dc1ff 25class AliPMDddlinfoData;
b9e2f33c 26class AliPMDRecoParam;
01709453 27
7e9508a7 28class AliPMDClusterFinder : public TObject
01709453 29{
01709453 30
31 public:
32
7e9508a7 33 AliPMDClusterFinder();
dfaeee5f 34 AliPMDClusterFinder(AliRunLoader* runLoader);
a48edddd 35 AliPMDClusterFinder(const AliPMDClusterFinder &finder); // copy constructor
36 AliPMDClusterFinder &operator=(const AliPMDClusterFinder &finder); // assignment op
01709453 37 virtual ~AliPMDClusterFinder();
38
706f7618 39 void Digits2RecPoints(TTree *digitsTree, TTree *clustersTree,Int_t gRecoMode);
40 void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree,Int_t gRecoMode);
963fe679 41
1758e4fe 42 void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
920e13db 43 void AddRecHit(Int_t celldataX, Int_t celldataY, Int_t celldataTr,
b0e4d1e1 44 Int_t celldataPid, Float_t celldataAdc);
01709453 45 void ResetCellADC();
46 void ResetRecpoint();
5c5cadd5 47 void ResetRechit();
55601d47 48 void Load();
01b56f5c 49 void LoadClusters();
ebd83c56 50 void UnLoad();
01b56f5c 51 void UnLoadClusters();
b208c6a3 52
dc6dc1ff 53 AliPMDCalibData *GetCalibGain() const;
54 AliPMDPedestal *GetCalibPed() const;
55 AliPMDHotData *GetCalibHot() const;
56 AliPMDNoiseCut *GetNoiseCut() const;
57 AliPMDddlinfoData *GetDdlinfoData() const;
09a06455 58
b208c6a3 59 protected:
60 AliRunLoader *fRunLoader; // Pointer to Run Loader
b208c6a3 61 AliLoader *fPMDLoader; // Pointer to specific detector loader
62
dc6dc1ff 63 AliPMDCalibData *fCalibGain; //! Gain calibration data
64 AliPMDPedestal *fCalibPed; //! Pedestal calibration data
65 AliPMDHotData *fCalibHot; //! Hot data
66 AliPMDNoiseCut *fNoiseCut; //! Noise cut
67 AliPMDddlinfoData *fDdlinfo; //! ddl info data
09a06455 68
b9e2f33c 69 const AliPMDRecoParam *fRecoParam; // reconstruction parameter
70
b208c6a3 71 TTree *fTreeD; // Digits tree
72 TTree *fTreeR; // Reconstructed points
73
74 TClonesArray *fDigits; // List of digits
75 TClonesArray *fRecpoints; // List of reconstructed points
5c5cadd5 76 TClonesArray *fRechits; // List of cells associated with rec points
b208c6a3 77
78 Int_t fNpoint; //
5c5cadd5 79 Int_t fNhit; //
b208c6a3 80 Int_t fDetNo; // Detector Number (0:PRE, 1:CPV)
963fe679 81
b208c6a3 82
5e6a9312 83 static const Int_t fgkRow = 48; // Total number of rows in one unitmodule
84 static const Int_t fgkCol = 96; // Total number of cols in one unitmodule
85 Double_t fCellADC[fgkRow][fgkCol]; // Array containing individual cell ADC
920e13db 86 Int_t fCellTrack[fgkRow][fgkCol]; // Array containing individual cell tr
87 Int_t fCellPid[fgkRow][fgkCol]; // Array containing individual cell pid
01709453 88
706f7618 89 ClassDef(AliPMDClusterFinder,19) // 19 by satyajit
01709453 90};
91#endif
92