]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFT0maker.h
Code cleanup
[u/mrichter/AliRoot.git] / TOF / AliTOFT0maker.h
CommitLineData
8f589502 1#ifndef ALITOFT0MAKER_H
2#define ALITOFT0MAKER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
536031f2 5
8f589502 6/* $Id: $ */
7
8///////////////////////////////////////////////
9// //
10// Manager class for time zero evaluation //
11// with TOF informations //
12// //
13///////////////////////////////////////////////
14
15
16#include "TObject.h"
536031f2 17#include "TString.h"
18#include "AliESDEvent.h"
19#include "AliStack.h"
20
21class AliTOFcalibHisto;
22class AliTOFT0v1;
23
8f589502 24class AliTOFT0maker : public TObject {
536031f2 25public:
26
27 AliTOFT0maker() ;
28 virtual ~AliTOFT0maker() ; // dtor
8f589502 29 AliTOFT0maker(const AliTOFT0maker & t);
30 AliTOFT0maker & operator=(const AliTOFT0maker & t);
536031f2 31
32 void SetESDdata(Bool_t val=kTRUE){fESDswitch=val;};
33
8f589502 34 // return (...[0]=event time -- ...[1]=sigma event time in ps -- mean event time for each fill) if you can subtruct the event time; return NULL if there is no event time
536031f2 35 Double_t *RemakePID(AliESDEvent *esd,Double_t t0time=0.,Double_t t0sigma=1000.); // t0time and t0sigma in ps
36
37 void SetTimeResolution(Double_t timeresolution){fTimeResolution=timeresolution;};// TOF timeresolution in [s] e.g. for 120 ps -> 1.2e-10
8f589502 38 Double_t GetTimeResolution() const {return fTimeResolution;}
536031f2 39
40 private:
8f589502 41 void TakeTimeRawCorrection(AliESDEvent * const esd);
536031f2 42 void RemakeTOFpid(AliESDEvent *esd,Float_t timezero);
8f589502 43 Double_t GetT0Fill(Int_t nrun) const ;
536031f2 44
8f589502 45 AliTOFcalibHisto *fCalib; // TOF calibration object pointer
536031f2 46
47 Bool_t fESDswitch; // if you want take the ESD time instead of the raw + time slewing correction
48
49 Double_t fTimeResolution; // global time resolution used to calculate T0
50
8f589502 51 Float_t fT0sigma; // T0 resolution
536031f2 52
53 ClassDef(AliTOFT0maker,1); // Calculate the time zero using TOF detector */
54
55};
56
8f589502 57#endif // ALITOFT0MAKER_H