CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
FFTJetCorrectorTransient Class Reference

#include <FFTJetCorrectorTransient.h>

Public Types

typedef math::XYZTLorentzVector LorentzVector
 

Public Member Functions

 FFTJetCorrectorTransient ()=delete
 
 FFTJetCorrectorTransient (const LorentzVector &v, const double initialScale=1.0, const double initialSigma=0.0)
 
FFTJetCorrectorTransientoperator*= (const double &d)
 
double scale () const
 
void setScale (const double s)
 
void setSigma (const double s)
 
void setVariance (const double v)
 
void setVec (const LorentzVector &v)
 
double sigma () const
 
double variance () const
 
const LorentzVectorvec () const
 

Private Attributes

double scale_
 
double variance_
 
LorentzVector vec_
 

Detailed Description

Definition at line 15 of file FFTJetCorrectorTransient.h.

Member Typedef Documentation

◆ LorentzVector

Definition at line 17 of file FFTJetCorrectorTransient.h.

Constructor & Destructor Documentation

◆ FFTJetCorrectorTransient() [1/2]

FFTJetCorrectorTransient::FFTJetCorrectorTransient ( const LorentzVector v,
const double  initialScale = 1.0,
const double  initialSigma = 0.0 
)
inline

Definition at line 19 of file FFTJetCorrectorTransient.h.

22  : vec_(v), scale_(initialScale), variance_(initialSigma * initialSigma) {}

◆ FFTJetCorrectorTransient() [2/2]

FFTJetCorrectorTransient::FFTJetCorrectorTransient ( )
delete

Member Function Documentation

◆ operator*=()

FFTJetCorrectorTransient& FFTJetCorrectorTransient::operator*= ( const double &  d)
inline

Definition at line 35 of file FFTJetCorrectorTransient.h.

35  {
36  // Do not change the sigma -- assume that it is relative to jet Pt
37  vec_ *= d;
38  scale_ *= d;
39  return *this;
40  }

References ztail::d, scale_, and vec_.

◆ scale()

double FFTJetCorrectorTransient::scale ( ) const
inline

Definition at line 26 of file FFTJetCorrectorTransient.h.

26 { return scale_; }

References scale_.

◆ setScale()

void FFTJetCorrectorTransient::setScale ( const double  s)
inline

Definition at line 31 of file FFTJetCorrectorTransient.h.

31 { scale_ = s; }

References alignCSCRings::s, and scale_.

◆ setSigma()

void FFTJetCorrectorTransient::setSigma ( const double  s)
inline

Definition at line 32 of file FFTJetCorrectorTransient.h.

32 { variance_ = s * s; }

References alignCSCRings::s, and variance_.

◆ setVariance()

void FFTJetCorrectorTransient::setVariance ( const double  v)
inline

Definition at line 33 of file FFTJetCorrectorTransient.h.

33 { variance_ = fabs(v); }

References findQualityFiles::v, and variance_.

◆ setVec()

void FFTJetCorrectorTransient::setVec ( const LorentzVector v)
inline

Definition at line 30 of file FFTJetCorrectorTransient.h.

30 { vec_ = v; }

References findQualityFiles::v, and vec_.

◆ sigma()

double FFTJetCorrectorTransient::sigma ( ) const
inline

Definition at line 27 of file FFTJetCorrectorTransient.h.

27 { return sqrt(variance_); }

References mathSSE::sqrt(), and variance_.

◆ variance()

double FFTJetCorrectorTransient::variance ( ) const
inline

Definition at line 28 of file FFTJetCorrectorTransient.h.

28 { return variance_; }

References variance_.

Referenced by average.Average::uncertainty().

◆ vec()

const LorentzVector& FFTJetCorrectorTransient::vec ( ) const
inline

Definition at line 25 of file FFTJetCorrectorTransient.h.

25 { return vec_; }

References vec_.

Member Data Documentation

◆ scale_

double FFTJetCorrectorTransient::scale_
private

Definition at line 44 of file FFTJetCorrectorTransient.h.

Referenced by operator*=(), scale(), and setScale().

◆ variance_

double FFTJetCorrectorTransient::variance_
private

Definition at line 45 of file FFTJetCorrectorTransient.h.

Referenced by setSigma(), setVariance(), sigma(), and variance().

◆ vec_

LorentzVector FFTJetCorrectorTransient::vec_
private

Definition at line 43 of file FFTJetCorrectorTransient.h.

Referenced by operator*=(), setVec(), and vec().

findQualityFiles.v
v
Definition: findQualityFiles.py:179
FFTJetCorrectorTransient::variance_
double variance_
Definition: FFTJetCorrectorTransient.h:45
FFTJetCorrectorTransient::vec_
LorentzVector vec_
Definition: FFTJetCorrectorTransient.h:43
alignCSCRings.s
s
Definition: alignCSCRings.py:92
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
FFTJetCorrectorTransient::scale_
double scale_
Definition: FFTJetCorrectorTransient.h:44
ztail.d
d
Definition: ztail.py:151