BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnSlewingTOF700 Class Reference

#include <BmnSlewingTOF700.h>

Collaboration diagram for BmnSlewingTOF700:

Public Member Functions

 BmnSlewingTOF700 (TString file, ULong_t nEvents=0, ULong_t period=4)
 BmnSlewingTOF700 ()
virtual ~BmnSlewingTOF700 ()
BmnStatus InitUTCShift ()
Int_t GetUTCShift (TTimeStamp t)
BmnStatus ClearArrays ()
BmnStatus InitDecoder ()
BmnStatus InitMaps ()
void ResetDecoder (TString file)
BmnStatus DisposeDecoder ()
BmnStatus SlewingTOF700Init ()
BmnStatus SlewingTOF700 ()
BmnStatus PreparationTOF700Init ()
BmnStatus PreparationTOF700 ()
void SetQue (deque< UInt_t > *v)
deque< UInt_t > * GetQue ()
void SetRunId (UInt_t v)
void SetPeriodId (UInt_t v)
map< UInt_t, Long64_t > GetTimeShifts ()
UInt_t GetRunId () const
UInt_t GetPeriodId () const
UInt_t GetNevents () const
UInt_t GetEventId () const
BmnTof2Raw2DigitNew * GetTof700Mapper ()
void SetTrigPlaceMapping (TString map)
void SetTrigChannelMapping (TString file)
void SetTof700Mapping (TString map)
TString GetRootFileName ()
BmnStatus SetDetectorSetup (Bool_t *setup)
void SetBmnSetup (BmnSetup v)
BmnSetup GetBmnSetup () const

Private Member Functions

Int_t GetRunIdFromFile (TString name)
TString GetSubNameAfterRunId (TString name, Int_t RunID)
BmnStatus GetT0Info (Double_t &t0time, Double_t &t0width)
BmnStatus FillTimeShiftsMap ()
BmnStatus FillTimeShiftsMapNoDB (UInt_t t0serial)

Private Attributes

const TTimeStamp TimeZero = TTimeStamp(time_t(0), 0)
Bool_t fDetectorSetup [11]
bool isRawRootInputFile
UInt_t fRunId
TTimeStamp fRunStartTime
TTimeStamp fRunEndTime
UInt_t fPeriodId
UInt_t fEventId
UInt_t fNevents
Long64_t fTime_s
Long64_t fTime_ns
Long64_t fTimeStart_s
Long64_t fTimeStart_ns
Long64_t fTimeFinish_s
Long64_t fTimeFinish_ns
Long64_t fLengthRawFile
Long64_t fCurentPositionRawFile
TTree * fRawTree
TTree * fDigiTree
TString fRootFileName
TString fRawFileName
TString fTof700MapFileName
TString fTof700GeomFileName
TString fTrigPlaceMapFileName
TString fTrigChannelMapFileName
ifstream fTrigMapFile
ifstream fTrigINLFile
TFile * fRootFileIn
TFile * fRootFileOut
FILE * fRawFileIn
TClonesArray * sync
TClonesArray * adc32
TClonesArray * adc128
TClonesArray * adc
TClonesArray * hrb
TClonesArray * tdc
TClonesArray * tqdc_tdc
TClonesArray * tqdc_adc
TClonesArray * msc
TClonesArray * eventHeaderDAQ
TClonesArray * pedestalAdc
TClonesArray * eventHeader
UInt_t data [10000000]
ULong_t fMaxEvent
UInt_t fDat
UInt_t syncCounter
BmnTrigRaw2Digit * fTrigMapper
BmnTof2Raw2DigitNew * fTof700Mapper
BmnEventType fCurEventType
BmnEventType fPrevEventType
BmnSetup fBmnSetup
UInt_t fT0Serial
deque< UInt_t > * fDataQueue
map< UInt_t, Long64_t > fTimeShifts
Double_t fT0Time
Double_t fT0Width
map< TTimeStamp, Int_t > leaps
TTimeStamp utc_valid
Int_t tai_utc_dif

Detailed Description

Definition at line 52 of file BmnSlewingTOF700.h.

Constructor & Destructor Documentation

◆ BmnSlewingTOF700() [1/2]

◆ BmnSlewingTOF700() [2/2]

◆ ~BmnSlewingTOF700()

BmnSlewingTOF700::~BmnSlewingTOF700 ( )
virtual

Definition at line 117 of file BmnSlewingTOF700.cxx.

Member Function Documentation

◆ ClearArrays()

BmnStatus BmnSlewingTOF700::ClearArrays ( )

◆ DisposeDecoder()

BmnStatus BmnSlewingTOF700::DisposeDecoder ( )

◆ FillTimeShiftsMap()

BmnStatus BmnSlewingTOF700::FillTimeShiftsMap ( )
private

Definition at line 140 of file BmnSlewingTOF700.cxx.

References fRunStartTime, fT0Serial, fTime_ns, fTime_s, fTimeShifts, BmnSyncDigit::GetSerial(), BmnSyncDigit::GetTime_ns(), BmnSyncDigit::GetTime_sec(), i, kBMNERROR, kBMNSUCCESS, sync, and TimeZero.

Referenced by PreparationTOF700(), and SlewingTOF700().

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

◆ FillTimeShiftsMapNoDB()

BmnStatus BmnSlewingTOF700::FillTimeShiftsMapNoDB ( UInt_t t0serial)
private

Definition at line 167 of file BmnSlewingTOF700.cxx.

References fTimeShifts, BmnSyncDigit::GetSerial(), BmnSyncDigit::GetTime_ns(), BmnSyncDigit::GetTime_sec(), i, kBMNERROR, kBMNSUCCESS, and sync.

Here is the call graph for this function:

◆ GetBmnSetup()

BmnSetup BmnSlewingTOF700::GetBmnSetup ( ) const
inline

Definition at line 112 of file BmnSlewingTOF700.h.

References fBmnSetup.

◆ GetEventId()

UInt_t BmnSlewingTOF700::GetEventId ( ) const
inline

Definition at line 89 of file BmnSlewingTOF700.h.

References fEventId.

◆ GetNevents()

UInt_t BmnSlewingTOF700::GetNevents ( ) const
inline

Definition at line 87 of file BmnSlewingTOF700.h.

References fNevents.

◆ GetPeriodId()

UInt_t BmnSlewingTOF700::GetPeriodId ( ) const
inline

Definition at line 85 of file BmnSlewingTOF700.h.

References fPeriodId.

◆ GetQue()

deque< UInt_t > * BmnSlewingTOF700::GetQue ( )
inline

Definition at line 75 of file BmnSlewingTOF700.h.

References fDataQueue.

◆ GetRootFileName()

TString BmnSlewingTOF700::GetRootFileName ( )
inline

Definition at line 99 of file BmnSlewingTOF700.h.

References fRootFileName.

◆ GetRunId()

UInt_t BmnSlewingTOF700::GetRunId ( ) const
inline

Definition at line 83 of file BmnSlewingTOF700.h.

References fRunId.

◆ GetRunIdFromFile()

Int_t BmnSlewingTOF700::GetRunIdFromFile ( TString name)
private

Definition at line 458 of file BmnSlewingTOF700.cxx.

References TString::Atoi(), TString::Data(), fRootFileIn, fRootFileName, TTree::GetEntriesFast(), TTree::GetEntry(), isRawRootInputFile, kWORDSIZE, TPRegexp::MatchB(), RECORD_RUN_NUMBER, TTree::SetBranchAddress(), and TPRegexp::Substitute().

Referenced by BmnSlewingTOF700().

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

◆ GetSubNameAfterRunId()

TString BmnSlewingTOF700::GetSubNameAfterRunId ( TString name,
Int_t RunID )
private

Definition at line 615 of file BmnSlewingTOF700.cxx.

References TString::Index(), TString::Itoa(), and TString::Length().

Referenced by BmnSlewingTOF700().

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

◆ GetT0Info()

BmnStatus BmnSlewingTOF700::GetT0Info ( Double_t & t0time,
Double_t & t0width )
private

Definition at line 522 of file BmnSlewingTOF700.cxx.

References fBmnSetup, fPeriodId, fRunId, fTrigMapper, BmnTrigDigit::GetAmp(), BmnTrigDigit::GetMod(), BmnTrigDigit::GetTime(), i, kBMNERROR, kBMNSUCCESS, and kSRCSETUP.

Referenced by PreparationTOF700(), and SlewingTOF700().

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

◆ GetTimeShifts()

map< UInt_t, Long64_t > BmnSlewingTOF700::GetTimeShifts ( )
inline

Definition at line 81 of file BmnSlewingTOF700.h.

References fTimeShifts.

◆ GetTof700Mapper()

BmnTof2Raw2DigitNew * BmnSlewingTOF700::GetTof700Mapper ( )
inline

Definition at line 91 of file BmnSlewingTOF700.h.

References fTof700Mapper.

◆ GetUTCShift()

Int_t BmnSlewingTOF700::GetUTCShift ( TTimeStamp t)

Definition at line 596 of file BmnSlewingTOF700.cxx.

References ANSI_COLOR_RED, ANSI_COLOR_RESET, leaps, and utc_valid.

◆ InitDecoder()

BmnStatus BmnSlewingTOF700::InitDecoder ( )

◆ InitMaps()

BmnStatus BmnSlewingTOF700::InitMaps ( )

◆ InitUTCShift()

BmnStatus BmnSlewingTOF700::InitUTCShift ( )

Definition at line 562 of file BmnSlewingTOF700.cxx.

References kBMNSUCCESS, leaps, and utc_valid.

Referenced by BmnSlewingTOF700().

Here is the caller graph for this function:

◆ PreparationTOF700()

BmnStatus BmnSlewingTOF700::PreparationTOF700 ( )

Definition at line 359 of file BmnSlewingTOF700.cxx.

References FillTimeShiftsMap(), fNevents, fRawTree, fT0Time, fT0Width, fTimeShifts, fTof700Mapper, fTrigMapper, GetT0Info(), kBMNSUCCESS, tdc, tqdc_adc, and tqdc_tdc.

Here is the call graph for this function:

◆ PreparationTOF700Init()

BmnStatus BmnSlewingTOF700::PreparationTOF700Init ( )
inline

Definition at line 70 of file BmnSlewingTOF700.h.

References SlewingTOF700Init().

Here is the call graph for this function:

◆ ResetDecoder()

void BmnSlewingTOF700::ResetDecoder ( TString file)

◆ SetBmnSetup()

void BmnSlewingTOF700::SetBmnSetup ( BmnSetup v)
inline

Definition at line 110 of file BmnSlewingTOF700.h.

References fBmnSetup, and v.

◆ SetDetectorSetup()

BmnStatus BmnSlewingTOF700::SetDetectorSetup ( Bool_t * setup)
inline

Definition at line 101 of file BmnSlewingTOF700.h.

References fDetectorSetup, i, and kBMNSUCCESS.

◆ SetPeriodId()

void BmnSlewingTOF700::SetPeriodId ( UInt_t v)
inline

Definition at line 79 of file BmnSlewingTOF700.h.

References fPeriodId, and v.

◆ SetQue()

void BmnSlewingTOF700::SetQue ( deque< UInt_t > * v)
inline

Definition at line 73 of file BmnSlewingTOF700.h.

References fDataQueue, and v.

◆ SetRunId()

void BmnSlewingTOF700::SetRunId ( UInt_t v)
inline

Definition at line 77 of file BmnSlewingTOF700.h.

References fRunId, and v.

◆ SetTof700Mapping()

void BmnSlewingTOF700::SetTof700Mapping ( TString map)
inline

Definition at line 97 of file BmnSlewingTOF700.h.

References fTof700MapFileName.

◆ SetTrigChannelMapping()

void BmnSlewingTOF700::SetTrigChannelMapping ( TString file)
inline

Definition at line 95 of file BmnSlewingTOF700.h.

References fTrigChannelMapFileName.

◆ SetTrigPlaceMapping()

void BmnSlewingTOF700::SetTrigPlaceMapping ( TString map)
inline

Definition at line 93 of file BmnSlewingTOF700.h.

References fTrigPlaceMapFileName.

◆ SlewingTOF700()

BmnStatus BmnSlewingTOF700::SlewingTOF700 ( )

Definition at line 249 of file BmnSlewingTOF700.cxx.

References FillTimeShiftsMap(), fNevents, fRawTree, fT0Time, fT0Width, fTimeShifts, fTof700Mapper, fTrigMapper, GetT0Info(), kBMNSUCCESS, tdc, tqdc_adc, and tqdc_tdc.

Here is the call graph for this function:

◆ SlewingTOF700Init()

BmnStatus BmnSlewingTOF700::SlewingTOF700Init ( )

Definition at line 195 of file BmnSlewingTOF700.cxx.

References adc, adc128, adc32, eventHeader, eventHeaderDAQ, fBmnSetup, fDigiTree, fMaxEvent, fNevents, fPeriodId, fRawTree, fRootFileIn, fRootFileName, fT0Serial, fTof700MapFileName, fTof700Mapper, fTrigChannelMapFileName, fTrigMapper, fTrigPlaceMapFileName, hrb, kBMNERROR, kBMNSETUP, kBMNSUCCESS, sync, tdc, tqdc_adc, and tqdc_tdc.

Referenced by PreparationTOF700Init().

Here is the caller graph for this function:

Member Data Documentation

◆ adc

TClonesArray* BmnSlewingTOF700::adc
private

Definition at line 164 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ adc128

TClonesArray* BmnSlewingTOF700::adc128
private

Definition at line 163 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ adc32

TClonesArray* BmnSlewingTOF700::adc32
private

Definition at line 162 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ data

UInt_t BmnSlewingTOF700::data[10000000]
private

Definition at line 177 of file BmnSlewingTOF700.h.

◆ eventHeader

TClonesArray* BmnSlewingTOF700::eventHeader
private

Definition at line 175 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ eventHeaderDAQ

TClonesArray* BmnSlewingTOF700::eventHeaderDAQ
private

Definition at line 170 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ fBmnSetup

BmnSetup BmnSlewingTOF700::fBmnSetup
private

◆ fCurentPositionRawFile

Long64_t BmnSlewingTOF700::fCurentPositionRawFile
private

Definition at line 142 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700().

◆ fCurEventType

BmnEventType BmnSlewingTOF700::fCurEventType
private

Definition at line 184 of file BmnSlewingTOF700.h.

◆ fDat

UInt_t BmnSlewingTOF700::fDat
private

Definition at line 180 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fDataQueue

deque<UInt_t>* BmnSlewingTOF700::fDataQueue
private

Definition at line 188 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), GetQue(), and SetQue().

◆ fDetectorSetup

Bool_t BmnSlewingTOF700::fDetectorSetup[11]
private

Definition at line 118 of file BmnSlewingTOF700.h.

Referenced by SetDetectorSetup().

◆ fDigiTree

TTree* BmnSlewingTOF700::fDigiTree
private

Definition at line 145 of file BmnSlewingTOF700.h.

Referenced by SlewingTOF700Init().

◆ fEventId

UInt_t BmnSlewingTOF700::fEventId
private

Definition at line 130 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and GetEventId().

◆ fLengthRawFile

Long64_t BmnSlewingTOF700::fLengthRawFile
private

Definition at line 141 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700().

◆ fMaxEvent

ULong_t BmnSlewingTOF700::fMaxEvent
private

Definition at line 178 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ fNevents

UInt_t BmnSlewingTOF700::fNevents
private

◆ fPeriodId

UInt_t BmnSlewingTOF700::fPeriodId
private

◆ fPrevEventType

BmnEventType BmnSlewingTOF700::fPrevEventType
private

Definition at line 185 of file BmnSlewingTOF700.h.

◆ fRawFileIn

FILE* BmnSlewingTOF700::fRawFileIn
private

Definition at line 158 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fRawFileName

TString BmnSlewingTOF700::fRawFileName
private

Definition at line 147 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fRawTree

TTree* BmnSlewingTOF700::fRawTree
private

◆ fRootFileIn

TFile* BmnSlewingTOF700::fRootFileIn
private

◆ fRootFileName

TString BmnSlewingTOF700::fRootFileName
private

◆ fRootFileOut

TFile* BmnSlewingTOF700::fRootFileOut
private

Definition at line 157 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fRunEndTime

TTimeStamp BmnSlewingTOF700::fRunEndTime
private

Definition at line 128 of file BmnSlewingTOF700.h.

◆ fRunId

UInt_t BmnSlewingTOF700::fRunId
private

Definition at line 126 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), GetRunId(), GetT0Info(), and SetRunId().

◆ fRunStartTime

TTimeStamp BmnSlewingTOF700::fRunStartTime
private

Definition at line 127 of file BmnSlewingTOF700.h.

Referenced by FillTimeShiftsMap().

◆ fT0Serial

UInt_t BmnSlewingTOF700::fT0Serial
private

◆ fT0Time

Double_t BmnSlewingTOF700::fT0Time
private

◆ fT0Width

Double_t BmnSlewingTOF700::fT0Width
private

Definition at line 193 of file BmnSlewingTOF700.h.

Referenced by PreparationTOF700(), and SlewingTOF700().

◆ fTime_ns

Long64_t BmnSlewingTOF700::fTime_ns
private

Definition at line 134 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and FillTimeShiftsMap().

◆ fTime_s

Long64_t BmnSlewingTOF700::fTime_s
private

Definition at line 133 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and FillTimeShiftsMap().

◆ fTimeFinish_ns

Long64_t BmnSlewingTOF700::fTimeFinish_ns
private

Definition at line 139 of file BmnSlewingTOF700.h.

◆ fTimeFinish_s

Long64_t BmnSlewingTOF700::fTimeFinish_s
private

Definition at line 138 of file BmnSlewingTOF700.h.

◆ fTimeShifts

map<UInt_t, Long64_t> BmnSlewingTOF700::fTimeShifts
private

◆ fTimeStart_ns

Long64_t BmnSlewingTOF700::fTimeStart_ns
private

Definition at line 137 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fTimeStart_s

Long64_t BmnSlewingTOF700::fTimeStart_s
private

Definition at line 136 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fTof700GeomFileName

TString BmnSlewingTOF700::fTof700GeomFileName
private

Definition at line 149 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ fTof700MapFileName

TString BmnSlewingTOF700::fTof700MapFileName
private

◆ fTof700Mapper

BmnTof2Raw2DigitNew* BmnSlewingTOF700::fTof700Mapper
private

◆ fTrigChannelMapFileName

TString BmnSlewingTOF700::fTrigChannelMapFileName
private

◆ fTrigINLFile

ifstream BmnSlewingTOF700::fTrigINLFile
private

Definition at line 154 of file BmnSlewingTOF700.h.

◆ fTrigMapFile

ifstream BmnSlewingTOF700::fTrigMapFile
private

Definition at line 153 of file BmnSlewingTOF700.h.

◆ fTrigMapper

BmnTrigRaw2Digit* BmnSlewingTOF700::fTrigMapper
private

◆ fTrigPlaceMapFileName

TString BmnSlewingTOF700::fTrigPlaceMapFileName
private

◆ hrb

TClonesArray* BmnSlewingTOF700::hrb
private

Definition at line 165 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), BmnSlewingTOF700(), and SlewingTOF700Init().

◆ isRawRootInputFile

bool BmnSlewingTOF700::isRawRootInputFile
private

Definition at line 120 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and GetRunIdFromFile().

◆ leaps

map<TTimeStamp, Int_t> BmnSlewingTOF700::leaps
private

Definition at line 195 of file BmnSlewingTOF700.h.

Referenced by GetUTCShift(), and InitUTCShift().

◆ msc

TClonesArray* BmnSlewingTOF700::msc
private

Definition at line 169 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ pedestalAdc

TClonesArray* BmnSlewingTOF700::pedestalAdc
private

Definition at line 172 of file BmnSlewingTOF700.h.

◆ sync

TClonesArray* BmnSlewingTOF700::sync
private

◆ syncCounter

UInt_t BmnSlewingTOF700::syncCounter
private

Definition at line 181 of file BmnSlewingTOF700.h.

Referenced by BmnSlewingTOF700(), and BmnSlewingTOF700().

◆ tai_utc_dif

Int_t BmnSlewingTOF700::tai_utc_dif
private

Definition at line 197 of file BmnSlewingTOF700.h.

◆ tdc

TClonesArray* BmnSlewingTOF700::tdc
private

◆ TimeZero

const TTimeStamp BmnSlewingTOF700::TimeZero = TTimeStamp(time_t(0), 0)
private

Definition at line 115 of file BmnSlewingTOF700.h.

Referenced by FillTimeShiftsMap().

◆ tqdc_adc

TClonesArray* BmnSlewingTOF700::tqdc_adc
private

◆ tqdc_tdc

TClonesArray* BmnSlewingTOF700::tqdc_tdc
private

◆ utc_valid

TTimeStamp BmnSlewingTOF700::utc_valid
private

Definition at line 196 of file BmnSlewingTOF700.h.

Referenced by GetUTCShift(), and InitUTCShift().


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