CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
TMConfig Class Reference

#include <TMConfig.h>

Inheritance diagram for TMConfig:

Public Member Functions

float getalpha0 ()
 
double getalpha_ls (int c)
 
double getalpha_run (int, int, int)
 
float getbeta0 ()
 
double getbeta_ls (int c)
 
double getbeta_run (int, int, int)
 
int getfirstPNSample ()
 
int getfirstSample ()
 
int getfirstSM ()
 
int getHighLevelForTRise ()
 
int getlastPNSample ()
 
int getlastSample ()
 
int getLowLevelForTRise ()
 
int getNbOf (int, int)
 
int getNbOfBurstperSignalForSeq (int seqNumb)
 
int getNbOfEventperBurstAndSignalForSeq (int seqNumb)
 
int getNbOfiterations ()
 
int getNbOfMatacqpresamples ()
 
int getNbOfMatacqsamples ()
 
int getNbOfPNpresamples ()
 
int getNbOfPNs (int, int)
 
int getNbOfPNsamples ()
 
int getNbOfsamplesAftMax ()
 
int getNbOfsamplesBefMax ()
 
int getNbOfxtalpresamples ()
 
int getNbOfxtalsamples ()
 
int getNoiseCutForMatacq ()
 
int getPNaddr (int, int, int)
 
int getsampleMax ()
 
int getsampleMin ()
 
int getSignalTypeForSeq (int seqNumb)
 
int getThresForMatacq ()
 
int getTNumb (int, int, int)
 
int getvlastMatacqsample ()
 
int getXNumb (int, int, int)
 
void loadPParams ()
 
 TMConfig ()
 
virtual ~TMConfig ()
 

Static Public Attributes

static constexpr unsigned int fNburmax = 3
 
static constexpr unsigned int fNcolors = 6
 
static constexpr unsigned int fNlmodN = 9
 
static constexpr unsigned int fNmax = 8
 
static constexpr unsigned int fNmem = 10
 
static constexpr unsigned int fNmodN = 4
 
static constexpr unsigned int fNseqmax = 3
 
static constexpr unsigned int fNsmNmax = 36
 
static constexpr unsigned int fNtt = 68
 

Private Member Functions

int convert (int)
 
void init ()
 
void initLaserPulseFit ()
 
void initMatacqPulseFit ()
 
void initPNFit ()
 
void initShapeAnalysis ()
 
void initTPFit ()
 
void readlmodNConfig ()
 
void readpnConfig ()
 
void readSequenzaConfig ()
 

Private Attributes

int addrpn [fNsmNmax+1][fNmodN+1][fNmem]
 
double alpha [fNcolors]
 
double alpha_run [fNcolors][fNsmNmax+1][fNtt]
 
double alpha_start
 
int amplhigh_trise
 
int ampllow_trise
 
int arr [fNsmNmax+1][fNmodN+1]
 
double beta [fNcolors]
 
double beta_run [fNcolors][fNsmNmax+1][fNtt]
 
double beta_start
 
int channlist [fNsmNmax+1][fNlmodN][fNmax+1]
 
int firstpnSample
 
int firstSample
 
int laser_size [fNcolors][fNseqmax+1]
 
int lastpnSample
 
int lastSample
 
int n_pin [fNsmNmax+1][fNmodN+1]
 
int nbof [fNsmNmax+1][fNlmodN+1]
 
int nbofiter
 
int nbofmtqpresamp
 
int nbofmtqsamp1esbeforemax_parab
 
int nbofmtqsamples
 
int nbofmtqsamplesaftermax_parab
 
int nbofmtqsigmas
 
int nbofpnpresamp
 
int nbofpnsamp
 
int nbofpresamp
 
int nbofsamp
 
int numbOfBurstperSignal [fNseqmax+1]
 
int numbOfEventperBurstAndSignal [fNseqmax+1]
 
int ped_size [fNburmax+1]
 
int samplemax
 
int samplemin
 
int seqTypeOfSignal [fNseqmax+1]
 
int smin
 
int thres_mtq
 
int towerlist [fNsmNmax+1][fNlmodN][fNmax+1]
 
int vlastmtqsample
 

Detailed Description

Definition at line 6 of file TMConfig.h.

Constructor & Destructor Documentation

◆ TMConfig()

TMConfig::TMConfig ( )

◆ ~TMConfig()

virtual TMConfig::~TMConfig ( )
virtual

Member Function Documentation

◆ convert()

int TMConfig::convert ( int  )
private

◆ getalpha0()

float TMConfig::getalpha0 ( )
inline

Definition at line 67 of file TMConfig.h.

67 { return alpha_start; }

References alpha_start.

◆ getalpha_ls()

double TMConfig::getalpha_ls ( int  c)
inline

Definition at line 76 of file TMConfig.h.

76 { return alpha[c]; }

References alpha, and c.

◆ getalpha_run()

double TMConfig::getalpha_run ( int  ,
int  ,
int   
)

◆ getbeta0()

float TMConfig::getbeta0 ( )
inline

Definition at line 68 of file TMConfig.h.

68 { return beta_start; }

References beta_start.

◆ getbeta_ls()

double TMConfig::getbeta_ls ( int  c)
inline

Definition at line 77 of file TMConfig.h.

77 { return beta[c]; }

References beta, and c.

◆ getbeta_run()

double TMConfig::getbeta_run ( int  ,
int  ,
int   
)

◆ getfirstPNSample()

int TMConfig::getfirstPNSample ( )
inline

Definition at line 65 of file TMConfig.h.

65 { return firstpnSample; }

References firstpnSample.

◆ getfirstSample()

int TMConfig::getfirstSample ( )
inline

Definition at line 63 of file TMConfig.h.

63 { return firstSample; }

References firstSample.

◆ getfirstSM()

int TMConfig::getfirstSM ( )
inline

Definition at line 62 of file TMConfig.h.

62 { return smin; }

References smin.

◆ getHighLevelForTRise()

int TMConfig::getHighLevelForTRise ( )
inline

Definition at line 97 of file TMConfig.h.

97 { return amplhigh_trise; }

References amplhigh_trise.

◆ getlastPNSample()

int TMConfig::getlastPNSample ( )
inline

Definition at line 66 of file TMConfig.h.

66 { return lastpnSample; }

References lastpnSample.

◆ getlastSample()

int TMConfig::getlastSample ( )
inline

Definition at line 64 of file TMConfig.h.

64 { return lastSample; }

References lastSample.

◆ getLowLevelForTRise()

int TMConfig::getLowLevelForTRise ( )
inline

Definition at line 96 of file TMConfig.h.

96 { return ampllow_trise; }

References ampllow_trise.

◆ getNbOf()

int TMConfig::getNbOf ( int  ,
int   
)

◆ getNbOfBurstperSignalForSeq()

int TMConfig::getNbOfBurstperSignalForSeq ( int  seqNumb)
inline

Definition at line 100 of file TMConfig.h.

100 { return numbOfBurstperSignal[seqNumb]; }

References numbOfBurstperSignal.

◆ getNbOfEventperBurstAndSignalForSeq()

int TMConfig::getNbOfEventperBurstAndSignalForSeq ( int  seqNumb)
inline

Definition at line 101 of file TMConfig.h.

101 { return numbOfEventperBurstAndSignal[seqNumb]; }

References numbOfEventperBurstAndSignal.

◆ getNbOfiterations()

int TMConfig::getNbOfiterations ( )
inline

Definition at line 73 of file TMConfig.h.

73 { return nbofiter; }

References nbofiter.

◆ getNbOfMatacqpresamples()

int TMConfig::getNbOfMatacqpresamples ( )
inline

Definition at line 90 of file TMConfig.h.

90 { return nbofmtqpresamp; }

References nbofmtqpresamp.

◆ getNbOfMatacqsamples()

int TMConfig::getNbOfMatacqsamples ( )
inline

Definition at line 89 of file TMConfig.h.

89 { return nbofmtqsamples; }

References nbofmtqsamples.

◆ getNbOfPNpresamples()

int TMConfig::getNbOfPNpresamples ( )
inline

Definition at line 72 of file TMConfig.h.

72 { return nbofpnpresamp; }

References nbofpnpresamp.

◆ getNbOfPNs()

int TMConfig::getNbOfPNs ( int  ,
int   
)

◆ getNbOfPNsamples()

int TMConfig::getNbOfPNsamples ( )
inline

Definition at line 74 of file TMConfig.h.

74 { return nbofpnsamp; }

References nbofpnsamp.

◆ getNbOfsamplesAftMax()

int TMConfig::getNbOfsamplesAftMax ( )
inline

Definition at line 94 of file TMConfig.h.

References nbofmtqsamplesaftermax_parab.

◆ getNbOfsamplesBefMax()

int TMConfig::getNbOfsamplesBefMax ( )
inline

Definition at line 93 of file TMConfig.h.

References nbofmtqsamp1esbeforemax_parab.

◆ getNbOfxtalpresamples()

int TMConfig::getNbOfxtalpresamples ( )
inline

Definition at line 71 of file TMConfig.h.

71 { return nbofpresamp; }

References nbofpresamp.

◆ getNbOfxtalsamples()

int TMConfig::getNbOfxtalsamples ( )
inline

Definition at line 75 of file TMConfig.h.

75 { return nbofsamp; }

References nbofsamp.

◆ getNoiseCutForMatacq()

int TMConfig::getNoiseCutForMatacq ( )
inline

Definition at line 92 of file TMConfig.h.

92 { return nbofmtqsigmas; }

References nbofmtqsigmas.

◆ getPNaddr()

int TMConfig::getPNaddr ( int  ,
int  ,
int   
)

◆ getsampleMax()

int TMConfig::getsampleMax ( )
inline

Definition at line 70 of file TMConfig.h.

70 { return samplemax; }

References samplemax.

◆ getsampleMin()

int TMConfig::getsampleMin ( )
inline

Definition at line 69 of file TMConfig.h.

69 { return samplemin; }

References samplemin.

◆ getSignalTypeForSeq()

int TMConfig::getSignalTypeForSeq ( int  seqNumb)
inline

Definition at line 99 of file TMConfig.h.

99 { return seqTypeOfSignal[seqNumb]; }

References seqTypeOfSignal.

◆ getThresForMatacq()

int TMConfig::getThresForMatacq ( )
inline

Definition at line 95 of file TMConfig.h.

95 { return thres_mtq; }

References thres_mtq.

◆ getTNumb()

int TMConfig::getTNumb ( int  ,
int  ,
int   
)

◆ getvlastMatacqsample()

int TMConfig::getvlastMatacqsample ( )
inline

Definition at line 91 of file TMConfig.h.

91 { return vlastmtqsample; }

References vlastmtqsample.

◆ getXNumb()

int TMConfig::getXNumb ( int  ,
int  ,
int   
)

◆ init()

void TMConfig::init ( )
private

◆ initLaserPulseFit()

void TMConfig::initLaserPulseFit ( )
private

◆ initMatacqPulseFit()

void TMConfig::initMatacqPulseFit ( )
private

◆ initPNFit()

void TMConfig::initPNFit ( )
private

◆ initShapeAnalysis()

void TMConfig::initShapeAnalysis ( )
private

◆ initTPFit()

void TMConfig::initTPFit ( )
private

◆ loadPParams()

void TMConfig::loadPParams ( )

◆ readlmodNConfig()

void TMConfig::readlmodNConfig ( )
private

◆ readpnConfig()

void TMConfig::readpnConfig ( )
private

◆ readSequenzaConfig()

void TMConfig::readSequenzaConfig ( )
private

Member Data Documentation

◆ addrpn

int TMConfig::addrpn[fNsmNmax+1][fNmodN+1][fNmem]
private

Definition at line 24 of file TMConfig.h.

◆ alpha

double TMConfig::alpha[fNcolors]
private

Definition at line 29 of file TMConfig.h.

Referenced by getalpha_ls().

◆ alpha_run

double TMConfig::alpha_run[fNcolors][fNsmNmax+1][fNtt]
private

Definition at line 30 of file TMConfig.h.

◆ alpha_start

double TMConfig::alpha_start
private

Definition at line 45 of file TMConfig.h.

Referenced by getalpha0().

◆ amplhigh_trise

int TMConfig::amplhigh_trise
private

Definition at line 53 of file TMConfig.h.

Referenced by getHighLevelForTRise().

◆ ampllow_trise

int TMConfig::ampllow_trise
private

Definition at line 53 of file TMConfig.h.

Referenced by getLowLevelForTRise().

◆ arr

int TMConfig::arr[fNsmNmax+1][fNmodN+1]
private

Definition at line 20 of file TMConfig.h.

◆ beta

double TMConfig::beta[fNcolors]
private

Definition at line 29 of file TMConfig.h.

Referenced by getbeta_ls().

◆ beta_run

double TMConfig::beta_run[fNcolors][fNsmNmax+1][fNtt]
private

Definition at line 30 of file TMConfig.h.

◆ beta_start

double TMConfig::beta_start
private

Definition at line 45 of file TMConfig.h.

Referenced by getbeta0().

◆ channlist

int TMConfig::channlist[fNsmNmax+1][fNlmodN][fNmax+1]
private

Definition at line 23 of file TMConfig.h.

◆ firstpnSample

int TMConfig::firstpnSample
private

Definition at line 47 of file TMConfig.h.

Referenced by getfirstPNSample().

◆ firstSample

int TMConfig::firstSample
private

Definition at line 44 of file TMConfig.h.

Referenced by getfirstSample().

◆ fNburmax

constexpr unsigned int TMConfig::fNburmax = 3
staticconstexpr

Definition at line 14 of file TMConfig.h.

◆ fNcolors

constexpr unsigned int TMConfig::fNcolors = 6
staticconstexpr

Definition at line 16 of file TMConfig.h.

◆ fNlmodN

constexpr unsigned int TMConfig::fNlmodN = 9
staticconstexpr

Definition at line 9 of file TMConfig.h.

◆ fNmax

constexpr unsigned int TMConfig::fNmax = 8
staticconstexpr

Definition at line 13 of file TMConfig.h.

◆ fNmem

constexpr unsigned int TMConfig::fNmem = 10
staticconstexpr

Definition at line 10 of file TMConfig.h.

◆ fNmodN

constexpr unsigned int TMConfig::fNmodN = 4
staticconstexpr

Definition at line 11 of file TMConfig.h.

◆ fNseqmax

constexpr unsigned int TMConfig::fNseqmax = 3
staticconstexpr

Definition at line 15 of file TMConfig.h.

◆ fNsmNmax

constexpr unsigned int TMConfig::fNsmNmax = 36
staticconstexpr

Definition at line 8 of file TMConfig.h.

◆ fNtt

constexpr unsigned int TMConfig::fNtt = 68
staticconstexpr

Definition at line 12 of file TMConfig.h.

◆ laser_size

int TMConfig::laser_size[fNcolors][fNseqmax+1]
private

Definition at line 28 of file TMConfig.h.

◆ lastpnSample

int TMConfig::lastpnSample
private

Definition at line 47 of file TMConfig.h.

Referenced by getlastPNSample().

◆ lastSample

int TMConfig::lastSample
private

Definition at line 44 of file TMConfig.h.

Referenced by getlastSample().

◆ n_pin

int TMConfig::n_pin[fNsmNmax+1][fNmodN+1]
private

Definition at line 25 of file TMConfig.h.

◆ nbof

int TMConfig::nbof[fNsmNmax+1][fNlmodN+1]
private

Definition at line 21 of file TMConfig.h.

◆ nbofiter

int TMConfig::nbofiter
private

Definition at line 48 of file TMConfig.h.

Referenced by getNbOfiterations().

◆ nbofmtqpresamp

int TMConfig::nbofmtqpresamp
private

Definition at line 51 of file TMConfig.h.

Referenced by getNbOfMatacqpresamples().

◆ nbofmtqsamp1esbeforemax_parab

int TMConfig::nbofmtqsamp1esbeforemax_parab
private

Definition at line 52 of file TMConfig.h.

Referenced by getNbOfsamplesBefMax().

◆ nbofmtqsamples

int TMConfig::nbofmtqsamples
private

Definition at line 51 of file TMConfig.h.

Referenced by getNbOfMatacqsamples().

◆ nbofmtqsamplesaftermax_parab

int TMConfig::nbofmtqsamplesaftermax_parab
private

Definition at line 52 of file TMConfig.h.

Referenced by getNbOfsamplesAftMax().

◆ nbofmtqsigmas

int TMConfig::nbofmtqsigmas
private

Definition at line 51 of file TMConfig.h.

Referenced by getNoiseCutForMatacq().

◆ nbofpnpresamp

int TMConfig::nbofpnpresamp
private

Definition at line 49 of file TMConfig.h.

Referenced by getNbOfPNpresamples().

◆ nbofpnsamp

int TMConfig::nbofpnsamp
private

Definition at line 49 of file TMConfig.h.

Referenced by getNbOfPNsamples().

◆ nbofpresamp

int TMConfig::nbofpresamp
private

Definition at line 48 of file TMConfig.h.

Referenced by getNbOfxtalpresamples().

◆ nbofsamp

int TMConfig::nbofsamp
private

Definition at line 49 of file TMConfig.h.

Referenced by getNbOfxtalsamples().

◆ numbOfBurstperSignal

int TMConfig::numbOfBurstperSignal[fNseqmax+1]
private

Definition at line 27 of file TMConfig.h.

Referenced by getNbOfBurstperSignalForSeq().

◆ numbOfEventperBurstAndSignal

int TMConfig::numbOfEventperBurstAndSignal[fNseqmax+1]
private

Definition at line 26 of file TMConfig.h.

Referenced by getNbOfEventperBurstAndSignalForSeq().

◆ ped_size

int TMConfig::ped_size[fNburmax+1]
private

Definition at line 28 of file TMConfig.h.

◆ samplemax

int TMConfig::samplemax
private

Definition at line 48 of file TMConfig.h.

Referenced by getsampleMax().

◆ samplemin

int TMConfig::samplemin
private

Definition at line 48 of file TMConfig.h.

Referenced by getsampleMin().

◆ seqTypeOfSignal

int TMConfig::seqTypeOfSignal[fNseqmax+1]
private

Definition at line 26 of file TMConfig.h.

Referenced by getSignalTypeForSeq().

◆ smin

int TMConfig::smin
private

Definition at line 19 of file TMConfig.h.

Referenced by getfirstSM().

◆ thres_mtq

int TMConfig::thres_mtq
private

Definition at line 53 of file TMConfig.h.

Referenced by getThresForMatacq().

◆ towerlist

int TMConfig::towerlist[fNsmNmax+1][fNlmodN][fNmax+1]
private

Definition at line 22 of file TMConfig.h.

◆ vlastmtqsample

int TMConfig::vlastmtqsample
private

Definition at line 51 of file TMConfig.h.

Referenced by getvlastMatacqsample().

TMConfig::nbofmtqsamples
int nbofmtqsamples
Definition: TMConfig.h:51
TMConfig::alpha
double alpha[fNcolors]
Definition: TMConfig.h:29
TMConfig::nbofiter
int nbofiter
Definition: TMConfig.h:48
TMConfig::nbofpnsamp
int nbofpnsamp
Definition: TMConfig.h:49
TMConfig::nbofmtqsigmas
int nbofmtqsigmas
Definition: TMConfig.h:51
TMConfig::firstSample
int firstSample
Definition: TMConfig.h:44
TMConfig::smin
int smin
Definition: TMConfig.h:19
TMConfig::nbofmtqsamplesaftermax_parab
int nbofmtqsamplesaftermax_parab
Definition: TMConfig.h:52
TMConfig::seqTypeOfSignal
int seqTypeOfSignal[fNseqmax+1]
Definition: TMConfig.h:26
TMConfig::nbofsamp
int nbofsamp
Definition: TMConfig.h:49
TMConfig::numbOfBurstperSignal
int numbOfBurstperSignal[fNseqmax+1]
Definition: TMConfig.h:27
TMConfig::alpha_start
double alpha_start
Definition: TMConfig.h:45
TMConfig::nbofmtqpresamp
int nbofmtqpresamp
Definition: TMConfig.h:51
TMConfig::vlastmtqsample
int vlastmtqsample
Definition: TMConfig.h:51
TMConfig::nbofpnpresamp
int nbofpnpresamp
Definition: TMConfig.h:49
TMConfig::lastpnSample
int lastpnSample
Definition: TMConfig.h:47
TMConfig::numbOfEventperBurstAndSignal
int numbOfEventperBurstAndSignal[fNseqmax+1]
Definition: TMConfig.h:26
TMConfig::lastSample
int lastSample
Definition: TMConfig.h:44
TMConfig::samplemax
int samplemax
Definition: TMConfig.h:48
TMConfig::nbofmtqsamp1esbeforemax_parab
int nbofmtqsamp1esbeforemax_parab
Definition: TMConfig.h:52
TMConfig::beta_start
double beta_start
Definition: TMConfig.h:45
TMConfig::ampllow_trise
int ampllow_trise
Definition: TMConfig.h:53
TMConfig::thres_mtq
int thres_mtq
Definition: TMConfig.h:53
TMConfig::nbofpresamp
int nbofpresamp
Definition: TMConfig.h:48
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
TMConfig::firstpnSample
int firstpnSample
Definition: TMConfig.h:47
TMConfig::amplhigh_trise
int amplhigh_trise
Definition: TMConfig.h:53
TMConfig::samplemin
int samplemin
Definition: TMConfig.h:48
TMConfig::beta
double beta[fNcolors]
Definition: TMConfig.h:29