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

#include <BmnTof701Raw2Digit.h>

Public Member Functions

 BmnTof701Raw2Digit ()
 BmnTof701Raw2Digit (Int_t nPeriod, Int_t nRun, Int_t verbose)
virtual ~BmnTof701Raw2Digit ()
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 *Tof701digit)
 BmnTof701Raw2Digit ()
 BmnTof701Raw2Digit (Int_t nPeriod, Int_t nRun, Int_t verbose)
virtual ~BmnTof701Raw2Digit ()
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 *Tof701digit)

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, BmnTof701TDCParameters > TDCMap

Detailed Description

Definition at line 58 of file BmnTof701Raw2Digit.h.

Constructor & Destructor Documentation

◆ BmnTof701Raw2Digit() [1/4]

BmnTof701Raw2Digit::BmnTof701Raw2Digit ( )

Definition at line 66 of file BmnTof701Raw2Digit.cxx.

References init().

Referenced by ToGlobalChannel().

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

◆ BmnTof701Raw2Digit() [2/4]

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

Definition at line 73 of file BmnTof701Raw2Digit.cxx.

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

Here is the call graph for this function:

◆ ~BmnTof701Raw2Digit() [1/2]

BmnTof701Raw2Digit::~BmnTof701Raw2Digit ( )
virtual

Definition at line 82 of file BmnTof701Raw2Digit.cxx.

◆ BmnTof701Raw2Digit() [3/4]

BmnTof701Raw2Digit::BmnTof701Raw2Digit ( )

◆ BmnTof701Raw2Digit() [4/4]

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

◆ ~BmnTof701Raw2Digit() [2/2]

virtual BmnTof701Raw2Digit::~BmnTof701Raw2Digit ( )
virtual

Member Function Documentation

◆ FillEvent() [1/2]

void BmnTof701Raw2Digit::FillEvent ( TClonesArray * data,
unordered_map< UInt_t, Long64_t > * mapTS,
TClonesArray * Tof701digit )

◆ FillEvent() [2/2]

void BmnTof701Raw2Digit::FillEvent ( TClonesArray * data,
unordered_map< UInt_t, Long64_t > * mapTS,
TClonesArray * Tof701digit )

◆ init() [1/2]

void BmnTof701Raw2Digit::init ( )
private

Definition at line 86 of file BmnTof701Raw2Digit.cxx.

Referenced by BmnTof701Raw2Digit(), and BmnTof701Raw2Digit().

Here is the caller graph for this function:

◆ init() [2/2]

void BmnTof701Raw2Digit::init ( )
private

◆ plmap_insert() [1/2]

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

Definition at line 59 of file BmnTof701Raw2Digit.cxx.

References PlacementMap.

Referenced by setMapFromFile(), and setRun().

Here is the caller graph for this function:

◆ plmap_insert() [2/2]

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

◆ print() [1/2]

void BmnTof701Raw2Digit::print ( )
inline

Definition at line 72 of file BmnTof701Raw2Digit.h.

◆ print() [2/2]

void BmnTof701Raw2Digit::print ( )
inline

Definition at line 72 of file BmnTof701Raw2Digit.h.

◆ saveINLToFile() [1/2]

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

◆ saveINLToFile() [2/2]

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

◆ saveMapToFile() [1/2]

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

◆ saveMapToFile() [2/2]

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

◆ setINLFromFile() [1/2]

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

◆ setINLFromFile() [2/2]

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

◆ setMapFromFile() [1/2]

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

Definition at line 276 of file BmnTof701Raw2Digit.cxx.

References ANSI_COLOR_RED, ANSI_COLOR_RESET, TString::Data(), ff, fVerbose, BmnTof701Map2::plane, plmap_insert(), BmnTof701Map2::side, BmnTof701Map2::strip, TDCMap, TOF701_LEFT, and TOF701_RIGHT.

Here is the call graph for this function:

◆ setMapFromFile() [2/2]

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

◆ setRun() [1/2]

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

Definition at line 100 of file BmnTof701Raw2Digit.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RED, ANSI_COLOR_RESET, MapDVectorValue::channel, MapIntValue::channel, fVerbose, UniDetectorParameter::GetDetectorParameter(), UniDetectorParameter::GetValue(), i, TdcInlValue::inl, PeriodIndex, BmnTof701Map2::plane, plmap_insert(), RunIndex, MapDVectorValue::serial, MapIntValue::serial, TdcInlValue::serial, BmnTof701Map2::side, BmnTof701Map2::strip, TDCMap, TOF701_BIN_NUMBER, TOF701_CHANNEL_NUMBER, TOF701_LEFT, TOF701_RIGHT, MapDVectorValue::value, and MapIntValue::value.

Referenced by BmnTof701Raw2Digit().

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

◆ setRun() [2/2]

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

◆ setVerbose() [1/2]

void BmnTof701Raw2Digit::setVerbose ( Int_t verbose)
inline

Definition at line 73 of file BmnTof701Raw2Digit.h.

References fVerbose.

◆ setVerbose() [2/2]

void BmnTof701Raw2Digit::setVerbose ( Int_t verbose)
inline

Definition at line 73 of file BmnTof701Raw2Digit.h.

References fVerbose.

◆ ToGlobalChannel() [1/2]

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

Definition at line 93 of file BmnTof701Raw2Digit.cxx.

Referenced by FillEvent().

Here is the caller graph for this function:

◆ ToGlobalChannel() [2/2]

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

References BmnTof701Raw2Digit().

Here is the call graph for this function:

Member Data Documentation

◆ fSerialForTS

UInt_t BmnTof701Raw2Digit::fSerialForTS
private

Definition at line 83 of file BmnTof701Raw2Digit.h.

Referenced by FillEvent(), and init().

◆ fVerbose

Int_t BmnTof701Raw2Digit::fVerbose
private

◆ PeriodIndex

Int_t BmnTof701Raw2Digit::PeriodIndex
private

Definition at line 82 of file BmnTof701Raw2Digit.h.

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

◆ PlacementMap

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

Definition at line 84 of file BmnTof701Raw2Digit.h.

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

◆ RunIndex

Int_t BmnTof701Raw2Digit::RunIndex
private

Definition at line 82 of file BmnTof701Raw2Digit.h.

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

◆ TDCMap

std::map< UInt_t, BmnTof701TDCParameters > BmnTof701Raw2Digit::TDCMap
private

Definition at line 86 of file BmnTof701Raw2Digit.h.

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


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