Adding the normalized dE/dx vs P plot
[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;
52a5850f 18class TGraph;
19class TGraphErrors;
20class THnSparse;
3ab35fc5 21
22class AliTPCcalibBase:public TNamed {
23public:
06c1ea82 24 AliTPCcalibBase();
8cf12c96 25 AliTPCcalibBase(const char * name, const char * title);
ae28e92e 26 AliTPCcalibBase(const AliTPCcalibBase&calib);
27 AliTPCcalibBase &operator=(const AliTPCcalibBase&calib);
3ab35fc5 28 virtual ~AliTPCcalibBase();
c32da879 29 virtual void Process(AliESDEvent */*event*/){return;}
06c1ea82 30 virtual void Process(AliTPCseed */*track*/){return;}
5822e507 31 virtual void Process(AliESDtrack */*track*/, Int_t /*runNo=-1*/){return;}
06c1ea82 32 virtual Long64_t Merge(TCollection */*li*/){return 0;}
3ab35fc5 33 virtual void Analyze(){return;}
7eaa723e 34 virtual void Terminate();
c51653e8 35 virtual void UpdateEventInfo(AliESDEvent * event);
36 virtual Bool_t AcceptTrigger();
2d22fa36 37 virtual void SetTriggerMask(Int_t accept, Int_t reject, Bool_t rejectLaser){fTriggerMaskAccept=accept;fTriggerMaskReject=reject; fRejectLaser = rejectLaser;}
38
ae28e92e 39 //
40 // debug streamer support
41 TTreeSRedirector *GetDebugStreamer();
42 void SetStreamLevel(Int_t streamLevel){fStreamLevel=streamLevel;}
43 void SetDebugLevel(Int_t level) {fDebugLevel = level;}
44 Int_t GetStreamLevel() const {return fStreamLevel;}
45 Int_t GetDebugLevel() const {return fDebugLevel;}
f7f33dec 46 virtual void RegisterDebugOutput(const char *path);
2d22fa36 47 static Bool_t HasLaser(AliESDEvent *event);
70b0f0bf 48 static TGraphErrors * FitSlices(THnSparse *h, Int_t axisDim1, Int_t axisDim2, Int_t minEntries, Int_t nmaxBin, Float_t fracLow=0.1, Float_t fracUp=0.9, Bool_t useMedian=kFALSE, TTreeSRedirector *cstream=0, Int_t ival=1);
2d22fa36 49
ae28e92e 50protected:
51 TTreeSRedirector *fDebugStreamer; //! debug streamer
52 Int_t fStreamLevel; // debug stream level
108953e9 53 Int_t fRun; //! current Run number
54 Int_t fEvent; //! current Event number
55 Int_t fTime; //! current Time
690b016b 56 ULong64_t fTrigger; //! current trigger mask
108953e9 57 Float_t fMagF; //! current magnetic field
c51653e8 58 Int_t fTriggerMaskReject; //trigger mask - non accept trigger
59 Int_t fTriggerMaskAccept; //trigger mask - accept
2d22fa36 60 Bool_t fHasLaser; //flag the laser is overlayed with given event
61 Bool_t fRejectLaser; //flag- reject laser
15e48021 62 TObjString fTriggerClass; // trigger class
ae28e92e 63private:
64 Int_t fDebugLevel; // debug level
108953e9 65
3ab35fc5 66 ClassDef(AliTPCcalibBase,1)
67};
68
69#endif