BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDchRaw2Digit Class Reference

#include <BmnDchRaw2Digit.h>

Public Member Functions

 BmnDchRaw2Digit (Int_t period, Int_t run)
 BmnDchRaw2Digit ()
virtual ~BmnDchRaw2Digit ()
void FillEvent (TClonesArray *tdc, unordered_map< UInt_t, Long64_t > *ts, TClonesArray *dch, Double_t t0)
 BmnDchRaw2Digit (Int_t period, Int_t run)
 BmnDchRaw2Digit ()
virtual ~BmnDchRaw2Digit ()
void FillEvent (TClonesArray *tdc, unordered_map< UInt_t, Long64_t > *ts, TClonesArray *dch, Double_t t0)

Private Member Functions

Int_t GetChTDC64v (UInt_t tdc, UInt_t ch)
BmnStatus FindInMap (BmnTDCDigit *dig, TClonesArray *arr, Long64_t ts, Double_t t0, Int_t dchId)
BmnStatus ReadMapFromFile (Int_t period)
BmnStatus ReadMapFromDB (Int_t period, Int_t run)
Int_t GetChTDC64v (UInt_t tdc, UInt_t ch)
BmnStatus FindInMap (BmnTDCDigit *dig, TClonesArray *arr, Long64_t ts, Double_t t0, Int_t dchId)
BmnStatus ReadMapFromFile (Int_t period)
BmnStatus ReadMapFromDB (Int_t period, Int_t run)

Private Attributes

vector< UniValue * > fMap1
vector< UniValue * > fMap2

Detailed Description

Definition at line 20 of file BmnDchRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnDchRaw2Digit() [1/4]

BmnDchRaw2Digit::BmnDchRaw2Digit ( Int_t period,
Int_t run )

Definition at line 5 of file BmnDchRaw2Digit.cxx.

References ReadMapFromDB().

Referenced by ReadMapFromDB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BmnDchRaw2Digit() [2/4]

BmnDchRaw2Digit::BmnDchRaw2Digit ( )
inline

Definition at line 24 of file BmnDchRaw2Digit.h.

◆ ~BmnDchRaw2Digit() [1/2]

virtual BmnDchRaw2Digit::~BmnDchRaw2Digit ( )
inlinevirtual

Definition at line 25 of file BmnDchRaw2Digit.h.

References fMap1, fMap2, and i.

◆ BmnDchRaw2Digit() [3/4]

BmnDchRaw2Digit::BmnDchRaw2Digit ( Int_t period,
Int_t run )

◆ BmnDchRaw2Digit() [4/4]

BmnDchRaw2Digit::BmnDchRaw2Digit ( )
inline

Definition at line 24 of file BmnDchRaw2Digit.h.

◆ ~BmnDchRaw2Digit() [2/2]

virtual BmnDchRaw2Digit::~BmnDchRaw2Digit ( )
inlinevirtual

Definition at line 25 of file BmnDchRaw2Digit.h.

References fMap1, fMap2, and i.

Member Function Documentation

◆ FillEvent() [1/2]

void BmnDchRaw2Digit::FillEvent ( TClonesArray * tdc,
unordered_map< UInt_t, Long64_t > * ts,
TClonesArray * dch,
Double_t t0 )

Definition at line 109 of file BmnDchRaw2Digit.cxx.

References TObjArray::At(), DCH_TDC_TYPE, FindInMap(), TObjArray::GetEntriesFast(), BmnTDCDigit::GetSerial(), BmnTDCDigit::GetType(), i, and kBMNERROR.

Here is the call graph for this function:

◆ FillEvent() [2/2]

void BmnDchRaw2Digit::FillEvent ( TClonesArray * tdc,
unordered_map< UInt_t, Long64_t > * ts,
TClonesArray * dch,
Double_t t0 )

References fMap1, and fMap2.

◆ FindInMap() [1/2]

BmnStatus BmnDchRaw2Digit::FindInMap ( BmnTDCDigit * dig,
TClonesArray * arr,
Long64_t ts,
Double_t t0,
Int_t dchId )
private

Definition at line 137 of file BmnDchRaw2Digit.cxx.

References DchMapValue::channel_high, DchMapValue::channel_low, DchMapValue::crate, fMap1, fMap2, BmnTDCDigit::GetChannel(), GetChTDC64v(), TObjArray::GetEntriesFast(), BmnTDCDigit::GetHptdcId(), BmnTDCDigit::GetSerial(), BmnTDCDigit::GetSlot(), BmnTDCDigit::GetValue(), DchMapValue::group, kBMNERROR, kBMNSUCCESS, DchMapValue::plane, and DchMapValue::slot.

Referenced by FillEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindInMap() [2/2]

BmnStatus BmnDchRaw2Digit::FindInMap ( BmnTDCDigit * dig,
TClonesArray * arr,
Long64_t ts,
Double_t t0,
Int_t dchId )
private

◆ GetChTDC64v() [1/2]

Int_t BmnDchRaw2Digit::GetChTDC64v ( UInt_t tdc,
UInt_t ch )
private

Definition at line 123 of file BmnDchRaw2Digit.cxx.

Referenced by FindInMap().

Here is the caller graph for this function:

◆ GetChTDC64v() [2/2]

Int_t BmnDchRaw2Digit::GetChTDC64v ( UInt_t tdc,
UInt_t ch )
private

◆ ReadMapFromDB() [1/2]

BmnStatus BmnDchRaw2Digit::ReadMapFromDB ( Int_t period,
Int_t run )
private

Definition at line 11 of file BmnDchRaw2Digit.cxx.

References fMap1, fMap2, UniDetectorParameter::GetDetectorParameter(), UniDetectorParameter::GetValue(), i, and kBMNSUCCESS.

Referenced by BmnDchRaw2Digit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadMapFromDB() [2/2]

BmnStatus BmnDchRaw2Digit::ReadMapFromDB ( Int_t period,
Int_t run )
private

References BmnDchRaw2Digit().

Here is the call graph for this function:

◆ ReadMapFromFile() [1/2]

◆ ReadMapFromFile() [2/2]

BmnStatus BmnDchRaw2Digit::ReadMapFromFile ( Int_t period)
private

Member Data Documentation

◆ fMap1

vector< UniValue * > BmnDchRaw2Digit::fMap1
private

◆ fMap2

vector< UniValue * > BmnDchRaw2Digit::fMap2
private

The documentation for this class was generated from the following files: