Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcPrototypeDefs::FEEv2 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)
 

Variables

static const unsigned int kPACKET_ID = 3000
 
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 kN_FEES = 8
 
static const unsigned int kMaxPadY =16*8
 
static const unsigned int kMaxPadX =16
 
static TPCR2Map TpcR2Map
 static R2 channel map
 

Detailed Description

TPC v1 FEE test stand decoder.

Function Documentation

bool TpcPrototypeDefs::FEEv2::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 TpcPrototypeDefs.cc.

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

References assert, std::tr1::f1, std::tr1::f2, gpulse, i, train_ambiguity_solver::id, Acts::UnitConstants::min, NSAMPLES, pedestal(), PROTOTYPE4_FEM::SignalShape_PowerLawDoubleExp(), PROTOTYPE4_FEM::SignalShape_PowerLawExp(), and to_string().

Referenced by TPCFEETestRecov1::Clustering(), TpcPrototypeUnpacker::Clustering(), RawTower_Prototype4::get_energy_power_law_double_exp(), and CaloCalibration::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double TpcPrototypeDefs::FEEv2::SignalShape_PowerLawDoubleExp ( double x,
double par 
)

Definition at line 298 of file TpcPrototypeDefs.cc.

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

References pedestal(), and signal().

Referenced by PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp(), SampleFit_PowerLawDoubleExp(), and TPCDaqDefs::FEEv1::SampleFit_PowerLawDoubleExp().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double TpcPrototypeDefs::FEEv2::SignalShape_PowerLawExp ( double x,
double par 
)

Definition at line 286 of file TpcPrototypeDefs.cc.

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

References pedestal(), and signal().

Referenced by PROTOTYPE4_FEM::SampleFit_PowerLawDoubleExp(), SampleFit_PowerLawDoubleExp(), TPCDaqDefs::FEEv1::SampleFit_PowerLawDoubleExp(), PROTOTYPE2_FEM::SampleFit_PowerLawExp(), PROTOTYPE3_FEM::SampleFit_PowerLawExp(), and PROTOTYPE4_FEM::SampleFit_PowerLawExp().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const unsigned int TpcPrototypeDefs::FEEv2::kMaxPadX =16
static

Definition at line 26 of file TpcPrototypeDefs.h.

View newest version in sPHENIX GitHub at line 26 of file TpcPrototypeDefs.h

const unsigned int TpcPrototypeDefs::FEEv2::kMaxPadY =16*8
static

Definition at line 25 of file TpcPrototypeDefs.h.

View newest version in sPHENIX GitHub at line 25 of file TpcPrototypeDefs.h

const unsigned int TpcPrototypeDefs::FEEv2::kN_CHANNELS = 256
static

Definition at line 21 of file TpcPrototypeDefs.h.

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

const unsigned int TpcPrototypeDefs::FEEv2::kN_FEES = 8
static

Definition at line 24 of file TpcPrototypeDefs.h.

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

Referenced by TpcPrototypeUnpacker::process_event().

const unsigned int TpcPrototypeDefs::FEEv2::kPACKET_ID = 3000
static

Definition at line 18 of file TpcPrototypeDefs.h.

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

const unsigned int TpcPrototypeDefs::FEEv2::kPACKET_LENGTH = 137
static

Definition at line 20 of file TpcPrototypeDefs.h.

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

const unsigned int TpcPrototypeDefs::FEEv2::kSAMPLE_LENGTH = 128
static

Definition at line 22 of file TpcPrototypeDefs.h.

View newest version in sPHENIX GitHub at line 22 of file TpcPrototypeDefs.h

TPCR2Map TpcPrototypeDefs::FEEv2::TpcR2Map
static

static R2 channel map

Definition at line 29 of file TpcPrototypeDefs.h.

View newest version in sPHENIX GitHub at line 29 of file TpcPrototypeDefs.h

Referenced by TpcPrototypeUnpacker::process_event().