#include <ERatio.h>
Definition at line 25 of file ERatio.h.
◆ ERatio()
GlobalSim::ERatio::ERatio |
( |
const std::string & |
name, |
|
|
double |
thresh = 50. , |
|
|
double |
maxERCut = 2.5 |
|
) |
| |
◆ ~ERatio()
virtual GlobalSim::ERatio::~ERatio |
( |
| ) |
|
|
virtualdefault |
◆ eratioCut()
bool GlobalSim::ERatio::eratioCut |
( |
double |
p_peakE, |
|
|
double |
s_peakE |
|
) |
| |
|
private |
Definition at line 128 of file ERatio.cxx.
130 if (p_peakE <= 0 or s_peakE <= 0) {
return false;}
◆ run()
Definition at line 19 of file ERatio.cxx.
23 std::size_t maxCellInd = nbhd.maxCellIndex();
24 auto p_peakE = nbhd.phi_center().at(maxCellInd).m_e;
26 for (
const auto& ps : {nbhd.phi_center(),
42 return StatusCode::SUCCESS;
◆ secondaryPeakEnergy_back()
double GlobalSim::ERatio::secondaryPeakEnergy_back |
( |
const StripDataVector & |
phi_str, |
|
|
std::size_t |
maxCellInd |
|
) |
| |
|
private |
Definition at line 85 of file ERatio.cxx.
100 if (
sz < 2) {
return peakE;}
103 phi_str.at(maxCellInd-1).m_e < maxStripE -
m_minDeltaE;
107 std::size_t
start = phi_str.size() - maxCellInd + 1;
108 for(
auto iter = std::rbegin(phi_str)+
start;
109 iter != std::rend(phi_str);
113 valley = iter->m_e < ((iter-1)->m_e) -
m_minDeltaE;
117 auto c_cellE = iter->m_e;
118 auto p_cellE = (iter-1)->m_e;
◆ secondaryPeakEnergy_forw()
double GlobalSim::ERatio::secondaryPeakEnergy_forw |
( |
const StripDataVector & |
phi_str, |
|
|
std::size_t |
maxCellInd |
|
) |
| |
|
private |
Definition at line 46 of file ERatio.cxx.
58 auto sz = phi_str.size();
59 if (sz < 3 or maxCellInd >
sz) {
return peakE;}
62 phi_str.at(maxCellInd+1).m_e < maxStripE -
m_minDeltaE;
64 for(
auto iter =
std::begin(phi_str)+maxCellInd+2;
73 auto c_cellE = iter->m_e;
74 auto p_cellE = (iter-1)->m_e;
◆ toString()
std::string GlobalSim::ERatio::toString |
( |
| ) |
const |
Definition at line 136 of file ERatio.cxx.
137 std::stringstream
ss;
140 <<
" minimum strip E difference to be significant " <<
m_minDeltaE
141 <<
" upper ERatio limit for pi0 candidate " <<
m_maxERCut
◆ m_maxERCut
double GlobalSim::ERatio::m_maxERCut {2.5} |
|
private |
◆ m_minDeltaE
double GlobalSim::ERatio::m_minDeltaE {50.} |
|
private |
◆ m_name
std::string GlobalSim::ERatio::m_name {"ERatio_object"} |
|
private |
The documentation for this class was generated from the following files: