New geometry: SDD, cables and update on V11 (L. Gaudichet)
[u/mrichter/AliRoot.git] / FMD / AliFMDReconstructor.h
CommitLineData
8f1cfb0c 1#ifndef ALIFMDRECONSTRUCTOR_H
2#define ALIFMDRECONSTRUCTOR_H
4347b38f 3//
4// Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
5// reserved.
6//
121a60bd 7// See cxx source for full Copyright notice
4347b38f 8//
121a60bd 9// AliFMDReconstructor.h
4347b38f 10// Task Class for making TreeR for FMD
11//
121a60bd 12//-- Authors: Evgeny Karpechev (INR) and Alla Maevskaia (INR)
4347b38f 13// Latest changes by Christian Holm Christensen <cholm@nbi.dk>
121a60bd 14/*
4347b38f 15 Reconstruct nember of particles in given group of pads for given
16 FMDvolume determine by numberOfVolume ,
17 numberOfMinSector,numberOfMaxSector, numberOfMinRing,
18 numberOfMaxRing Reconstruction method choose dependence on number
19 of empty pads
121a60bd 20 */
21/* $Id$ */
8f1cfb0c 22
42403906 23//____________________________________________________________________
24//
25// Class to do reconstruction of events based on the FMD data. The
26// class will do two kinds of reconstruction, one based on energy
27// deposition, and one using hit patterns.
28//
29
0d0e6995 30// Header guards in the header files speeds up the compilation
31// considerably. Please leave them in.
32#ifndef ALIRECONSTRUCTOR_H
33# include <AliReconstructor.h>
34#endif
e802be3e 35#ifndef ROOT_TObjArray
36# include <TObjArray.h>
0d0e6995 37#endif
e802be3e 38// #ifndef ALIFMDUSHORTMAP_H
39// # include <AliFMDUShortMap.h>
40// #endif
121a60bd 41
4347b38f 42//____________________________________________________________________
43class TClonesArray;
44class AliFMD;
45class AliLoader;
46class AliRunLoader;
47class AliFMDDigit;
48class AliRawReader;
e802be3e 49
50// typedef AliFMDUShortMap AliFMDAdcMap;
121a60bd 51
52
4347b38f 53//____________________________________________________________________
121a60bd 54class AliFMDReconstructor: public AliReconstructor
55{
4347b38f 56public:
57 AliFMDReconstructor();
42403906 58 AliFMDReconstructor(const AliFMDReconstructor& other);
4347b38f 59 virtual ~AliFMDReconstructor() {}
42403906 60 AliFMDReconstructor& operator=(const AliFMDReconstructor& other);
4347b38f 61
62 void SetDeltaEta(Float_t deta=.1) { fDeltaEta = deta; }
63 void SetDeltaPhi(Float_t dphi=360) { fDeltaPhi = dphi; }
64 void SetThreshold(UShort_t t=6) { fThreshold = t; }
e802be3e 65 void SetPedestal(Float_t mean=10, Float_t width=1, Float_t f=3);
4347b38f 66
67 virtual void Reconstruct(AliRunLoader* runLoader) const;
68 virtual void Reconstruct(AliRunLoader* runLoader,
69 AliRawReader* rawReader) const;
70 virtual void FillESD(AliRunLoader* runLoader, AliESD* esd) const;
71
72protected:
73 virtual void ProcessEvent(Int_t event,
e802be3e 74 AliRawReader* rawReader) const;
75 virtual void ProcessDigits(TClonesArray* digits) const;
4347b38f 76 virtual UShort_t SubtractPedestal(AliFMDDigit* digit) const;
e802be3e 77 virtual void ReconstructFromCache() const;
42403906 78
42403906 79 mutable AliRunLoader* fRunLoader; // Run loader
80 mutable AliLoader* fFMDLoader; // FMD specific loader
81 mutable TClonesArray* fParticles; // Array of particles
82 mutable AliFMD* fFMD; // Pointer to FMD manager
83
e802be3e 84 TObjArray fAlgorithms; // Array of algorithms
42403906 85 Float_t fDeltaEta; // Bin size in eta
86 Float_t fDeltaPhi; // Bin size in phi
87 UShort_t fThreshold; // Threshold for Poisson recon.
88 Float_t fPedestal; // Pedestal to subtract
89 Float_t fPedestalWidth; // Width of pedestal
e802be3e 90 Float_t fPedestalFactor;// Number of pedestal widths
42403906 91 mutable Int_t fEmptyStrips; // Number of empty strips
92 mutable Int_t fTotalStrips; // Total number of strips
e802be3e 93 mutable Float_t fCurrentVertex; // Z-coordinate of primary vertex
42403906 94
95 enum {
96 kMaxDetectors = 3, // Maximum number of sub-det.
97 kMaxRings = 2, // Maximum number of rings
98 kMaxSectors = 40, // Maximum number of sectors
99 kMaxStrips = 512 // Maximum number of strips
100 };
101
121a60bd 102 ClassDef(AliFMDReconstructor, 0) // class for the FMD reconstruction
121a60bd 103};
104#endif
4347b38f 105//____________________________________________________________________
106//
0d0e6995 107// Local Variables:
108// mode: C++
109// End:
110//
4347b38f 111// EOF
112//