#include <Egamma1BaselineAlgTool.h>
Definition at line 25 of file Egamma1BaselineAlgTool.h.
◆ Egamma1BaselineAlgTool()
GlobalSim::Egamma1BaselineAlgTool::Egamma1BaselineAlgTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~Egamma1BaselineAlgTool()
virtual GlobalSim::Egamma1BaselineAlgTool::~Egamma1BaselineAlgTool |
( |
| ) |
|
|
virtualdefault |
◆ combine_phi()
Definition at line 162 of file Egamma1BaselineAlgTool.cxx.
163 auto result = std::vector<double>();
165 const auto& phi_low = nbhd->phi_low();
168 const auto& phi_center = nbhd->phi_center();
171 const auto& phi_high = nbhd->phi_high();
◆ initialize()
StatusCode GlobalSim::Egamma1BaselineAlgTool::initialize |
( |
| ) |
|
|
override |
◆ run()
StatusCode GlobalSim::Egamma1BaselineAlgTool::run |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 29 of file Egamma1BaselineAlgTool.cxx.
40 ATH_MSG_DEBUG(
"read in " << (*in).size() <<
" neighborhoods");
43 ap_int<16> secondMax = 0;
50 for (
const auto& nbhd : *in) {
54 ss <<
"Baseline input: ";
55 for (
const auto&
i : c_phi) {
ss <<
i <<
' ';}
65 ss <<
"Baseline input: ";
66 for (
const auto&
i :
input) {
ss <<
i <<
' ';}
76 std::vector<ap_int<16>> secondPeak;
94 auto result = std::max_element(secondPeak.begin(), secondPeak.end());
97 <<
" has value " << *
result);
103 if(peak > 0 || secondMax > 0){
104 auto eRatio =
static_cast< float >(peak - secondMax)/
static_cast< float >(peak + secondMax);
105 h_eRatio->push_back(eRatio);
108 auto eRatioSimple =
static_cast< float >(secondMax)/
static_cast< float >(peak);
109 h_eRatioSimple->push_back(eRatioSimple);
115 return StatusCode::SUCCESS;
◆ secondPeakSearch()
Definition at line 118 of file Egamma1BaselineAlgTool.cxx.
127 ap_int<16> lastEnergy = peak;
128 ap_int<16> secondPeak = 0;
132 if(startCell > endCell) {
139 for (
auto itr =
input.begin() + startCell; itr !=
input.begin() + endCell + direction; itr+=direction){
141 ATH_MSG_DEBUG(
"Input is " << *itr <<
" last energy is " << lastEnergy);
142 if(
ascending==0 && *itr>lastEnergy && *itr-lastEnergy > noiseMargin){
143 ATH_MSG_DEBUG(
"We are going up now " << *itr <<
" is more then " << lastEnergy);
147 }
else if(
ascending==1 && lastEnergy>*itr && lastEnergy-*itr > noiseMargin){
148 ATH_MSG_DEBUG(
"We are past the top " << *itr <<
" is less than " << lastEnergy);
149 if(secondPeak<*itr) secondPeak = lastEnergy;
◆ toString()
std::string GlobalSim::Egamma1BaselineAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_enableDump
Gaudi::Property<bool> GlobalSim::Egamma1BaselineAlgTool::m_enableDump |
|
private |
◆ m_eRatioKey
◆ m_eRatioSimpleKey
SG::WriteHandleKey<std::vector<float> > GlobalSim::Egamma1BaselineAlgTool::m_eRatioSimpleKey |
|
private |
◆ m_nbhdContainerReadKey
Initial value:{
this,
"LArNeighborhoodContainerReadKey",
"stripNeighborhoodContainer",
"key to read inLArNeighborhoodReadKeys"}
Definition at line 51 of file Egamma1BaselineAlgTool.h.
◆ s_combination_len
constexpr int GlobalSim::Egamma1BaselineAlgTool::s_combination_len = 51 |
|
inlinestaticconstexprprivate |
◆ s_required_phi_len
constexpr int GlobalSim::Egamma1BaselineAlgTool::s_required_phi_len = 17 |
|
inlinestaticconstexprprivate |
The documentation for this class was generated from the following files: