BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrDigitizeDC


class description - source file - inheritance tree

class BrDigitizeDC : public BrModule

    private:
Bool_t Digitize(BrEventNode* InputTable, BrEventNode* OutputTable) void SetDetectorParamsDC(BrDetectorParamsDC* par) void SetDetectorParamsDC(const BrDetectorParamsDC& par) void SetDetectorTrackParams(BrGeantHit* hit) virtual void SetDetectorVolume(BrDetectorVolume* vol) void SetSubModuleTrackParams(BrGeantHit* hit) void SortDighit(BrDataTable* DigitizedHits) public:
BrDigitizeDC BrDigitizeDC() BrDigitizeDC BrDigitizeDC(const Char_t* Name, const Char_t* Title) BrDigitizeDC BrDigitizeDC(BrDigitizeDC&) virtual void ~BrDigitizeDC() static TClass* Class() virtual void DefineHistograms() void DrawGeantHits() virtual void Event(BrEventNode* InputTable, BrEventNode* OutputTable) virtual BrDetectorParamsDC* GetDetectorParamsDC() virtual BrDetectorVolume* GetDetectorVolume(const Char_t* name) virtual Float_t GetPosres() virtual void Init() virtual TClass* IsA() const void ListDetectorParameters() const virtual void ListEventStatistics() void SetBragGeoMode(Bool_t val) virtual void SetPosres(Float_t posres) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
BrDriverDC* fDCDriver Pawel Bool_t fBragGeoMode Float_t fTrPar[4] Int_t fSortDighits BrDetectorParamsDC* fParams_p BrDetectorVolume* fVolumeParams_p[4] BrDetectorVolume* fVolume Int_t fNumVol Float_t fPosres Position resolution we simulate. Int_t fNumGeantHits[3] BrDataTable* fGeantHits[3] Int_t fNumDigHits BrDetectorDC* fDetectorNode TH1F* d_Hhits TH1F* d_Ghits TH1F* fHits[3] TH1F* d_Dz TH1F* fhDiffx[3][10] TH1F* d_Drift TH1F* h_test TH1F* fhSpread TGraph* d_Graphxz

Class Description

 The TBrDigitizeDC is the base module for digitization of drift
  Chambers. The algorithms are based on those in Sonata and Sonata++




BrDigitizeDC() :BrModule()

BrDigitizeDC(const Char_t *Name, const Char_t *Title) :BrModule(Name,Title)

void DefineHistograms()
 Called from Module::Book

 Create histograms

void SetDetectorParamsDC(BrDetectorParamsDC* par)
 Set the DC parameters with the values of the external parameters
 referenced by pointer
 Note that no owner ship is transferred. A copy is made.



void SetDetectorParamsDC(const BrDetectorParamsDC& par)
 Set the TPC parameters with the values of the external parameters.
 Note that no owner ship is transferred. A copy is made.
 There is no real need for the copy code here. Both Name and Title
 will be copied (it seems)

void ListDetectorParameters() const
 List the current value of the digitization parameters on
 standard out.

void SetDetectorVolume(BrDetectorVolume *vol)

BrDetectorVolume* GetDetectorVolume(const Char_t *name)

void ListEventStatistics()

~BrDigitizeDC()
 Is there a problem with the fact the the fParams_p can point to different kinds
 of datastructures i.e. potential memory leak. probably yes since fParams_p is
 defined as BrDetectorParams nor BrDetectorParamsTPC.
 By second thought it is probably ok. As long as all parameters are defined/set
 Using the SetDetectorParamsTPC / DC /BB etc..


void Init()
 The init member function/method is used to define histograms
 The histograms is added to the list of hist objects in this
 module.

void Event(BrEventNode* InputTable,BrEventNode* OutputTable) // Event method for DC digitization //

Bool_t Digitize(BrEventNode* InputTable,BrEventNode* OutputTable)
Digitize DC events
return kTRUE if successful
return kFALSE if error

void SetDetectorTrackParams(BrGeantHit* hit)
 define track associated with a hit in the local detector frame

void SetSubModuleTrackParams(BrGeantHit* hit)
 define track associated with a hit in the local sub-module frame

void SortDighit(BrDataTable* DigitizedHits)

void DrawGeantHits()



Inline Functions


        BrDetectorParamsDC* GetDetectorParamsDC()
                       void SetPosres(Float_t posres)
                    Float_t GetPosres()
                       void SetBragGeoMode(Bool_t val)
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
               BrDigitizeDC BrDigitizeDC(BrDigitizeDC&)

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on Wed Sep 11 04:51:28 2002 by

Validate HTML
Validate CSS