CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes | Static Private Attributes
HcalDeterministicFit Class Reference

#include <HcalDeterministicFit.h>

Public Types

enum  NegStrategy { DoNothing =0, MoveCharge =1, MoveTiming =2 }
 

Public Member Functions

template<class Digi >
void apply (const CaloSamples &cs, const std::vector< int > &capidvec, const HcalCalibrations &calibs, const Digi &digi, std::vector< double > &Output) const
 
void getLandauFrac (float tStart, float tEnd, float &sum) const
 
 HcalDeterministicFit ()
 
void init (HcalTimeSlew::ParaSource tsParam, HcalTimeSlew::BiasSetting bias, NegStrategy nStrat, PedestalSub pedSubFxn_, std::vector< double > pars, double respCorr)
 
 ~HcalDeterministicFit ()
 

Private Attributes

NegStrategy fNegStrat
 
double fpars [9]
 
PedestalSub fPedestalSubFxn_
 
double frespCorr
 
HcalTimeSlew::ParaSource fTimeSlew
 
HcalTimeSlew::BiasSetting fTimeSlewBias
 

Static Private Attributes

static int HcalRegion [2] = {16, 17}
 
static float invGpar [3] = {-13.11, 11.29, 5.133}
 
static float landauFrac []
 
static float negThresh [2] = {-3., 15.}
 
static float rCorr [2] = {0.95, 0.95}
 
static int tsWidth = 25
 

Detailed Description

Definition at line 15 of file HcalDeterministicFit.h.

Member Enumeration Documentation

Enumerator
DoNothing 
MoveCharge 
MoveTiming 

Definition at line 17 of file HcalDeterministicFit.h.

Constructor & Destructor Documentation

HcalDeterministicFit::HcalDeterministicFit ( )

Definition at line 13 of file HcalDeterministicFit.cc.

13  {
14 }
HcalDeterministicFit::~HcalDeterministicFit ( )

Definition at line 16 of file HcalDeterministicFit.cc.

16  {
17 }

Member Function Documentation

template<class Digi >
void HcalDeterministicFit::apply ( const CaloSamples cs,
const std::vector< int > &  capidvec,
const HcalCalibrations calibs,
const Digi &  digi,
std::vector< double > &  Output 
) const
void HcalDeterministicFit::getLandauFrac ( float  tStart,
float  tEnd,
float &  sum 
) const

Definition at line 36 of file HcalDeterministicFit.cc.

References funct::abs().

36  {
37 
38  if (std::abs(tStart-tEnd-tsWidth)<0.1) {
39  sum=0;
40  return;
41  }
42  sum= landauFrac[int(ceil(tStart+tsWidth))];
43  return;
44 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
void HcalDeterministicFit::init ( HcalTimeSlew::ParaSource  tsParam,
HcalTimeSlew::BiasSetting  bias,
NegStrategy  nStrat,
PedestalSub  pedSubFxn_,
std::vector< double >  pars,
double  respCorr 
)

Definition at line 19 of file HcalDeterministicFit.cc.

19  {
20  for(int fi=0; fi<9; fi++){
21  fpars[fi] = pars.at(fi);
22  }
23 
24  fTimeSlew=tsParam;
25  fTimeSlewBias=bias;
26  fNegStrat=nStrat;
27  fPedestalSubFxn_=pedSubFxn_;
28  frespCorr=respCorr;
29 }
HcalTimeSlew::ParaSource fTimeSlew
HcalTimeSlew::BiasSetting fTimeSlewBias

Member Data Documentation

NegStrategy HcalDeterministicFit::fNegStrat
private

Definition at line 31 of file HcalDeterministicFit.h.

double HcalDeterministicFit::fpars[9]
private

Definition at line 34 of file HcalDeterministicFit.h.

PedestalSub HcalDeterministicFit::fPedestalSubFxn_
private

Definition at line 32 of file HcalDeterministicFit.h.

double HcalDeterministicFit::frespCorr
private

Definition at line 35 of file HcalDeterministicFit.h.

HcalTimeSlew::ParaSource HcalDeterministicFit::fTimeSlew
private

Definition at line 29 of file HcalDeterministicFit.h.

HcalTimeSlew::BiasSetting HcalDeterministicFit::fTimeSlewBias
private

Definition at line 30 of file HcalDeterministicFit.h.

int HcalDeterministicFit::HcalRegion = {16, 17}
staticprivate

Definition at line 37 of file HcalDeterministicFit.h.

float HcalDeterministicFit::invGpar = {-13.11, 11.29, 5.133}
staticprivate

Definition at line 40 of file HcalDeterministicFit.h.

float HcalDeterministicFit::landauFrac
staticprivate
Initial value:
= {0, 7.6377e-05, 0.000418655, 0.00153692, 0.00436844, 0.0102076,
0.0204177, 0.0360559, 0.057596, 0.0848493, 0.117069, 0.153152, 0.191858, 0.23198, 0.272461, 0.312438,
0.351262, 0.388476, 0.423788, 0.457036, 0.488159, 0.517167, 0.54412, 0.569112, 0.592254, 0.613668,
0.633402, 0.651391, 0.667242, 0.680131, 0.688868, 0.692188, 0.689122, 0.67928, 0.662924, 0.64087,
0.614282, 0.584457, 0.552651, 0.51997, 0.487317, 0.455378, 0.424647, 0.395445, 0.367963, 0.342288,
0.318433, 0.29636, 0.275994, 0.257243, 0.24, 0.224155, 0.2096, 0.196227, 0.183937, 0.172635,
0.162232, 0.15265, 0.143813, 0.135656, 0.128117, 0.12114, 0.114677, 0.108681, 0.103113, 0.0979354,
0.0931145, 0.0886206, 0.0844264, 0.0805074, 0.0768411, 0.0734075, 0.0701881, 0.0671664, 0.0643271,
0.0616564, 0.0591418, 0.0567718, 0.054536, 0.0524247, 0.0504292, 0.0485414, 0.046754, 0.0450602,
0.0434538, 0.041929, 0.0404806, 0.0391037, 0.0377937, 0.0365465, 0.0353583, 0.0342255, 0.0331447,
0.032113, 0.0311274, 0.0301854, 0.0292843, 0.0284221, 0.0275964, 0.0268053, 0.0253052, 0.0238536,
0.0224483, 0.0210872, 0.0197684, 0.0184899, 0.01725, 0.0160471, 0.0148795, 0.0137457, 0.0126445,
0.0115743, 0.0105341, 0.00952249, 0.00853844, 0.00758086, 0.00664871,0.00574103, 0.00485689, 0.00399541,
0.00315576, 0.00233713, 0.00153878, 0.000759962, 0 }

Definition at line 42 of file HcalDeterministicFit.h.

float HcalDeterministicFit::negThresh = {-3., 15.}
staticprivate

Definition at line 39 of file HcalDeterministicFit.h.

float HcalDeterministicFit::rCorr = {0.95, 0.95}
staticprivate

Definition at line 41 of file HcalDeterministicFit.h.

int HcalDeterministicFit::tsWidth = 25
staticprivate

Definition at line 38 of file HcalDeterministicFit.h.