BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrTofTimeOffsetCalModule


class description - source file - inheritance tree

class BrTofTimeOffsetCalModule : public BrTofCalModule

    private:
virtual void ReadAscii() virtual void SaveAscii() public:
BrTofTimeOffsetCalModule BrTofTimeOffsetCalModule() BrTofTimeOffsetCalModule BrTofTimeOffsetCalModule(const Char_t* name, const Char_t* title) BrTofTimeOffsetCalModule BrTofTimeOffsetCalModule(BrTofTimeOffsetCalModule&) virtual void ~BrTofTimeOffsetCalModule() virtual void Begin() static TClass* Class() virtual void DefineHistograms() virtual void Event(BrEventNode* inNode, BrEventNode* outNode) virtual void Finish() virtual void Init() virtual TClass* IsA() const virtual void Print(Option_t* option = "B") const void SetC1Threshold(Float_t t = 1.) void SetDefaultParameters() void SetFitWindow(Float_t f = 0.5) void SetMaxDY(Float_t dy = 1.) void SetMaxEnergy(Float_t e = 1.5) void SetMomentumCut(Float_t f = 1.8) void SetRequireAdc(Bool_t b = kTRUE) void SetRichMassCut(Float_t cut = 0.05) void SetRichPionMass(Float_t pi = 0.1395679) void SetTrkCuts(Float_t dx = 100000, Float_t dy = 100000, Float_t dz = 100000) void SetTrkOffsets(Float_t x = 0, Float_t y = 0, Float_t z = 0) void SetUseBbVertex(Bool_t b = kTRUE) void SetUseTd1Time(Bool_t b = kFALSE) void SetUseTMrsTime(Bool_t b = kFALSE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Float_t fMaxDy Float_t fMaxEnergy Float_t fTrkOffset[3] Float_t fTrkCut[3] Float_t fMomentumCut Float_t fC1Threshold for Pion selection Float_t fRichPionMass Rich mean pion mass Float_t fRichMassCut cut on pion mass peak (in GeV/c^2) Bool_t fUseBbVertex Bool_t fUseTd1Time Bool_t fUseTMrsTime Bool_t fRequireAdc TH1F** fOffset TH1F* fOffsetSummary TH1F* fSigmaSummary TH1F* fDeltaY TH2F* fDeltaYCut TH1F* fhVtxCutX TH1F* fhVtxCutY TH1F* fhVtxCutZ Float_t fFitWindow

Class Description

 BrTofTimeOffsetCalModule: module for Tof Time correction

 The assumptiom made here is that all particles are pions with beta = 1
 This means that the tof not calibrated will be aligned with
 t = L/c with L path length of the associated track

    t_not_cal = t + off => off = t_not_cal - off

 Select hits matcing tracks (X and Y)
 Cut in energy (from 0.8 to 2 MIP energy) - This cut is stiil on as default
 but can be disabled.
 It really does not make any significant differences and means that all Tof slats can be
 time-offset calibrated assuming the slats have been calibrated.
 Fill histograms with off for each tube and fit with gaussian
 around histo-max +/- fit window
 Cut in momentum is also needed (for MRS you do not want to contaminate with kaon's
 and protons). Such cut would also mean it can be used in FS without Cherenkov cut.

____________________________________________________________________

 $Id: BrTofTimeOffsetCalModule.cxx,v 1.16 2002/08/30 16:16:40 hagel Exp $
 $Author: hagel $
 $Date: 2002/08/30 16:16:40 $
 $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov>
____________________________________________________________________


BrTofTimeOffsetCalModule() : BrTofCalModule()
 Default constructor. DO NOT USE

BrTofTimeOffsetCalModule(const Char_t* name, const Char_t* title) : BrTofCalModule(name, title)
 Named Constructor

void SetDefaultParameters()
 default parameters

void DefineHistograms()
 Define histograms. They are:
 <fill in here>

void Init()
 Job-level initialisation

void Begin()
 Run-level initialisation

void Event(BrEventNode* inNode, BrEventNode* outNode)
 Per event method
 Note the algortimh actually used is different if the t0 comes from either
 BB vertex or from the pp trigger start counters.


void Finish()
-----------------------------------------------------------
 Fit histos with gaus
-----------------------------------------------------------

void SaveAscii()

void ReadAscii()

void Print(Option_t* option) const
 Print module information
 See BrModule::Print for options.
 In addition this module defines the Option:
 <fill in here>



Inline Functions


                            void SetMaxDY(Float_t dy = 1.)
                            void SetMaxEnergy(Float_t e = 1.5)
                            void SetFitWindow(Float_t f = 0.5)
                            void SetMomentumCut(Float_t f = 1.8)
                            void SetC1Threshold(Float_t t = 1.)
                            void SetRichPionMass(Float_t pi = 0.1395679)
                            void SetRichMassCut(Float_t cut = 0.05)
                            void SetTrkCuts(Float_t dx = 100000, Float_t dy = 100000, Float_t dz = 100000)
                            void SetTrkOffsets(Float_t x = 0, Float_t y = 0, Float_t z = 0)
                            void SetUseBbVertex(Bool_t b = kTRUE)
                            void SetUseTd1Time(Bool_t b = kFALSE)
                            void SetUseTMrsTime(Bool_t b = kFALSE)
                            void SetRequireAdc(Bool_t b = kTRUE)
                         TClass* Class()
                         TClass* IsA() const
                            void ShowMembers(TMemberInspector& insp, char* parent)
                            void Streamer(TBuffer& b)
                            void StreamerNVirtual(TBuffer& b)
        BrTofTimeOffsetCalModule BrTofTimeOffsetCalModule(BrTofTimeOffsetCalModule&)
                            void ~BrTofTimeOffsetCalModule()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2002/08/30 16:16:40 $ by hagel $

Validate HTML
Validate CSS