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

#include <BmnTof1Raw2Digit.h>

Public Member Functions

 BmnTof1Raw2Digit ()
 BmnTof1Raw2Digit (Int_t nPeriod, Int_t nRun, Int_t verbose)
virtual ~BmnTof1Raw2Digit ()
Bool_t setRun (Int_t nPerion, Int_t nRun)
Bool_t setMapFromFile (TString placementMapFile, TString mapFile)
void saveMapToFile (std::string placementMapFile, std::string mapFile)
void setINLFromFile (std::string INLFile)
void saveINLToFile (std::string INLFile, unsigned int TDCSerial)
void print ()
void setVerbose (Int_t verbose)
void FillEvent (TClonesArray *data, unordered_map< UInt_t, Long64_t > *mapTS, TClonesArray *tof1digit)
 BmnTof1Raw2Digit ()
 BmnTof1Raw2Digit (Int_t nPeriod, Int_t nRun, Int_t verbose)
virtual ~BmnTof1Raw2Digit ()
Bool_t setRun (Int_t nPerion, Int_t nRun)
Bool_t setMapFromFile (TString placementMapFile, TString mapFile)
void saveMapToFile (std::string placementMapFile, std::string mapFile)
void setINLFromFile (std::string INLFile)
void saveINLToFile (std::string INLFile, unsigned int TDCSerial)
void print ()
void setVerbose (Int_t verbose)
void FillEvent (TClonesArray *data, unordered_map< UInt_t, Long64_t > *mapTS, TClonesArray *tof1digit)

Static Public Member Functions

static UShort_t ToGlobalChannel (UChar_t HptdcId, UChar_t channel)
static UShort_t ToGlobalChannel (UChar_t HptdcId, UChar_t channel)

Private Member Functions

void init ()
void plmap_insert (UInt_t Serial, UChar_t Slot, UInt_t TDCSerial)
void init ()
void plmap_insert (UInt_t Serial, UChar_t Slot, UInt_t TDCSerial)

Private Attributes

Int_t RunIndex
Int_t PeriodIndex
Int_t fVerbose
UInt_t fSerialForTS
std::map< std::pair< UInt_t, UChar_t >, UInt_t > PlacementMap
std::map< UInt_t, BmnTof1TDCParameters > TDCMap

Detailed Description

Definition at line 58 of file BmnTof1Raw2Digit.h.

Constructor & Destructor Documentation

◆ BmnTof1Raw2Digit() [1/4]

BmnTof1Raw2Digit::BmnTof1Raw2Digit ( )

Definition at line 67 of file BmnTof1Raw2Digit.cxx.

References init().

Referenced by ToGlobalChannel().

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

◆ BmnTof1Raw2Digit() [2/4]

BmnTof1Raw2Digit::BmnTof1Raw2Digit ( Int_t nPeriod,
Int_t nRun,
Int_t verbose = 0 )

Definition at line 74 of file BmnTof1Raw2Digit.cxx.

References fVerbose, init(), and setRun().

Here is the call graph for this function:

◆ ~BmnTof1Raw2Digit() [1/2]

BmnTof1Raw2Digit::~BmnTof1Raw2Digit ( )
virtual

Definition at line 83 of file BmnTof1Raw2Digit.cxx.

◆ BmnTof1Raw2Digit() [3/4]

BmnTof1Raw2Digit::BmnTof1Raw2Digit ( )

◆ BmnTof1Raw2Digit() [4/4]

BmnTof1Raw2Digit::BmnTof1Raw2Digit ( Int_t nPeriod,
Int_t nRun,
Int_t verbose )

◆ ~BmnTof1Raw2Digit() [2/2]

virtual BmnTof1Raw2Digit::~BmnTof1Raw2Digit ( )
virtual

Member Function Documentation

◆ FillEvent() [1/2]

void BmnTof1Raw2Digit::FillEvent ( TClonesArray * data,
unordered_map< UInt_t, Long64_t > * mapTS,
TClonesArray * tof1digit )

◆ FillEvent() [2/2]

void BmnTof1Raw2Digit::FillEvent ( TClonesArray * data,
unordered_map< UInt_t, Long64_t > * mapTS,
TClonesArray * tof1digit )

◆ init() [1/2]

void BmnTof1Raw2Digit::init ( )
private

Definition at line 87 of file BmnTof1Raw2Digit.cxx.

Referenced by BmnTof1Raw2Digit(), and BmnTof1Raw2Digit().

Here is the caller graph for this function:

◆ init() [2/2]

void BmnTof1Raw2Digit::init ( )
private

◆ plmap_insert() [1/2]

void BmnTof1Raw2Digit::plmap_insert ( UInt_t Serial,
UChar_t Slot,
UInt_t TDCSerial )
private

Definition at line 60 of file BmnTof1Raw2Digit.cxx.

References PlacementMap.

Referenced by setMapFromFile(), and setRun().

Here is the caller graph for this function:

◆ plmap_insert() [2/2]

void BmnTof1Raw2Digit::plmap_insert ( UInt_t Serial,
UChar_t Slot,
UInt_t TDCSerial )
private

◆ print() [1/2]

void BmnTof1Raw2Digit::print ( )
inline

Definition at line 72 of file BmnTof1Raw2Digit.h.

◆ print() [2/2]

void BmnTof1Raw2Digit::print ( )
inline

Definition at line 72 of file BmnTof1Raw2Digit.h.

◆ saveINLToFile() [1/2]

void BmnTof1Raw2Digit::saveINLToFile ( std::string INLFile,
unsigned int TDCSerial )

◆ saveINLToFile() [2/2]

void BmnTof1Raw2Digit::saveINLToFile ( std::string INLFile,
unsigned int TDCSerial )

◆ saveMapToFile() [1/2]

void BmnTof1Raw2Digit::saveMapToFile ( std::string placementMapFile,
std::string mapFile )

◆ saveMapToFile() [2/2]

void BmnTof1Raw2Digit::saveMapToFile ( std::string placementMapFile,
std::string mapFile )

◆ setINLFromFile() [1/2]

void BmnTof1Raw2Digit::setINLFromFile ( std::string INLFile)

◆ setINLFromFile() [2/2]

void BmnTof1Raw2Digit::setINLFromFile ( std::string INLFile)

◆ setMapFromFile() [1/2]

Bool_t BmnTof1Raw2Digit::setMapFromFile ( TString placementMapFile,
TString mapFile )

Definition at line 264 of file BmnTof1Raw2Digit.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RED, ANSI_COLOR_RESET, TString::Data(), ff, BmnTof1Map2::plane, plmap_insert(), BmnTof1Map2::side, BmnTof1Map2::strip, TDCMap, TOF1_LEFT, and TOF1_RIGHT.

Here is the call graph for this function:

◆ setMapFromFile() [2/2]

Bool_t BmnTof1Raw2Digit::setMapFromFile ( TString placementMapFile,
TString mapFile )

◆ setRun() [1/2]

Bool_t BmnTof1Raw2Digit::setRun ( Int_t nPerion,
Int_t nRun )

Definition at line 101 of file BmnTof1Raw2Digit.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RED, ANSI_COLOR_RESET, MapDVectorValue::channel, MapIntValue::channel, UniDetectorParameter::GetDetectorParameter(), UniDetectorParameter::GetValue(), i, TdcInlValue::inl, PeriodIndex, BmnTof1Map2::plane, plmap_insert(), RunIndex, MapDVectorValue::serial, MapIntValue::serial, TdcInlValue::serial, BmnTof1Map2::side, BmnTof1Map2::strip, TDCMap, TOF1_BIN_NUMBER, TOF1_CHANNEL_NUMBER, TOF1_LEFT, TOF1_RIGHT, MapDVectorValue::value, and MapIntValue::value.

Referenced by BmnTof1Raw2Digit().

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

◆ setRun() [2/2]

Bool_t BmnTof1Raw2Digit::setRun ( Int_t nPerion,
Int_t nRun )

◆ setVerbose() [1/2]

void BmnTof1Raw2Digit::setVerbose ( Int_t verbose)
inline

Definition at line 73 of file BmnTof1Raw2Digit.h.

References fVerbose.

◆ setVerbose() [2/2]

void BmnTof1Raw2Digit::setVerbose ( Int_t verbose)
inline

Definition at line 73 of file BmnTof1Raw2Digit.h.

References fVerbose.

◆ ToGlobalChannel() [1/2]

UShort_t BmnTof1Raw2Digit::ToGlobalChannel ( UChar_t HptdcId,
UChar_t channel )
static

Definition at line 94 of file BmnTof1Raw2Digit.cxx.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ ToGlobalChannel() [2/2]

UShort_t BmnTof1Raw2Digit::ToGlobalChannel ( UChar_t HptdcId,
UChar_t channel )
static

References BmnTof1Raw2Digit().

Here is the call graph for this function:

Member Data Documentation

◆ fSerialForTS

UInt_t BmnTof1Raw2Digit::fSerialForTS
private

Definition at line 83 of file BmnTof1Raw2Digit.h.

Referenced by FillEvent(), and init().

◆ fVerbose

Int_t BmnTof1Raw2Digit::fVerbose
private

Definition at line 82 of file BmnTof1Raw2Digit.h.

Referenced by BmnTof1Raw2Digit(), FillEvent(), init(), and setVerbose().

◆ PeriodIndex

Int_t BmnTof1Raw2Digit::PeriodIndex
private

Definition at line 82 of file BmnTof1Raw2Digit.h.

Referenced by FillEvent(), init(), and setRun().

◆ PlacementMap

std::map< std::pair< UInt_t, UChar_t >, UInt_t > BmnTof1Raw2Digit::PlacementMap
private

Definition at line 84 of file BmnTof1Raw2Digit.h.

Referenced by FillEvent(), init(), and plmap_insert().

◆ RunIndex

Int_t BmnTof1Raw2Digit::RunIndex
private

Definition at line 82 of file BmnTof1Raw2Digit.h.

Referenced by FillEvent(), init(), and setRun().

◆ TDCMap

std::map< UInt_t, BmnTof1TDCParameters > BmnTof1Raw2Digit::TDCMap
private

Definition at line 86 of file BmnTof1Raw2Digit.h.

Referenced by FillEvent(), init(), setMapFromFile(), and setRun().


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