-Improved track matcher algorithm by adding track rotation before propagation
[u/mrichter/AliRoot.git] / VZERO / AliVZEROReconstructor.h
CommitLineData
b0d2c2d3 1#ifndef ALIVZERORECONSTRUCTOR_H
2#define ALIVZERORECONSTRUCTOR_H
35b120ff 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.*/
4/* See cxx source for full Copyright notice */
5/* $Id$ */
b0d2c2d3 6
35b120ff 7///////////////////////////////////////////////////////////////////////////
8/// //
9/// class for VZERO reconstruction //
10/// //
11///////////////////////////////////////////////////////////////////////////
b0d2c2d3 12
13#include "AliReconstructor.h"
ce7090f5 14#include "AliCDBManager.h"
15#include "AliCDBStorage.h"
ce7090f5 16#include "AliCDBEntry.h"
b0d2c2d3 17
35b120ff 18#include "AliLog.h"
19#include "AliESDVZERO.h"
75b6bc77 20#include "AliVZERORecoParam.h"
35b120ff 21
e58b4e66 22class AliVZEROCalibData;
b14e6eb4 23class AliESDEvent;
b090e6a3 24class AliESDVZEROfriend;
b0d2c2d3 25
26class AliVZEROReconstructor: public AliReconstructor {
27public:
ce7090f5 28 AliVZEROReconstructor();
29 virtual ~AliVZEROReconstructor();
d76c31f4 30 virtual void Init();
35b120ff 31
32 virtual void Reconstruct(AliRawReader* /*rawReader*/,
2e0ee64a 33 TTree* /*clustersTree*/) const {
84dee579 34 AliError("Method not implemented"); return;};
35b120ff 35 virtual void Reconstruct(TTree*, TTree*) const {return;};
36
2e0ee64a 37 virtual void FillESD(TTree* digitsTree, TTree* /*clustersTree*/,
b14e6eb4 38 AliESDEvent* esd) const;
2e0ee64a 39
35b120ff 40 virtual void FillESD(AliRawReader* /*rawReader*/, TTree* /*clustersTree*/,
b14e6eb4 41 AliESDEvent* /*esd*/) const {
84dee579 42 AliError("Method not implemented"); return;};
35b120ff 43
2e0ee64a 44 virtual Bool_t HasDigitConversion() const { return kTRUE; }
45 virtual void ConvertDigits(AliRawReader* rawReader,
46 TTree* digitsTree) const;
75b6bc77 47
48 static const AliVZERORecoParam* GetRecoParam() { return dynamic_cast<const AliVZERORecoParam*>(AliReconstructor::GetRecoParam(12)); }
84dee579 49
ce7090f5 50 AliCDBStorage *SetStorage(const char* uri);
fe0adf2a 51 void GetCollisionMode();
52
ce7090f5 53 AliVZEROCalibData *GetCalibData() const;
54
7495d2be 55 enum {kInvalidADC = -1024,
56 kInvalidTime = -1};
57
35b120ff 58protected:
fe0adf2a 59 AliESDVZERO* fESDVZERO; // ESD output object
60 AliESDEvent* fESD; // ESD object
b090e6a3 61 AliESDVZEROfriend* fESDVZEROfriend; // ESD friend object (complete raw data)
35b120ff 62
63private:
e58b4e66 64 AliVZEROReconstructor(const AliVZEROReconstructor& reconstructor);
65 AliVZEROReconstructor& operator = (const AliVZEROReconstructor& reconstructor);
ef314913 66
35b120ff 67 AliVZEROCalibData* fCalibData; //! calibration data
fe0adf2a 68
69 Int_t fCollisionMode; // =0->p-p, =1->A-A
70 Float_t fBeamEnergy; // beam energy
dbf24214 71
72 mutable TClonesArray *fDigitsArray; // clones-array for ConvertDigits() and FillESD()
73
d5deaaa5 74 ClassDef(AliVZEROReconstructor, 1) // class for the VZERO reconstruction
b0d2c2d3 75};
76
77#endif