BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrBbDeltaTdcCalModule


class description - source file - inheritance tree

class BrBbDeltaTdcCalModule : public BrBbCalModule

    private:
BrBbDig* FindReference(BrDataTable* tab) void Process(BrDataTable* hits, BrBbDig* ref) virtual void ReadAscii() virtual void SaveAscii() public:
BrBbDeltaTdcCalModule BrBbDeltaTdcCalModule() BrBbDeltaTdcCalModule BrBbDeltaTdcCalModule(const Char_t* name, const Char_t* title) BrBbDeltaTdcCalModule BrBbDeltaTdcCalModule(BrBbDeltaTdcCalModule&) virtual void ~BrBbDeltaTdcCalModule() virtual void Begin() static TClass* Class() virtual void DefineHistograms() virtual void End() virtual void Event(BrEventNode* inNode, BrEventNode* outNode) virtual void Finish() virtual void Init() virtual TClass* IsA() const virtual void Print(Option_t* option = "B") const void SetAdcSel(Float_t s = 0.1) void SetDefaultParameters() void SetEnergyThreshold(Float_t t = 0.8) void SetFitWindow(Float_t f = 5) void SetMaxTdc(Float_t max = 3500) void SetMinTdc(Float_t min = 10) void SetNtuple(Bool_t b = kFALSE) void SetUseSlewing(Bool_t b = kFALSE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Float_t fMinTdc reasonable lower limit Float_t fMaxTdc reasonable upper limit Float_t fEnergyThreshold Float_t fAdcSel factor for adc ref selection Float_t fFitWindow fit at max +/- fFitWindow TH1F** fDtime TH1F* fSumDt TH2F* fhDeltaTime TNtuple* fDeltaTdc Bool_t fNtuple Bool_t fUseSlewing

Class Description

 Delta Tdc calibration module
 * reference tube:
      Left  37 by default
      Right 31 by default

 select hits in reference tubes according to
   | (adc - ped) - adc MIP) | < fAdcSel * adc MIP

 Fill histograms (TDC*TDCGain)i - (TDC*TDCGain)ref for hits i such
 that adc/adcMIP > threshold

 This module can also deal with the INEL counters that were used for
 the pp running. Since they only have a TDC signal, but otherwise are
 like the BB (having a left and Right modules) same data structure this is the
 best palce to insert the stuff. It is concievabel ADC signals may be added
 for subsequent run periods.
 The ref tubes here is 13. Only tubes 13-16 can be used in the present algortihm.
 Due to halo background the difference spectra has often two peaks. The alogorithm
 selects a fir range. The offsets are kind of hard-wired into the setup. A better way
 would be to find the first 'real' peak. For ring larger than the reference tube ring
 it will be the top peak, and for rings lower it will be the lower peak.



BrBbDeltaTdcCalModule() : BrBbCalModule()
 Default constructor. DO NOT USE

BrBbDeltaTdcCalModule(const Char_t* name, const Char_t* title) : BrBbCalModule(name, title)
 Named Constructor

void SetDefaultParameters()

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

void Init()
 Job-level initialisation

void Begin()
 Run-level initialisation

void Event(BrEventNode* inNode, BrEventNode* outNode)

void Process(BrDataTable* hits, BrBbDig* ref)
 private method

BrBbDig* FindReference(BrDataTable* hits)
 private method

void End()
 Run-level finalisation

void Finish()
 Job-level finalisation

 This module also is useful for the pp Inel counters
 The time differences can be pretty large, and in particular for the
 left rings the data were plagued by considerable amount of 'background ie.
 halo from the wrong direction. The correct peak was then NOT always the
 one at the maximum in the spectrum (but should usualy be).
 The algortim to find peaks is to use the TSpectrum class and looking for two peaks
 If there are two present it will pick the proper one by


void SaveAscii()
 save pedestal to ascii file

void ReadAscii()

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


                         void SetMinTdc(Float_t min = 10)
                         void SetMaxTdc(Float_t max = 3500)
                         void SetEnergyThreshold(Float_t t = 0.8)
                         void SetFitWindow(Float_t f = 5)
                         void SetAdcSel(Float_t s = 0.1)
                         void SetNtuple(Bool_t b = kFALSE)
                         void SetUseSlewing(Bool_t b = kFALSE)
                      TClass* Class()
                      TClass* IsA() const
                         void ShowMembers(TMemberInspector& insp, char* parent)
                         void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
        BrBbDeltaTdcCalModule BrBbDeltaTdcCalModule(BrBbDeltaTdcCalModule&)
                         void ~BrBbDeltaTdcCalModule()

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 16:17:45 $ by videbaek $

Validate HTML
Validate CSS