BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrTpcAdcTable


class description - source file - inheritance tree

class BrTpcAdcTable : public TObject

    private:
Bool_t FindMaxPixel(Int_t& mpad, Int_t& mtime, Short_t adcCut) public:
BrTpcAdcTable BrTpcAdcTable() BrTpcAdcTable BrTpcAdcTable(Int_t npads, Int_t ntimebins) BrTpcAdcTable BrTpcAdcTable(BrTpcAdcTable&) virtual void ~BrTpcAdcTable() static TClass* Class() virtual void Clear(Option_t* option) virtual Int_t FindPeaks(Short_t adcCut) virtual Short_t GetAdc(Int_t pad, Int_t timebin) const virtual Int_t GetId(Int_t pad, Int_t timebin) const virtual Int_t GetMaxPad() const virtual Int_t GetMaxTime() const virtual Int_t GetMinPad() const virtual Int_t GetMinTime() const virtual Int_t GetNPads() const virtual Int_t GetNTimeBins() const virtual TClass* IsA() const virtual void Print(Option_t* option) const virtual void SetAdc(Int_t pad, Int_t timebin, Short_t x) virtual void SetId(Int_t pad, Int_t timebin, Int_t x) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Int_t fNPads Number of pads in array Int_t fNTimeBins Number of time bins in array Short_t* fAdcs [fNPads*fNTimeBins] Adc table Int_t* fIds [fNPads*fNTimeBins] Id table Int_t fMin min bin used (for fast clean) Int_t fMax max bin used (for fast clean) Int_t fMinPad min pad used (only for displaying) Int_t fMaxPad max pad used (only for displaying) Int_t fMinTime min time used (only for displaying) Int_t fMaxTime max time used (only for displaying)

Class Description




BrTpcAdcTable()
 Default constructor DO NOT USE

BrTpcAdcTable(Int_t npads, Int_t ntimebins)
 Default constructor

~BrTpcAdcTable()
 DTOR

void Clear(Option_t* option)
 Values in fAdc table is set to -1
 and values in fIds table is set to 0

Bool_t FindMaxPixel(Int_t &maxPad, Int_t &maxTime, Short_t adcCut)
 Find the max pad and time bin of the unused clusters
 demanding that the adc value is greater than adcCut
 Called by FindPeaks


Int_t FindPeaks(Short_t adcCut)
 This method finds the pixel with the highest adc value then sets
 the id of that pixel to 1 and continues to locate pixels with
 less adc values locating "the mountain". It then finds the
 pixel with the highest adc values among the rest and continues to
 find mountains until all pixels have been used or the maximum
 pixel is less than the adcCut


Short_t GetAdc(Int_t pad, Int_t timebin) const

Int_t GetId(Int_t pad, Int_t timebin) const

void SetAdc(Int_t pad, Int_t timebin, Short_t x)
 If adc < 0 set adc to 0

void SetId(Int_t pad, Int_t timebin, Int_t id)

void Print(Option_t* option="") const



Inline Functions


                Int_t GetMinPad() const
                Int_t GetMaxPad() const
                Int_t GetMinTime() const
                Int_t GetMaxTime() const
                Int_t GetNPads() const
                Int_t GetNTimeBins() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        BrTpcAdcTable BrTpcAdcTable(BrTpcAdcTable&)

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2001/06/25 14:30:31 $ by cholm $

Validate HTML
Validate CSS