BmnRoot
Loading...
Searching...
No Matches
BmnRawDataDecoder Class Reference

#include <BmnRawDataDecoder.h>

Public Member Functions

 BmnRawDataDecoder (TString file="", TString outfile="", ULong_t nEvents=0, ULong_t period=8)
 
virtual ~BmnRawDataDecoder ()
 
BmnStatus ConvertRawToRoot ()
 
void FillAdcQa ()
 
void SaveAdcQa ()
 
void FillProfiles ()
 
void FillNoisyChannels ()
 
BmnStatus DecodeDataToDigi ()
 
void CreateConverter ()
 
void CreateDecoder ()
 
BmnStatus InitConverter (TString FileName)
 
BmnStatus InitConverter ()
 
BmnStatus InitDecoder ()
 
void ConnectForward ()
 
BmnStatus ConvertRawToRootIterate (UInt_t *buf, UInt_t len)
 
BmnStatus DecodeDataToDigiIterate ()
 
void SetRunId (UInt_t v)
 
void SetPeriodId (UInt_t v)
 
void SetApplyThreshold (bool b)
 
UInt_t GetRunId () const
 
UInt_t GetPeriodId () const
 
UInt_t GetNevents () const
 
UInt_t GetEventId () const
 
TTimeStamp GetRunStartTime () const
 
TTimeStamp GetRunEndTime () const
 
TString GetRootFileName ()
 
void SetDetectorSetup (std::map< DetectorId, bool > setup)
 
void SetDecoderConfigFileName (string FileName)
 
void SetEvForPedestals (UInt_t v)
 
UInt_t GetEvForPedestals ()
 
void SetBmnSetup (BmnSetup v)
 
BmnSetup GetBmnSetup () const
 
void SetVerbose (Int_t v)
 
Int_t GetVerbose () const
 
void SetUseCalibFile (bool v)
 
bool GetUseCalibFile () const
 
void SetRawRootDirPath (TString path)
 
void SetRawRootFile (TString filename)
 
void SetDigiRootFile (TString filename)
 
BmnRawSourceGetRawConverter () const
 
BmnDecoderGetDecoder () const
 
void SetTaskMode (bool v=true)
 
bool GetTaskMode () const
 
void SetForwardMode (bool v=true)
 
bool GetForwardMode () const
 
 BmnRawDataDecoder (TString file="", TString outfile="", ULong_t nEvents=0, ULong_t period=8)
 
virtual ~BmnRawDataDecoder ()
 
BmnStatus ConvertRawToRoot ()
 
void FillAdcQa ()
 
void SaveAdcQa ()
 
void FillProfiles ()
 
void FillNoisyChannels ()
 
BmnStatus DecodeDataToDigi ()
 
void CreateConverter ()
 
void CreateDecoder ()
 
BmnStatus InitConverter (TString FileName)
 
BmnStatus InitConverter ()
 
BmnStatus InitDecoder ()
 
void ConnectForward ()
 
BmnStatus ConvertRawToRootIterate (UInt_t *buf, UInt_t len)
 
BmnStatus DecodeDataToDigiIterate ()
 
void SetRunId (UInt_t v)
 
void SetPeriodId (UInt_t v)
 
void SetApplyThreshold (bool b)
 
UInt_t GetRunId () const
 
UInt_t GetPeriodId () const
 
UInt_t GetNevents () const
 
UInt_t GetEventId () const
 
TTimeStamp GetRunStartTime () const
 
TTimeStamp GetRunEndTime () const
 
TString GetRootFileName ()
 
void SetDetectorSetup (std::map< DetectorId, bool > setup)
 
void SetDecoderConfigFileName (string FileName)
 
void SetEvForPedestals (UInt_t v)
 
UInt_t GetEvForPedestals ()
 
void SetBmnSetup (BmnSetup v)
 
BmnSetup GetBmnSetup () const
 
void SetVerbose (Int_t v)
 
Int_t GetVerbose () const
 
void SetUseCalibFile (bool v)
 
bool GetUseCalibFile () const
 
void SetRawRootDirPath (TString path)
 
void SetRawRootFile (TString filename)
 
void SetDigiRootFile (TString filename)
 
BmnRawSourceGetRawConverter () const
 
BmnDecoderGetDecoder () const
 
void SetTaskMode (bool v=true)
 
bool GetTaskMode () const
 
void SetForwardMode (bool v=true)
 
bool GetForwardMode () const
 

Static Public Member Functions

static Int_t GetRunIdFromFile (TString name)
 
static Bool_t IsRootFile (TString name)
 
static Bool_t IsRawFile (TString name)
 
static Int_t GetRunIdFromFile (TString name)
 
static Bool_t IsRootFile (TString name)
 
static Bool_t IsRawFile (TString name)
 

Static Public Attributes

static double correctionGem = 0
 
static double correctionCsc = 0
 
static double correctionSil = 0
 
static double threshGem = 3.0
 
static double threshCsc = 3.0
 
static double threshSil = 3.0
 
static int samplesGem = 32
 
static int samplesCsc = 32
 
static int samplesSil = 32
 

Detailed Description

Definition at line 57 of file BmnRawDataDecoder.h.

Constructor & Destructor Documentation

◆ BmnRawDataDecoder() [1/2]

BmnRawDataDecoder::BmnRawDataDecoder ( TString  file = "",
TString  outfile = "",
ULong_t  nEvents = 0,
ULong_t  period = 8 
)

◆ ~BmnRawDataDecoder() [1/2]

BmnRawDataDecoder::~BmnRawDataDecoder ( )
virtual

Definition at line 63 of file BmnRawDataDecoder.cxx.

◆ BmnRawDataDecoder() [2/2]

BmnRawDataDecoder::BmnRawDataDecoder ( TString  file = "",
TString  outfile = "",
ULong_t  nEvents = 0,
ULong_t  period = 8 
)

◆ ~BmnRawDataDecoder() [2/2]

virtual BmnRawDataDecoder::~BmnRawDataDecoder ( )
virtual

Member Function Documentation

◆ ConnectForward() [1/2]

◆ ConnectForward() [2/2]

void BmnRawDataDecoder::ConnectForward ( )

◆ ConvertRawToRoot() [1/2]

BmnStatus BmnRawDataDecoder::ConvertRawToRoot ( )

Definition at line 144 of file BmnRawDataDecoder.cxx.

References BmnRawSource::ConvertRawToRoot(), CreateConverter(), and kBMNSUCCESS.

Referenced by BmnDataToRoot().

◆ ConvertRawToRoot() [2/2]

BmnStatus BmnRawDataDecoder::ConvertRawToRoot ( )

◆ ConvertRawToRootIterate() [1/2]

BmnStatus BmnRawDataDecoder::ConvertRawToRootIterate ( UInt_t *  buf,
UInt_t  len 
)

◆ ConvertRawToRootIterate() [2/2]

BmnStatus BmnRawDataDecoder::ConvertRawToRootIterate ( UInt_t *  buf,
UInt_t  len 
)

◆ CreateConverter() [1/2]

void BmnRawDataDecoder::CreateConverter ( )

◆ CreateConverter() [2/2]

void BmnRawDataDecoder::CreateConverter ( )

◆ CreateDecoder() [1/2]

◆ CreateDecoder() [2/2]

void BmnRawDataDecoder::CreateDecoder ( )

◆ DecodeDataToDigi() [1/2]

BmnStatus BmnRawDataDecoder::DecodeDataToDigi ( )

Definition at line 156 of file BmnRawDataDecoder.cxx.

References BmnDecoder::DecodeDataToDigi().

Referenced by BmnDataToRoot().

◆ DecodeDataToDigi() [2/2]

BmnStatus BmnRawDataDecoder::DecodeDataToDigi ( )

◆ DecodeDataToDigiIterate() [1/2]

BmnStatus BmnRawDataDecoder::DecodeDataToDigiIterate ( )

◆ DecodeDataToDigiIterate() [2/2]

BmnStatus BmnRawDataDecoder::DecodeDataToDigiIterate ( )

◆ FillAdcQa() [1/2]

void BmnRawDataDecoder::FillAdcQa ( )

◆ FillAdcQa() [2/2]

void BmnRawDataDecoder::FillAdcQa ( )

◆ FillNoisyChannels() [1/2]

void BmnRawDataDecoder::FillNoisyChannels ( )

◆ FillNoisyChannels() [2/2]

void BmnRawDataDecoder::FillNoisyChannels ( )

◆ FillProfiles() [1/2]

void BmnRawDataDecoder::FillProfiles ( )

◆ FillProfiles() [2/2]

void BmnRawDataDecoder::FillProfiles ( )

◆ GetBmnSetup() [1/2]

BmnSetup BmnRawDataDecoder::GetBmnSetup ( ) const
inline

Definition at line 167 of file BmnRawDataDecoder.h.

◆ GetBmnSetup() [2/2]

BmnSetup BmnRawDataDecoder::GetBmnSetup ( ) const
inline

Definition at line 167 of file BmnRawDataDecoder.h.

◆ GetDecoder() [1/2]

◆ GetDecoder() [2/2]

BmnDecoder * BmnRawDataDecoder::GetDecoder ( ) const
inline

Definition at line 193 of file BmnRawDataDecoder.h.

◆ GetEventId() [1/2]

UInt_t BmnRawDataDecoder::GetEventId ( ) const
inline

Definition at line 114 of file BmnRawDataDecoder.h.

References BmnDecoder::GetEventId(), and BmnRawSource::GetEventId().

◆ GetEventId() [2/2]

UInt_t BmnRawDataDecoder::GetEventId ( ) const
inline

Definition at line 114 of file BmnRawDataDecoder.h.

References BmnDecoder::GetEventId(), and BmnRawSource::GetEventId().

◆ GetEvForPedestals() [1/2]

UInt_t BmnRawDataDecoder::GetEvForPedestals ( )
inline

Definition at line 163 of file BmnRawDataDecoder.h.

◆ GetEvForPedestals() [2/2]

UInt_t BmnRawDataDecoder::GetEvForPedestals ( )
inline

Definition at line 163 of file BmnRawDataDecoder.h.

◆ GetForwardMode() [1/2]

bool BmnRawDataDecoder::GetForwardMode ( ) const
inline

Definition at line 218 of file BmnRawDataDecoder.h.

◆ GetForwardMode() [2/2]

bool BmnRawDataDecoder::GetForwardMode ( ) const
inline

Definition at line 218 of file BmnRawDataDecoder.h.

◆ GetNevents() [1/2]

UInt_t BmnRawDataDecoder::GetNevents ( ) const
inline

Definition at line 112 of file BmnRawDataDecoder.h.

◆ GetNevents() [2/2]

UInt_t BmnRawDataDecoder::GetNevents ( ) const
inline

Definition at line 112 of file BmnRawDataDecoder.h.

◆ GetPeriodId() [1/2]

UInt_t BmnRawDataDecoder::GetPeriodId ( ) const
inline

Definition at line 110 of file BmnRawDataDecoder.h.

Referenced by BmnDataToRoot().

◆ GetPeriodId() [2/2]

UInt_t BmnRawDataDecoder::GetPeriodId ( ) const
inline

Definition at line 110 of file BmnRawDataDecoder.h.

◆ GetRawConverter() [1/2]

BmnRawSource * BmnRawDataDecoder::GetRawConverter ( ) const
inline

Definition at line 191 of file BmnRawDataDecoder.h.

Referenced by BmnOnlineDecoder::ProcessStream().

◆ GetRawConverter() [2/2]

BmnRawSource * BmnRawDataDecoder::GetRawConverter ( ) const
inline

Definition at line 191 of file BmnRawDataDecoder.h.

◆ GetRootFileName() [1/2]

TString BmnRawDataDecoder::GetRootFileName ( )
inline

Definition at line 138 of file BmnRawDataDecoder.h.

Referenced by BmnDataToRoot().

◆ GetRootFileName() [2/2]

TString BmnRawDataDecoder::GetRootFileName ( )
inline

Definition at line 138 of file BmnRawDataDecoder.h.

◆ GetRunEndTime() [1/2]

TTimeStamp BmnRawDataDecoder::GetRunEndTime ( ) const
inline

◆ GetRunEndTime() [2/2]

TTimeStamp BmnRawDataDecoder::GetRunEndTime ( ) const
inline

◆ GetRunId() [1/2]

UInt_t BmnRawDataDecoder::GetRunId ( ) const
inline

Definition at line 108 of file BmnRawDataDecoder.h.

Referenced by BmnDataToRoot().

◆ GetRunId() [2/2]

UInt_t BmnRawDataDecoder::GetRunId ( ) const
inline

Definition at line 108 of file BmnRawDataDecoder.h.

◆ GetRunIdFromFile() [1/2]

Int_t BmnRawDataDecoder::GetRunIdFromFile ( TString  name)
static

Definition at line 161 of file BmnRawDataDecoder.cxx.

Referenced by BmnRawDataDecoder(), and BmnConverter::FeedFile().

◆ GetRunIdFromFile() [2/2]

static Int_t BmnRawDataDecoder::GetRunIdFromFile ( TString  name)
static

◆ GetRunStartTime() [1/2]

TTimeStamp BmnRawDataDecoder::GetRunStartTime ( ) const
inline

◆ GetRunStartTime() [2/2]

TTimeStamp BmnRawDataDecoder::GetRunStartTime ( ) const
inline

◆ GetTaskMode() [1/2]

bool BmnRawDataDecoder::GetTaskMode ( ) const
inline

Definition at line 204 of file BmnRawDataDecoder.h.

◆ GetTaskMode() [2/2]

bool BmnRawDataDecoder::GetTaskMode ( ) const
inline

Definition at line 204 of file BmnRawDataDecoder.h.

◆ GetUseCalibFile() [1/2]

bool BmnRawDataDecoder::GetUseCalibFile ( ) const
inline

Definition at line 175 of file BmnRawDataDecoder.h.

◆ GetUseCalibFile() [2/2]

bool BmnRawDataDecoder::GetUseCalibFile ( ) const
inline

Definition at line 175 of file BmnRawDataDecoder.h.

◆ GetVerbose() [1/2]

Int_t BmnRawDataDecoder::GetVerbose ( ) const
inline

Definition at line 171 of file BmnRawDataDecoder.h.

◆ GetVerbose() [2/2]

Int_t BmnRawDataDecoder::GetVerbose ( ) const
inline

Definition at line 171 of file BmnRawDataDecoder.h.

◆ InitConverter() [1/4]

BmnStatus BmnRawDataDecoder::InitConverter ( )

Definition at line 115 of file BmnRawDataDecoder.cxx.

References BmnRawSource::InitConverter().

◆ InitConverter() [2/4]

BmnStatus BmnRawDataDecoder::InitConverter ( )

◆ InitConverter() [3/4]

BmnStatus BmnRawDataDecoder::InitConverter ( TString  FileName)

Definition at line 110 of file BmnRawDataDecoder.cxx.

References BmnRawSource::InitConverter().

◆ InitConverter() [4/4]

BmnStatus BmnRawDataDecoder::InitConverter ( TString  FileName)

◆ InitDecoder() [1/2]

BmnStatus BmnRawDataDecoder::InitDecoder ( )

Definition at line 120 of file BmnRawDataDecoder.cxx.

References BmnDecoder::InitDecoder().

◆ InitDecoder() [2/2]

BmnStatus BmnRawDataDecoder::InitDecoder ( )

◆ IsRawFile() [1/2]

Bool_t BmnRawDataDecoder::IsRawFile ( TString  name)
static

Definition at line 176 of file BmnRawDataDecoder.cxx.

◆ IsRawFile() [2/2]

static Bool_t BmnRawDataDecoder::IsRawFile ( TString  name)
static

◆ IsRootFile() [1/2]

Bool_t BmnRawDataDecoder::IsRootFile ( TString  name)
static

Definition at line 170 of file BmnRawDataDecoder.cxx.

Referenced by BmnRawDataDecoder().

◆ IsRootFile() [2/2]

static Bool_t BmnRawDataDecoder::IsRootFile ( TString  name)
static

◆ SaveAdcQa() [1/2]

void BmnRawDataDecoder::SaveAdcQa ( )

◆ SaveAdcQa() [2/2]

void BmnRawDataDecoder::SaveAdcQa ( )

◆ SetApplyThreshold() [1/2]

void BmnRawDataDecoder::SetApplyThreshold ( bool  b)
inline

Definition at line 102 of file BmnRawDataDecoder.h.

Referenced by BmnDataToRoot().

◆ SetApplyThreshold() [2/2]

void BmnRawDataDecoder::SetApplyThreshold ( bool  b)
inline

Definition at line 102 of file BmnRawDataDecoder.h.

◆ SetBmnSetup() [1/2]

void BmnRawDataDecoder::SetBmnSetup ( BmnSetup  v)
inline

Definition at line 165 of file BmnRawDataDecoder.h.

References v.

Referenced by BmnDataToRoot().

◆ SetBmnSetup() [2/2]

void BmnRawDataDecoder::SetBmnSetup ( BmnSetup  v)
inline

Definition at line 165 of file BmnRawDataDecoder.h.

References v.

◆ SetDecoderConfigFileName() [1/2]

void BmnRawDataDecoder::SetDecoderConfigFileName ( string  FileName)
inline

◆ SetDecoderConfigFileName() [2/2]

void BmnRawDataDecoder::SetDecoderConfigFileName ( string  FileName)
inline

◆ SetDetectorSetup() [1/2]

void BmnRawDataDecoder::SetDetectorSetup ( std::map< DetectorId, bool >  setup)
inline

Definition at line 140 of file BmnRawDataDecoder.h.

References BmnDecoder::SetDetectorSetup().

Referenced by BmnDataToRoot().

◆ SetDetectorSetup() [2/2]

void BmnRawDataDecoder::SetDetectorSetup ( std::map< DetectorId, bool >  setup)
inline

Definition at line 140 of file BmnRawDataDecoder.h.

References BmnDecoder::SetDetectorSetup().

◆ SetDigiRootFile() [1/2]

void BmnRawDataDecoder::SetDigiRootFile ( TString  filename)
inline

Definition at line 185 of file BmnRawDataDecoder.h.

◆ SetDigiRootFile() [2/2]

void BmnRawDataDecoder::SetDigiRootFile ( TString  filename)
inline

Definition at line 185 of file BmnRawDataDecoder.h.

◆ SetEvForPedestals() [1/2]

void BmnRawDataDecoder::SetEvForPedestals ( UInt_t  v)
inline

Definition at line 156 of file BmnRawDataDecoder.h.

References BmnDecoder::SetEvForPedestals(), and v.

◆ SetEvForPedestals() [2/2]

void BmnRawDataDecoder::SetEvForPedestals ( UInt_t  v)
inline

Definition at line 156 of file BmnRawDataDecoder.h.

References BmnDecoder::SetEvForPedestals(), and v.

◆ SetForwardMode() [1/2]

void BmnRawDataDecoder::SetForwardMode ( bool  v = true)
inline

◆ SetForwardMode() [2/2]

void BmnRawDataDecoder::SetForwardMode ( bool  v = true)
inline

◆ SetPeriodId() [1/2]

void BmnRawDataDecoder::SetPeriodId ( UInt_t  v)
inline

Definition at line 93 of file BmnRawDataDecoder.h.

References BmnDecoder::SetPeriodId(), BmnRawSource::SetPeriodId(), and v.

◆ SetPeriodId() [2/2]

void BmnRawDataDecoder::SetPeriodId ( UInt_t  v)
inline

Definition at line 93 of file BmnRawDataDecoder.h.

References BmnDecoder::SetPeriodId(), BmnRawSource::SetPeriodId(), and v.

◆ SetRawRootDirPath() [1/2]

void BmnRawDataDecoder::SetRawRootDirPath ( TString  path)
inline

Definition at line 177 of file BmnRawDataDecoder.h.

◆ SetRawRootDirPath() [2/2]

void BmnRawDataDecoder::SetRawRootDirPath ( TString  path)
inline

Definition at line 177 of file BmnRawDataDecoder.h.

◆ SetRawRootFile() [1/2]

void BmnRawDataDecoder::SetRawRootFile ( TString  filename)
inline

Definition at line 183 of file BmnRawDataDecoder.h.

◆ SetRawRootFile() [2/2]

void BmnRawDataDecoder::SetRawRootFile ( TString  filename)
inline

Definition at line 183 of file BmnRawDataDecoder.h.

◆ SetRunId() [1/2]

void BmnRawDataDecoder::SetRunId ( UInt_t  v)
inline

Definition at line 84 of file BmnRawDataDecoder.h.

References BmnDecoder::SetRunId(), BmnRawSource::SetRunId(), and v.

◆ SetRunId() [2/2]

void BmnRawDataDecoder::SetRunId ( UInt_t  v)
inline

Definition at line 84 of file BmnRawDataDecoder.h.

References BmnDecoder::SetRunId(), BmnRawSource::SetRunId(), and v.

◆ SetTaskMode() [1/2]

void BmnRawDataDecoder::SetTaskMode ( bool  v = true)
inline

Definition at line 195 of file BmnRawDataDecoder.h.

References BmnDecoder::SetTaskMode(), BmnRawSource::SetTaskMode(), and v.

◆ SetTaskMode() [2/2]

void BmnRawDataDecoder::SetTaskMode ( bool  v = true)
inline

Definition at line 195 of file BmnRawDataDecoder.h.

References BmnDecoder::SetTaskMode(), BmnRawSource::SetTaskMode(), and v.

◆ SetUseCalibFile() [1/2]

void BmnRawDataDecoder::SetUseCalibFile ( bool  v)
inline

Definition at line 173 of file BmnRawDataDecoder.h.

References v.

◆ SetUseCalibFile() [2/2]

void BmnRawDataDecoder::SetUseCalibFile ( bool  v)
inline

Definition at line 173 of file BmnRawDataDecoder.h.

References v.

◆ SetVerbose() [1/2]

void BmnRawDataDecoder::SetVerbose ( Int_t  v)
inline

Definition at line 169 of file BmnRawDataDecoder.h.

References v.

Referenced by BmnDataToRoot().

◆ SetVerbose() [2/2]

void BmnRawDataDecoder::SetVerbose ( Int_t  v)
inline

Definition at line 169 of file BmnRawDataDecoder.h.

References v.

Member Data Documentation

◆ correctionCsc

static double BmnRawDataDecoder::correctionCsc = 0
static

Definition at line 60 of file BmnRawDataDecoder.h.

◆ correctionGem

static double BmnRawDataDecoder::correctionGem = 0
static

Definition at line 60 of file BmnRawDataDecoder.h.

◆ correctionSil

static double BmnRawDataDecoder::correctionSil = 0
static

◆ samplesCsc

static int BmnRawDataDecoder::samplesCsc = 32
static

Definition at line 62 of file BmnRawDataDecoder.h.

Referenced by BmnCscRaw2Digit::FillNoisyChannels().

◆ samplesGem

static int BmnRawDataDecoder::samplesGem = 32
static

Definition at line 62 of file BmnRawDataDecoder.h.

Referenced by BmnGemRaw2Digit::FillNoisyChannels().

◆ samplesSil

static int BmnRawDataDecoder::samplesSil = 32
static

◆ threshCsc

static double BmnRawDataDecoder::threshCsc = 3.0
static

Definition at line 61 of file BmnRawDataDecoder.h.

Referenced by BmnCscRaw2Digit::FillNoisyChannels().

◆ threshGem

static double BmnRawDataDecoder::threshGem = 3.0
static

Definition at line 61 of file BmnRawDataDecoder.h.

Referenced by BmnGemRaw2Digit::FillNoisyChannels().

◆ threshSil

static double BmnRawDataDecoder::threshSil = 3.0
static

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