]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliRecoParam.h
New macro to keep track of timing performances of the segmentation methods (Laurent)
[u/mrichter/AliRoot.git] / STEER / AliRecoParam.h
CommitLineData
242b332c 1#ifndef ALIRECOPARAM_H
2#define ALIRECOPARAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// //
7e88424f 8// Steering Class for reconstruction parameters //
6769d914 9// Revision: cvetan.cheshkov@cern.ch 12/06/2008 //
7e88424f 10// Its structure has been revised and it is interfaced to AliRunInfo and //
11// AliEventInfo. //
242b332c 12// //
13///////////////////////////////////////////////////////////////////////////////
14
15
7e88424f 16#include "TObject.h"
17
242b332c 18class AliDetectorRecoParam;
7e88424f 19class AliRunInfo;
6769d914 20class AliEventInfo;
242b332c 21
7e88424f 22class AliRecoParam : public TObject
242b332c 23{
6769d914 24
242b332c 25 public:
26 AliRecoParam();
27 virtual ~AliRecoParam();
242b332c 28 //
7e88424f 29 enum {
30 kNSpecies = 5, // number of event species
a00021a7 31 kNDetectors = 16 // number of detectors (last one is GRP!)
7e88424f 32 };
33 enum EventSpecie_t {kDefault = 1,
34 kLowMult = 2,
35 kHighMult = 4,
36 kCosmic = 8,
37 kCalib = 16};
6769d914 38
57acd2d2 39 static Int_t AConvert(EventSpecie_t es) ;
40 static EventSpecie_t Convert(Int_t es) ;
7e88424f 41 virtual void Print(Option_t *option="") const;
42 const TObjArray *GetDetRecoParamArray(Int_t iDet) const { return fDetRecoParams[iDet]; }
48f5e52d 43 void SetEventSpecie(const AliRunInfo*runInfo, const AliEventInfo &evInfo);
7e88424f 44 EventSpecie_t GetEventSpecie() const { return fEventSpecie; }
57acd2d2 45 static const char* GetEventSpecieName(EventSpecie_t es);
46 static const char* GetEventSpecieName(Int_t esIndex);
48f5e52d 47 const char* PrintEventSpecie() const;
7e88424f 48 const AliDetectorRecoParam *GetDetRecoParam(Int_t iDet) const;
49 void AddDetRecoParam(Int_t iDet, AliDetectorRecoParam* param);
50 Bool_t AddDetRecoParamArray(Int_t iDet, TObjArray* parArray);
2972d4eb 51
54e51010 52 AliRecoParam(const AliRecoParam&);
49ad11d0 53 AliRecoParam& operator=(const AliRecoParam&);
54e51010 54
57acd2d2 55
2972d4eb 56private:
6769d914 57
54e51010 58 Int_t fDetRecoParamsIndex[kNSpecies][kNDetectors]; // index to fDetRecoParams arrays
59 TObjArray *fDetRecoParams[kNDetectors]; // array with reconstruction-parameter objects for all detectors
60 EventSpecie_t fEventSpecie; // current event specie
57acd2d2 61 static TString fkgEventSpecieName[] ; // the names of the event species
62 ClassDef(AliRecoParam, 6)
242b332c 63};
64
65
66#endif