Missing protection added. (A.Gheata)
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibBase.h
CommitLineData
3ab35fc5 1#ifndef ALITPCCALIBBASE_H
2#define ALITPCCALIBBASE_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////
8////
9////
10
11#include "TNamed.h"
15e48021 12#include "TObjString.h"
3ab35fc5 13class AliTPCseed;
c32da879 14class AliESDEvent;
f7f33dec 15class AliESDtrack;
3ab35fc5 16class TCollection;
ae28e92e 17class TTreeSRedirector;
3ab35fc5 18
19class AliTPCcalibBase:public TNamed {
20public:
06c1ea82 21 AliTPCcalibBase();
8cf12c96 22 AliTPCcalibBase(const char * name, const char * title);
ae28e92e 23 AliTPCcalibBase(const AliTPCcalibBase&calib);
24 AliTPCcalibBase &operator=(const AliTPCcalibBase&calib);
3ab35fc5 25 virtual ~AliTPCcalibBase();
c32da879 26 virtual void Process(AliESDEvent */*event*/){return;}
06c1ea82 27 virtual void Process(AliTPCseed */*track*/){return;}
5822e507 28 virtual void Process(AliESDtrack */*track*/, Int_t /*runNo=-1*/){return;}
06c1ea82 29 virtual Long64_t Merge(TCollection */*li*/){return 0;}
3ab35fc5 30 virtual void Analyze(){return;}
7eaa723e 31 virtual void Terminate();
c51653e8 32 virtual void UpdateEventInfo(AliESDEvent * event);
33 virtual Bool_t AcceptTrigger();
2d22fa36 34 virtual void SetTriggerMask(Int_t accept, Int_t reject, Bool_t rejectLaser){fTriggerMaskAccept=accept;fTriggerMaskReject=reject; fRejectLaser = rejectLaser;}
35
ae28e92e 36 //
37 // debug streamer support
38 TTreeSRedirector *GetDebugStreamer();
39 void SetStreamLevel(Int_t streamLevel){fStreamLevel=streamLevel;}
40 void SetDebugLevel(Int_t level) {fDebugLevel = level;}
41 Int_t GetStreamLevel() const {return fStreamLevel;}
42 Int_t GetDebugLevel() const {return fDebugLevel;}
f7f33dec 43 virtual void RegisterDebugOutput(const char *path);
2d22fa36 44 static Bool_t HasLaser(AliESDEvent *event);
45
ae28e92e 46protected:
47 TTreeSRedirector *fDebugStreamer; //! debug streamer
48 Int_t fStreamLevel; // debug stream level
108953e9 49 Int_t fRun; //! current Run number
50 Int_t fEvent; //! current Event number
51 Int_t fTime; //! current Time
690b016b 52 ULong64_t fTrigger; //! current trigger mask
108953e9 53 Float_t fMagF; //! current magnetic field
c51653e8 54 Int_t fTriggerMaskReject; //trigger mask - non accept trigger
55 Int_t fTriggerMaskAccept; //trigger mask - accept
2d22fa36 56 Bool_t fHasLaser; //flag the laser is overlayed with given event
57 Bool_t fRejectLaser; //flag- reject laser
15e48021 58 TObjString fTriggerClass; // trigger class
ae28e92e 59private:
60 Int_t fDebugLevel; // debug level
108953e9 61
3ab35fc5 62 ClassDef(AliTPCcalibBase,1)
63};
64
65#endif