ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TPCDaqDefs::FEEv1 Namespace Reference

TPC v1 FEE test stand decoder. More...

Classes

class  SampleFit_PowerLawDoubleExp_PDFMaker
 

Functions

bool SampleFit_PowerLawDoubleExp (const std::vector< double > &samples,double &peak,double &peak_sample,double &pedestal,std::map< int, double > &parameters_io,const int verbosity=0)
 Power law double exp fit.
 
double SignalShape_PowerLawExp (double *x, double *par)
 
double SignalShape_PowerLawDoubleExp (double *x, double *par)
 
pair< int, intSAMPAChan2PadXY (uint32_t fee_channel)
 

Variables

static const unsigned int kPACKET_ID = 1024
 
static const unsigned int kPACKET_LENGTH = 137
 
static const unsigned int kN_CHANNELS = 256
 
static const unsigned int kSAMPLE_LENGTH = 128
 
static const unsigned int kMaxPadX = 50
 
static const unsigned int kMaxPadY = 12
 

Detailed Description

TPC v1 FEE test stand decoder.

Function Documentation

std::pair< int, int > TPCDaqDefs::FEEv1::SAMPAChan2PadXY ( uint32_t  fee_channel)

Definition at line 317 of file TPCDaqDefs.cc.

View newest version in sPHENIX GitHub at line 317 of file TPCDaqDefs.cc

Referenced by TPCFEETestRecov1::process_event().

+ Here is the caller graph for this function:

bool TPCDaqDefs::FEEv1::SampleFit_PowerLawDoubleExp ( const std::vector< double > &  samples,
double &  peak,
double &  peak_sample,
double &  pedestal,
std::map< int, double > &  parameters_io,
const int  verbosity 
)

Power law double exp fit.

Parameters
peak_samplepeak amplitude.
pedestalpeak sample position. Fixed to the input value if NOT NAN
parameters_iopedestal
verbosityIO for fullset of parameters. If a parameter exist and not an NAN, the fit parameter will be fixed to that value. The order of the parameters are ("Amplitude 1", "Sample Start", "Power", "Peak Time 1", "Pedestal", "Amplitude 2", "Peak Time 2")

Definition at line 68 of file TPCDaqDefs.cc.

View newest version in sPHENIX GitHub at line 68 of file TPCDaqDefs.cc

References kdfinder::abs(), f1, f2, max, min, SignalShape_PowerLawDoubleExp(), SignalShape_PowerLawExp(), and nlohmann::to_string().

Referenced by TPCFEETestRecov1::Clustering().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double TPCDaqDefs::FEEv1::SignalShape_PowerLawDoubleExp ( double *  x,
double *  par 
)

Definition at line 298 of file TPCDaqDefs.cc.

View newest version in sPHENIX GitHub at line 298 of file TPCDaqDefs.cc

Referenced by SampleFit_PowerLawDoubleExp().

+ Here is the caller graph for this function:

double TPCDaqDefs::FEEv1::SignalShape_PowerLawExp ( double *  x,
double *  par 
)

Definition at line 286 of file TPCDaqDefs.cc.

View newest version in sPHENIX GitHub at line 286 of file TPCDaqDefs.cc

Referenced by SampleFit_PowerLawDoubleExp().

+ Here is the caller graph for this function:

Variable Documentation

const unsigned int TPCDaqDefs::FEEv1::kMaxPadX = 50
static

Definition at line 23 of file TPCDaqDefs.h.

View newest version in sPHENIX GitHub at line 23 of file TPCDaqDefs.h

Referenced by TPCFEETestRecov1::PadPlaneData::Clustering(), TPCFEETestRecov1::PadPlaneData::getPad(), and TPCFEETestRecov1::PadPlaneData::IsValidPad().

const unsigned int TPCDaqDefs::FEEv1::kMaxPadY = 12
static

Definition at line 24 of file TPCDaqDefs.h.

View newest version in sPHENIX GitHub at line 24 of file TPCDaqDefs.h

Referenced by TPCFEETestRecov1::PadPlaneData::Clustering(), TPCFEETestRecov1::PadPlaneData::getPad(), and TPCFEETestRecov1::PadPlaneData::IsValidPad().

const unsigned int TPCDaqDefs::FEEv1::kN_CHANNELS = 256
static

Definition at line 20 of file TPCDaqDefs.h.

View newest version in sPHENIX GitHub at line 20 of file TPCDaqDefs.h

Referenced by TPCFEETestRecov1::process_event().

const unsigned int TPCDaqDefs::FEEv1::kPACKET_ID = 1024
static

Definition at line 18 of file TPCDaqDefs.h.

View newest version in sPHENIX GitHub at line 18 of file TPCDaqDefs.h

Referenced by TPCFEETestRecov1::process_event().

const unsigned int TPCDaqDefs::FEEv1::kPACKET_LENGTH = 137
static

Definition at line 19 of file TPCDaqDefs.h.

View newest version in sPHENIX GitHub at line 19 of file TPCDaqDefs.h

Referenced by TPCFEETestRecov1::process_event().

const unsigned int TPCDaqDefs::FEEv1::kSAMPLE_LENGTH = 128
static

Definition at line 21 of file TPCDaqDefs.h.

View newest version in sPHENIX GitHub at line 21 of file TPCDaqDefs.h

Referenced by TPCFEETestRecov1::PadPlaneData::Clustering(), TPCFEETestRecov1::Clustering(), TPCFEETestRecov1::InitRun(), and TPCFEETestRecov1::process_event().