]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/extra/AliRsnTOFCorrectionESD.h
Coverity fix + unused method removed.
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / extra / AliRsnTOFCorrectionESD.h
CommitLineData
95eeb3be 1//
2// Class AliRsnCutRange
3//
4// General implementation of cuts which check a value inside a range.
5// This range can be defined by two integers or two doubles.
6// A user-friendly enumeration allows to define what is checked.
7//
8// authors: Martin Vala (martin.vala@cern.ch)
9// Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
10//
11
12#ifndef ALIRSNTOFCORRECTIONESD_H
13#define ALIRSNTOFCORRECTIONESD_H
14
15#include "AliESDpid.h"
16
17class AliTOFT0maker;
18class AliTOFcalib;
19class AliESDEvent;
20
21class AliRsnTOFCorrectionESD : public TObject
22{
23 public:
24
25 AliRsnTOFCorrectionESD(Bool_t isMC, Double_t tofRes = 100.0);
26 AliRsnTOFCorrectionESD(const AliRsnTOFCorrectionESD& copy);
27 AliRsnTOFCorrectionESD& operator=(const AliRsnTOFCorrectionESD& copy);
28 virtual ~AliRsnTOFCorrectionESD() { if (fOwnESDpid) delete fESDpid; }
29
30 AliESDpid* ESDpid() {return fESDpid;}
31 void SetMC(Bool_t yn = kTRUE) {fgTOFtuneMC = yn;}
32 void SetESDpid(AliESDpid *pid) {fESDpid = pid; fOwnESDpid = kFALSE;}
33 void ProcessEvent(AliESDEvent *esd);
34
35 private:
36
37 Bool_t fOwnESDpid; // to know if the object is owned or passed
38 AliESDpid *fESDpid; // PID utility for ESD
39
40 //static Bool_t fgTOFcalibrateESD; //! TOF settings
41 static Bool_t fgTOFcorrectTExp; //! TOF settings
42 static Bool_t fgTOFuseT0; //! TOF settings
43 static Bool_t fgTOFtuneMC; //! TOF settings
44 static Double_t fgTOFresolution; //! TOF settings
45 static AliTOFT0maker *fgTOFmaker; //! TOF time0 computator
46 static AliTOFcalib *fgTOFcalib; //! TOF calibration
47 static Int_t fgLastRun; //! last run number
48
49 ClassDef(AliRsnTOFCorrectionESD, 1)
50};
51
52#endif