LDMX Software
trigger::EcalTpToE Class Reference

Public Member Functions

double calc (int tp, int layer)
 

Private Attributes

float gain_ = 320. / 0.1 / 1024
 
float m_vto_me_v_
 
std::vector< float > layer_weights_
 
float second_order_energy_correction_ = 4000. / 3940.5
 
float mip_si_energy_ = 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 m_vto_me_v_; // in MeV, before layer corrections
13 return (sie / mip_si_energy_ * layer_weights_.at(layer) + sie) *
14 second_order_energy_correction_;
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 28 of file TrigUtilities.h.

◆ layer_weights_

std::vector<float> trigger::EcalTpToE::layer_weights_
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 21 of file TrigUtilities.h.

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

◆ m_vto_me_v_

float trigger::EcalTpToE::m_vto_me_v_
private
Initial value:
=
0.130 / (37000.0 * (0.1602 / 1000.) * (1. / 0.1))

Definition at line 19 of file TrigUtilities.h.

◆ mip_si_energy_

float trigger::EcalTpToE::mip_si_energy_ = 0.130
private

Definition at line 27 of file TrigUtilities.h.

◆ second_order_energy_correction_

float trigger::EcalTpToE::second_order_energy_correction_ = 4000. / 3940.5
private

Definition at line 26 of file TrigUtilities.h.


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