Analysis Software
Documentation for sPHENIX simulation 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, int > SAMPAChan2PadXY (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 std::tr1::f1, std::tr1::f2, gpulse, i, train_ambiguity_solver::id, Acts::UnitConstants::min, pedestal(), PROTOTYPE4_FEM::SignalShape_PowerLawDoubleExp(), PROTOTYPE4_FEM::SignalShape_PowerLawExp(), and to_string().

+ Here is the call 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

References pedestal(), and signal().

+ Here is the call 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

References pedestal(), and signal().

+ Here is the call graph for this function:

Variable Documentation

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(), and TpcPrototypeUnpacker::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(), and TpcPrototypeUnpacker::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().