BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrBfsTofMatchingModule


class description - source file - inheritance tree

class BrBfsTofMatchingModule : public BrModule

    private:
void CheckEfficiency(BrDataTable* trks, BrDataTable* hits) void CheckTofCal() void InitParams() Bool_t IsValid(Double_t x) Int_t MatchTof(BrBfsTofMatchingModule::ETofId, BrDataTable*, BrDataTable*, Int_t*, BrTofDig**, Int_t* id = 0) Int_t SelectHits(BrBfsTofMatchingModule::ETofId, BrDataTable*, BrTofDig**) public:
BrBfsTofMatchingModule BrBfsTofMatchingModule() BrBfsTofMatchingModule BrBfsTofMatchingModule(const Char_t* name, const Char_t* title) BrBfsTofMatchingModule BrBfsTofMatchingModule(BrBfsTofMatchingModule&) virtual void ~BrBfsTofMatchingModule() virtual void Begin() static TClass* Class() virtual void DefineHistograms() virtual void Event(BrEventNode* inNode, BrEventNode* outNode) virtual void Init() virtual TClass* IsA() const virtual void Print(Option_t* option = "B") const void SetDefaultParameters() void SetMaxAdc(Double_t max = 100000) void SetMaxH1DX(Float_t dx = 0.5) void SetMaxH2DX(Float_t dx = 0.75) void SetNoPedWidth(Int_t n = 50) void SetNtuple(Bool_t b = kFALSE) void SetT2H1XOffset(Float_t x = 0) void SetT3H1XOffset(Float_t x = 0) void SetT5H2XOffset(Float_t x = 0) void SetTdcRange(Double_t min = 10, Double_t max = 4000) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Float_t fMaxDX[2] Float_t fXOffset[2] Float_t fT2H1XOffset Float_t fT3H1XOffset BrTofCalibration* fCalib[2] calibration parameter elements BrDetectorParamsTof* fTofPar[2] detector parameters TString fTofName[2] Double_t fNoPedWidth for matching between hit and tracks only Double_t fMaxAdc for hit selection Double_t fMaxTdc idem Double_t fMinTdc idem Bool_t fNtuple Bool_t* fValidSlat[2] Bool_t fUseFfs if ffs and bfs are aligned TNtuple* fNtMatch[2] TH1F* fDxAll[2] TH1F* fDxMatch[2] TH2F* f2dXAll[2] TH2F* f2dXMatch[2] TH1F* fMatchStat[2] TH1F** fTopEff TH1F** fBotEff TH1F* fTrkEff TH1F* fSlatCheck TDirectory* fHistDir[2] public:
static const BrBfsTofMatchingModule::ETofId kH2 static const BrBfsTofMatchingModule::ETofId kH1

Class Description

 Class BrBfsTofMatchingModule

 Module scanning the FS track table and picking up those
 matching valid tof hits.
 Selected tracks saved into a table of BrTofTrackMatch named
 "BFS Matching"

 Algorithm (Event method):
 -------------------------

 1- pick up tables of H2 hits and FS tracks
    if one of them missing, return

 2- Call method MatchTof(...)
    a- Select tof hits by checking the TDCs and ADCs of both tubes

    b- loop over tracks and sub-loop over hits
          i - evaluate the dX between track projection and hit position
         ii - minimize this distance and store the "winner" hit
              slat number in an array that has the dimension of
              the track table. It might be that the minimal dX is
              beyond the matching criterium, then, the hit id is -1

    c- check "multiple hits" when more than 1 track share the same
       hit. In that case, ignore these tracks (it doesn't remove
       completely multiple hits since there might be one track
       only pointing to such hits - the other tracks having not
       been reconstructed)

    d- loop over remaining matchings and store result into table
       of BrTofTrackMatch object (cf class implementation file)

 3- If FFS and BFS are aligned and if there are some matchings in
    H2 (a bit strict but ...), try the same game with H1 hits


BrBfsTofMatchingModule() : BrModule()
 Default constructor. DO NOT USE

BrBfsTofMatchingModule(const Char_t* name, const Char_t* title) : BrModule(name, title)

void SetDefaultParameters()
 default parameters

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

void Init()
 Job-level initialisation

void InitParams()

void CheckTofCal()

void Begin()
 Run-level initialisation

void Event(BrEventNode* inNode, BrEventNode* outNode)
 Per event method

void CheckEfficiency(BrDataTable* trks, BrDataTable* hits)
 private

Int_t MatchTof(ETofId id, BrDataTable* hitTab, BrDataTable* trkTab, Int_t* matchId, BrTofDig** hits, Int_t* h2Id)

Int_t SelectHits(ETofId id, BrDataTable* hits, BrTofDig** sel)

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


                        Bool_t IsValid(Double_t x)
                          void SetTdcRange(Double_t min = 10, Double_t max = 4000)
                          void SetNoPedWidth(Int_t n = 50)
                          void SetNtuple(Bool_t b = kFALSE)
                          void SetMaxAdc(Double_t max = 100000)
                          void SetMaxH1DX(Float_t dx = 0.5)
                          void SetMaxH2DX(Float_t dx = 0.75)
                          void SetT5H2XOffset(Float_t x = 0)
                          void SetT2H1XOffset(Float_t x = 0)
                          void SetT3H1XOffset(Float_t x = 0)
                       TClass* Class()
                       TClass* IsA() const
                          void ShowMembers(TMemberInspector& insp, char* parent)
                          void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)
        BrBfsTofMatchingModule BrBfsTofMatchingModule(BrBfsTofMatchingModule&)
                          void ~BrBfsTofMatchingModule()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2002/04/09 02:10:07 $ by ouerdane $

Validate HTML
Validate CSS