CMS 3D CMS Logo

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

#include <HcalTimeSlew.h>

Public Types

enum  BiasSetting { Slow =0, Medium =1, Fast =2 }
 
enum  ParaSource { TestStand =0, Data =1, MC =2, InputPars =3 }
 

Static Public Member Functions

static double delay (double fC, BiasSetting bias=Medium)
 Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew effect, for the specified bias setting. More...
 
static double delay (double fC, ParaSource source=InputPars, BiasSetting bias=Medium, double par0=tspar[0], double par1=tspar[1], double par2=tspar[2])
 

Static Public Attributes

static constexpr double tspar [3] = {12.2999, -2.19142, 0}
 

Detailed Description

Provides pulse delay as a function of amplitude for three choices of QIE bias setting. The "Medium" setting is used in HB and HE, while the "Slow" (and lower noise) setting is used in HO. All data taken from bench measurements of the QIE and plotted in Physics TDR Vol 1.

Not to be used for HF at this time (unlikely to have much effect, however)

Author
J. Mans - Minnesota

Definition at line 18 of file HcalTimeSlew.h.

Member Enumeration Documentation

Enumerator
Slow 
Medium 
Fast 

Definition at line 21 of file HcalTimeSlew.h.

Enumerator
TestStand 
Data 
MC 
InputPars 

Definition at line 20 of file HcalTimeSlew.h.

Member Function Documentation

double HcalTimeSlew::delay ( double  fC,
BiasSetting  bias = Medium 
)
static

Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew effect, for the specified bias setting.

Definition at line 12 of file HcalTimeSlew.cc.

References cmsBatch::log, slope, tmax, and tzero.

Referenced by HcalDeterministicFit::apply(), HcalPulseContainmentAlgo::calcpair(), HcalTimeSlewSim::delay(), delay(), HcalHitCorrection::delay(), PulseShapeFitOOTPileupCorrection::pulseShapeFit(), HcalSimpleRecAlgoImpl::reco(), and HcalSimpleRecAlgoImpl::recoHBHE().

12  {
13  double rawDelay=tzero[bias]+slope[bias]*log(fC);
14  return (rawDelay<0)?(0):((rawDelay>tmax[bias])?(tmax[bias]):(rawDelay));
15 }
static const double slope[3]
Definition: HcalTimeSlew.cc:5
static const double tzero[3]
Definition: HcalTimeSlew.cc:4
static const double tmax[3]
Definition: HcalTimeSlew.cc:6
tuple log
Definition: cmsBatch.py:341
double HcalTimeSlew::delay ( double  fC,
ParaSource  source = InputPars,
BiasSetting  bias = Medium,
double  par0 = tspar[0],
double  par1 = tspar[1],
double  par2 = tspar[2] 
)
static

Definition at line 17 of file HcalTimeSlew.cc.

References cap, delay(), InputPars, cmsBatch::log, MC, min(), TestStand, tspar0, tspar1, and tspar2.

17  {
18 
19  if (source==TestStand) {
20  return HcalTimeSlew::delay(fC, bias);
21  }
22  else if (source==InputPars) {
23  return std::min(cap, par0 + par1*log(fC+par2));
24  }
25  else if (source==Data || source==MC){
26  return std::min(cap,tspar0[source-1]+tspar1[source-1]*log(fC+tspar2[source-1]));
27  }
28  return 0;
29 }
static const double tspar2[2]
Definition: HcalTimeSlew.cc:10
static const double cap
Definition: HcalTimeSlew.cc:7
static const double tspar1[2]
Definition: HcalTimeSlew.cc:9
T min(T a, T b)
Definition: MathUtil.h:58
static const double tspar0[2]
Definition: HcalTimeSlew.cc:8
tuple par0
Definition: fitWZ.py:51
static std::string const source
Definition: EdmProvDump.cc:42
static double delay(double fC, BiasSetting bias=Medium)
Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew ef...
Definition: HcalTimeSlew.cc:12
tuple log
Definition: cmsBatch.py:341

Member Data Documentation

constexpr double HcalTimeSlew::tspar[3] = {12.2999, -2.19142, 0}
static

Definition at line 22 of file HcalTimeSlew.h.