BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrTpcHitModule


class description - source file - inheritance tree

class BrTpcHitModule : public BrModule

    private:
void ConvertClustersToHits() Bool_t FindHitWeightedMean(BrTpcCluster* cluster) void WeightedMean(const Int_t, const Double_t*, const Double_t*, const Double_t*, Double_t&, Double_t&, Double_t&) public:
BrTpcHitModule BrTpcHitModule() BrTpcHitModule BrTpcHitModule(const Char_t* name, const Char_t* title) BrTpcHitModule BrTpcHitModule(BrTpcHitModule&) virtual void ~BrTpcHitModule() 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 virtual void SetUseCalibratedWidths(Bool_t val = kFALSE) virtual void SetUsePadGain(Bool_t val = kFALSE) virtual void SetWhiteNoise(Double_t val = 2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
BrDataTable* fClusterTable cluster input data table BrDataTable* fHitTable hit output table BrDetectorParamsTPC* fParams tpc detector parameters Bool_t fUsePadGain Flag indicating if gain calibration to be done BrTpcCalibration* fCalibration Tpc calibration pointer - owned by Calibration Manager. Double_t fWhiteNoise white noise Bool_t fUseCalibratedWidths use fixed error from calibrations TH2F* hPadTime Pad-time distribution of hits TH2F* hPadRow Pad-row distribution of hits TH1F* hX local x (pad) distribution of hits TH1F* hY local y (time) distribution of hits TH1F* hDx error distribution on local x (pad) TH1F* hDy error distribution on local y (time)

Class Description

 BrTpcHitModule takes the ouput clusters from BrTpcClusterModule and
 BrTpcDeconvoluteClusterModule and converts them into BrTpcHit(s)
 which are then appended to the outNode

 The method only supports weighted mean methods at the moment and
 the error on the hit is estimated from a settable white noise
 parameter.
 Note: FV 5/7/02 I do not think the error estimate for timing bins
 where a sqrt(adc) count is used. This is not the proper statistics
 since the fluctuation is in total change , not on individual count.
 The use of padresponse widths from a DB is better, but does depend on
 total Charge in clsuter (that comes from initial number of p.e.

 The adcGain can be corrected before calculating avaraged in pad x
 and time bin using database calibration constants. The action is all in the
 weightedmean routines for this.

BrTpcHitModule()
 Default constructor. DO NOT USE

BrTpcHitModule(const Char_t* name, const Char_t* title) : BrModule(name, title)
 Named constructor

void DefineHistograms()
 Define the histograms used to monitor performance
 This method is usually called by BrModule::Book().


void Init()
 Initialiser at job level

void ConvertClustersToHits()

void Event(BrEventNode* inNode, BrEventNode* outNode)
 Main method. Process one event.
 Gets the TPCCluster data from the inputNode
 Extracts the hit position and the error on the hit position.
 It then converts the information to the local hit position and
 store the information as a BrTpcHit in the outputtable


Bool_t FindHitWeightedMean(BrTpcCluster *cluster)
 This is the old FindHits2 method used to calculate the hit
 position of the hits using the weighted mean method

void Print(Option_t* option) const
 Module Information method

 Options: (see also BrModule::Print)


void WeightedMean(const Int_t npts, const Double_t *x, const Double_t *y, const Double_t *dy, Double_t &centroid, Double_t &width, Double_t &uncertainty)
 This is the routine that calculates the best estimate for the
 weighted mean and the error and the width of the distribtuion



Inline Functions


                  void SetWhiteNoise(Double_t val = 2)
                  void SetUseCalibratedWidths(Bool_t val = kFALSE)
                  void SetUsePadGain(Bool_t val = kFALSE)
               TClass* Class()
               TClass* IsA() const
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                  void StreamerNVirtual(TBuffer& b)
        BrTpcHitModule BrTpcHitModule(BrTpcHitModule&)
                  void ~BrTpcHitModule()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2002/08/15 17:25:09 $ by videbaek $

Validate HTML
Validate CSS