]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFT0maker.h
fixing compilation bug
[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
6a4e212e 6/* $Id: AliTOFT0maker.h,v 1.8 2010/01/19 16:32:20 noferini Exp $ */
8f589502 7
8///////////////////////////////////////////////
9// //
10// Manager class for time zero evaluation //
11// with TOF informations //
12// //
13///////////////////////////////////////////////
14
15
16#include "TObject.h"
03bd764d 17
18class TH1F;
19class AliESDEvent;
536031f2 20
5b4ed716 21class AliESDpid;
536031f2 22class AliTOFT0v1;
5b4ed716 23class AliTOFcalib;
536031f2 24
8f589502 25class AliTOFT0maker : public TObject {
536031f2 26public:
27
5b4ed716 28 AliTOFT0maker() ; // default constructor
29 AliTOFT0maker(AliESDpid *externalPID, AliTOFcalib *tofCalib); // overloaded constructor
536031f2 30 virtual ~AliTOFT0maker() ; // dtor
31
03bd764d 32 // return (fCalculated[0]=event time -- fCalculated[1]=sigma event time in ps -- fCalculated[2]=mean event time for each fill -- fCalculated[3]=number of tracks at the TOF level) if you can subtruct the event time; return NULL if there is no event time
5b4ed716 33 Double_t *ComputeT0TOF(AliESDEvent *esd,Double_t t0time=0.,Double_t t0sigma=1000.); // t0time and t0sigma in ps
34 void ApplyT0TOF(AliESDEvent *esd);
35 Float_t GetExpectedSigma(Float_t mom, Float_t tof, Float_t mass);
36 Double_t *GetT0p(Float_t p);
536031f2 37
5b4ed716 38 void SetTimeResolution(Double_t timeresolution){fTimeResolution=timeresolution;};// TOF timeresolution in [ps]
39 Double_t GetTimeResolution() const {return fTimeResolution;} // Get TOF Time Resolution
40 void SetT0FillWidth(Float_t width){fT0width = width;}; // in ps
536031f2 41
03bd764d 42 void LoadChannelMap(char *filename="$ALICE_ROOT/TOF/enableMap.104892.root"); //load the enable channel map
5b4ed716 43 void ApplyMask(AliESDEvent * const esd); // Apply the channel mask
03bd764d 44
45 void SetNoTOFT0(Bool_t status=kTRUE){fNoTOFT0=status;}; // disable the TOF T0 info
5b4ed716 46 void SetMaskOffChannel(Bool_t status=kTRUE){fKmask=status;}; // switch for the map off channel
47
48 Float_t TuneForMC(AliESDEvent *esd); // set enabled channeld, add a smeared t0, add a TOF smearing, return true(smeared) T0 event
49
50
536031f2 51 private:
5b4ed716 52
53 AliTOFT0maker(const AliTOFT0maker &);
54 AliTOFT0maker & operator=(const AliTOFT0maker &);
55
56 void SetTOFResponse();
57
58 AliTOFT0v1 *fT0TOF; // T0-TOF
59 AliESDpid *fPIDesd; // PID esd
60 Bool_t fExternalPIDFlag; // external PID flag
61 AliTOFcalib *fTOFcalib; // TOF calibration
62
63 Double_t fT0pt[10],fT0ptSigma[10]; // T0 and T0sigma in p-bins
536031f2 64
03bd764d 65 Bool_t fNoTOFT0; // swithc to avoid T0-TOF is used
5b4ed716 66
67 Float_t fPtCutMin[10]; // min values for p bins
68 Float_t fPtCutMax[10]; // max values for p bins
69 Double_t fT0cur[2]; // current T0 and T0 sigma
70
03bd764d 71 Double_t fCalculated[8]; // contains the parameters with the event time
536031f2 72 Double_t fTimeResolution; // global time resolution used to calculate T0
03bd764d 73
8f589502 74 Float_t fT0sigma; // T0 resolution
536031f2 75
03bd764d 76 TH1F *fHmapChannel; // histo with the channel map
77 Bool_t fKmask; // switch if you want apply a channel filter
78
5b4ed716 79 Float_t fT0width; // T0 FILL width
03bd764d 80
81 ClassDef(AliTOFT0maker,2); // Calculate the time zero using TOF detector */
536031f2 82
83};
84
5b4ed716 85#endif // ALITOFT0MAKERANA_H