Implementation of Trigger simulation (Raphael Tieulent)
[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 "AliVZEROCalibData.h"
19#include "AliLog.h"
20#include "AliESDVZERO.h"
21
b14e6eb4 22class AliESDEvent;
b090e6a3 23class AliESDVZEROfriend;
b0d2c2d3 24
25class AliVZEROReconstructor: public AliReconstructor {
26public:
ce7090f5 27 AliVZEROReconstructor();
28 virtual ~AliVZEROReconstructor();
d76c31f4 29 virtual void Init();
35b120ff 30
31 virtual void Reconstruct(AliRawReader* /*rawReader*/,
2e0ee64a 32 TTree* /*clustersTree*/) const {
84dee579 33 AliError("Method not implemented"); return;};
35b120ff 34 virtual void Reconstruct(TTree*, TTree*) const {return;};
35
2e0ee64a 36 virtual void FillESD(TTree* digitsTree, TTree* /*clustersTree*/,
b14e6eb4 37 AliESDEvent* esd) const;
2e0ee64a 38
35b120ff 39 virtual void FillESD(AliRawReader* /*rawReader*/, TTree* /*clustersTree*/,
b14e6eb4 40 AliESDEvent* /*esd*/) const {
84dee579 41 AliError("Method not implemented"); return;};
35b120ff 42
2e0ee64a 43 virtual Bool_t HasDigitConversion() const { return kTRUE; }
44 virtual void ConvertDigits(AliRawReader* rawReader,
45 TTree* digitsTree) const;
84dee579 46
ce7090f5 47 AliCDBStorage *SetStorage(const char* uri);
fe0adf2a 48 void GetCollisionMode();
49
ce7090f5 50 AliVZEROCalibData *GetCalibData() const;
51
35b120ff 52protected:
fe0adf2a 53 AliESDVZERO* fESDVZERO; // ESD output object
54 AliESDEvent* fESD; // ESD object
b090e6a3 55 AliESDVZEROfriend* fESDVZEROfriend; // ESD friend object (complete raw data)
35b120ff 56
57private:
ef314913 58 AliVZEROReconstructor(const AliVZEROReconstructor& reconstructor);
59 AliVZEROReconstructor& operator = (const AliVZEROReconstructor& reconstructor);
60
35b120ff 61 AliVZEROCalibData* fCalibData; //! calibration data
fe0adf2a 62
63 Int_t fCollisionMode; // =0->p-p, =1->A-A
64 Float_t fBeamEnergy; // beam energy
84dee579 65
35b120ff 66 ClassDef(AliVZEROReconstructor, 0) // class for the VZERO reconstruction
b0d2c2d3 67};
68
69#endif