LDMX Software
Public Member Functions | Private Attributes | List of all members
trigger::ecalTpToE Class Reference

Public Member Functions

double calc (int tp, int layer)
 

Private Attributes

float gain_ = 320. / 0.1 / 1024
 
float mVtoMeV_ = 0.130 / (37000.0 * (0.1602 / 1000.) * (1. / 0.1))
 
std::vector< float > layerWeights_
 
float secondOrderEnergyCorrection_ = 4000. / 3940.5
 
float mipSiEnergy_ = 0.130
 
int hgc_compression_factor_ = 8
 

Detailed Description

Definition at line 7 of file TrigUtilities.h.

Member Function Documentation

◆ calc()

double trigger::ecalTpToE::calc ( int  tp,
int  layer 
)
inline

Definition at line 10 of file TrigUtilities.h.

10 {
11 float sie = hgc_compression_factor_ * tp * gain_ *
12 mVtoMeV_; // in MeV, before layer corrections
13 return (sie / mipSiEnergy_ * layerWeights_.at(layer) + sie) *
14 secondOrderEnergyCorrection_;
15 }

Member Data Documentation

◆ gain_

float trigger::ecalTpToE::gain_ = 320. / 0.1 / 1024
private

Definition at line 18 of file TrigUtilities.h.

◆ hgc_compression_factor_

int trigger::ecalTpToE::hgc_compression_factor_ = 8
private

Definition at line 27 of file TrigUtilities.h.

◆ layerWeights_

std::vector<float> trigger::ecalTpToE::layerWeights_
private
Initial value:
= {
2.312, 4.312, 6.522, 7.490, 8.595, 10.253, 10.915, 10.915, 10.915,
10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915,
10.915, 10.915, 10.915, 10.915, 10.915, 14.783, 18.539, 18.539, 18.539,
18.539, 18.539, 18.539, 18.539, 18.539, 18.539, 9.938}

Definition at line 20 of file TrigUtilities.h.

20 {
21 2.312, 4.312, 6.522, 7.490, 8.595, 10.253, 10.915, 10.915, 10.915,
22 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915, 10.915,
23 10.915, 10.915, 10.915, 10.915, 10.915, 14.783, 18.539, 18.539, 18.539,
24 18.539, 18.539, 18.539, 18.539, 18.539, 18.539, 9.938};

◆ mipSiEnergy_

float trigger::ecalTpToE::mipSiEnergy_ = 0.130
private

Definition at line 26 of file TrigUtilities.h.

◆ mVtoMeV_

float trigger::ecalTpToE::mVtoMeV_ = 0.130 / (37000.0 * (0.1602 / 1000.) * (1. / 0.1))
private

Definition at line 19 of file TrigUtilities.h.

◆ secondOrderEnergyCorrection_

float trigger::ecalTpToE::secondOrderEnergyCorrection_ = 4000. / 3940.5
private

Definition at line 25 of file TrigUtilities.h.


The documentation for this class was generated from the following file: