BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrTpcSequencePPModule


class description - source file - inheritance tree

class BrTpcSequencePPModule : public BrModule

    private:
void ApplyTimeAndAdcCuts(BrTpcSequence* seq, TObjArray* outTable) public:
BrTpcSequencePPModule BrTpcSequencePPModule() BrTpcSequencePPModule BrTpcSequencePPModule(const Char_t* name, const Char_t* title) BrTpcSequencePPModule BrTpcSequencePPModule(BrTpcSequencePPModule&) virtual void ~BrTpcSequencePPModule() 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 SetMinAdc(Short_t val = 0) void SetMinSeqLength(Int_t val = 3) void SetPadCutHigh(Int_t val = 144) void SetPadCutLow(Int_t val = 0) void SetTimeCutHigh(Int_t val = 158) void SetTimeCutLow(Int_t val = 20) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
BrDataTable* fSeqTable input table Int_t fMinSeqLength Minimum length of seq Int_t fPadCutLow Minimum pad number Int_t fPadCutHigh Maximum pad number Int_t fTimeCutLow Minimum time bin number Int_t fTimeCutHigh Maximum time bin number Short_t fMinAdc Minimum Adc value BrDetectorParamsTPC* fTpcParams Detector parameters

Class Description




BrTpcSequencePPModule()
 Default constructor. DO NOT USE

BrTpcSequencePPModule(const Char_t* name, const Char_t* title) : BrModule(name, title)
 Named Constructor

void ApplyTimeAndAdcCuts(BrTpcSequence *seq, TObjArray *outTable)
 This method takes a sequence as input. It removes the part of the
 sequence below and above the fTimeCutLow and fTimeCutHigh and the
 bins where the Adc values are below fAdcMin

 The algorithm used is to define an array of shorts called split
 For each bin in the valid range a number is given to groups of
 consecutive bins with adc values above fAdcMin. After stepping
 thorugh the whole sequence new sequences are mnade if the
 sequence is at least as long as fMinSeqLength

 Ex :

  Input sequence
  Row :   7 Pad :  41
  Time :  18  19  20  21  22  23  24  25  26  27
  Adc :  152 192  67  55  38  16   5   2   1  -1
          ^   ^
          ___\_____ ignored because of time cut
  Split array :
                   1   1   1   1   1   1   1   0

  New sequences :
  Row :   7 Pad :  41
  Time :  20  21  22  23  24  25  26
  Adc :   67  55  38  16   5   2   1

 To get ouput like this set the debuglevel to 20

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

void Init()
 Job-level initialisation

void Event(BrEventNode* inNode, BrEventNode* outNode)
 Tme event methods modifies the sequence table in the in node, and
 therefore has no special output.

 The strategy is :
 a) throw away sequences in pad strictly less (greater) than
 pad low (high) cut
 b) remove 0 (default) and negative values from sequences by
 cutting them in pieces
  ( -1, 0, 10, 12, 8, 6, 0, 5, 3, 0, 10, 20, 10, 5 )
   ==>
  ( 10, 12, 8, 6 )     &&  ( 10, 20, 10, 5 )
  ( 5, 3 ) is not kept with default parameters since it is only 2 long.
 c) remove the part of the sequences that has time < fCutOffTime
 since a lot of noise was observed there with real data

void Print(Option_t* option) const
 Print module information
 See BrModule::Print for options.
 In addition this module defines the Option:
 d - print original author and who, when modified last



Inline Functions


                         void SetMinSeqLength(Int_t val = 3)
                         void SetPadCutLow(Int_t val = 0)
                         void SetPadCutHigh(Int_t val = 144)
                         void SetTimeCutLow(Int_t val = 20)
                         void SetTimeCutHigh(Int_t val = 158)
                         void SetMinAdc(Short_t val = 0)
                      TClass* Class()
                      TClass* IsA() const
                         void ShowMembers(TMemberInspector& insp, char* parent)
                         void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
        BrTpcSequencePPModule BrTpcSequencePPModule(BrTpcSequencePPModule&)
                         void ~BrTpcSequencePPModule()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2002/01/03 19:53:34 $ by cholm $

Validate HTML
Validate CSS