ROOT logo
AliRoot » TOF » AliTOFT0maker

class AliTOFT0maker: public TObject


This class contains the basic functions for the time zero
evaluation with TOF detector informations.
Use case in an analysis task:

Create the object in the task constructor (fTOFmaker is a private var)
AliESDpid *extPID=new AliESDpid();
fTOFmaker = new AliTOFT0maker(extPID);
fTOFmaker->SetTimeResolution(100.0); // if you want set the TOF res
115 ps is the TOF default resolution value

Use the RemakePID method in the task::Exec
Double_t* calcolot0;
calcolot0=fTOFmaker->RemakePID(fESD);
calcolot0[0] = calculated event time
calcolot0[1] = event time time resolution
calcolot0[2] = average event time for the current fill
calcolot0[3] = tracks at TOF
calcolot0[4] = calculated event time (only TOF)
calcolot0[5] = event time time resolution (only TOF)
calcolot0[6] = sigma t0 fill
calcolot0[7] = tracks at TOF really used in tht algorithm

Let consider that:
- the PIF is automatically recalculated with the event time subtrction


Function Members (Methods)

public:
AliTOFT0maker()
AliTOFT0maker(AliESDpid* externalPID, AliTOFcalib* tofCalib = NULL)
virtual~AliTOFT0maker()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
voidApplyMask(AliESDEvent *const esd)
voidApplyT0TOF(AliESDEvent* esd)
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
Double_t*ComputeT0TOF(AliESDEvent* esd, Double_t t0time = 0., Double_t t0sigma = 1000.)
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Float_tGetExpectedSigma(Float_t mom, Float_t tof, Float_t mass)
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Double_t*GetT0p(Float_t p)
Float_tGetT0spread() const
Double_tGetTimeResolution() const
virtual const char*TObject::GetTitle() const
Int_tGetTOFT0algorithm() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
voidLoadChannelMap(const char* filename = "$ALICE_ROOT/TOF/enableMap.104892.root")
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetMaskOffChannel(Bool_t status = kTRUE)
voidSetNoTOFT0(Bool_t status = kTRUE)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetT0fill(Float_t t0fill)
voidSetT0FillWidth(Float_t width)
voidSetT0spread(Float_t t0spread)
voidSetTimeResolution(Double_t timeresolution)
voidSetTOFT0algorithm(Int_t flag = 1)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Float_tTuneForMC(AliESDEvent* esd)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
voidWriteInESD(AliESDEvent* esd)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

private:
Double_tfCalculated[10]contains the parameters with the event time
Bool_tfExternalPIDFlagexternal PID flag
TH1F*fHmapChannelhisto with the channel map
Bool_tfKmaskswitch if you want apply a channel filter
Int_tfNmomBins
Bool_tfNoTOFT0switch to avoid T0-TOF is used
AliESDpid*fPIDesdPID esd
AliTOFT0v1*fT0TOFT0-TOF
Double_tfT0cur[2]current T0 and T0 sigma
Float_tfT0fillExtt0spread if set
Float_tfT0sigmaT0 resolution
Float_tfT0spreadExt
Float_tfT0widthT0 FILL width
Int_tfTOFT0algorithmselect algorithm (1 default, 2 speed up)
AliTOFcalib*fTOFcalibTOF calibration
Double_tfTimeResolutionglobal time resolution used to calculate T0

Class Charts

Inheritance Chart:
TObject
AliTOFT0maker

Function documentation

AliTOFT0maker()
 ctr
AliTOFT0maker(AliESDpid* externalPID, AliTOFcalib* tofCalib = NULL)
 ctr
~AliTOFT0maker()
 dtor
Double_t* ComputeT0TOF(AliESDEvent* esd, Double_t t0time = 0., Double_t t0sigma = 1000.)
 Remake TOF PID probabilities

Double_t * GetT0p(Float_t p)
void SetTOFResponse()
Float_t GetExpectedSigma(Float_t mom, Float_t tof, Float_t mass)
void ApplyT0TOF(AliESDEvent* esd)
 Recalculate TOF PID probabilities

void LoadChannelMap(const char* filename = "$ALICE_ROOT/TOF/enableMap.104892.root")
 Load the histo with the channel off map
void ApplyMask(AliESDEvent *const esd)
 Switch off the disable channel
TuneForMC(AliESDEvent* esd)
 tune for MC data

void WriteInESD(AliESDEvent* esd)
 Write t0Gen, t0ResGen, nt0;
       t0resESD[0:nt0], it0ESD[0:nt0]
 in the AliESDEvent

AliTOFT0maker()
void SetTimeResolution(Double_t timeresolution)
{fTimeResolution=timeresolution;}
Double_t GetTimeResolution() const
{return fTimeResolution;}
void SetT0FillWidth(Float_t width)
{if(width > 50) fT0width = width; else fT0width=150;}
void SetNoTOFT0(Bool_t status = kTRUE)
{fNoTOFT0=status;}
void SetMaskOffChannel(Bool_t status = kTRUE)
{fKmask=status;}
void SetT0spread(Float_t t0spread)
{fT0spreadExt=t0spread;}
Float_t GetT0spread() const
{return fT0spreadExt;}
void SetT0fill(Float_t t0fill)
{fT0fillExt=t0fill;}
void SetTOFT0algorithm(Int_t flag = 1)
Int_t GetTOFT0algorithm() const
{return fTOFT0algorithm;}
AliTOFT0maker & operator=(const AliTOFT0maker& )