BmnRoot 26.10.0-233-gb9bbe585
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)

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)

Private Attributes

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

Detailed Description

Definition at line 20 of file BmnDchRaw2Digit.h.

Constructor & Destructor Documentation

◆ BmnDchRaw2Digit() [1/2]

BmnDchRaw2Digit::BmnDchRaw2Digit ( Int_t period,
Int_t run )

Definition at line 5 of file BmnDchRaw2Digit.cxx.

References ReadMapFromDB().

Here is the call graph for this function:

◆ BmnDchRaw2Digit() [2/2]

BmnDchRaw2Digit::BmnDchRaw2Digit ( )
inline

Definition at line 24 of file BmnDchRaw2Digit.h.

◆ ~BmnDchRaw2Digit()

virtual BmnDchRaw2Digit::~BmnDchRaw2Digit ( )
inlinevirtual

Definition at line 25 of file BmnDchRaw2Digit.h.

References fMap1, fMap2, and i.

Member Function Documentation

◆ FillEvent()

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:

◆ FindInMap()

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:

◆ GetChTDC64v()

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:

◆ ReadMapFromDB()

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:

◆ ReadMapFromFile()

BmnStatus BmnDchRaw2Digit::ReadMapFromFile ( Int_t period)
private

Definition at line 40 of file BmnDchRaw2Digit.cxx.

References DchMapValue::channel_high, DchMapValue::channel_low, DchMapValue::crate, TString::Data(), fMap1, fMap2, DchMapValue::group, kBMNSUCCESS, DchMapValue::plane, DchMapValue::slot, and slot.

Here is the call graph for this function:

Member Data Documentation

◆ fMap1

vector<UniValue*> BmnDchRaw2Digit::fMap1
private

Definition at line 38 of file BmnDchRaw2Digit.h.

Referenced by ~BmnDchRaw2Digit(), FindInMap(), ReadMapFromDB(), and ReadMapFromFile().

◆ fMap2

vector<UniValue*> BmnDchRaw2Digit::fMap2
private

Definition at line 39 of file BmnDchRaw2Digit.h.

Referenced by ~BmnDchRaw2Digit(), FindInMap(), ReadMapFromDB(), and ReadMapFromFile().


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