 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "../../../dump.h"
10 #include "../../../dump.icc"
21 const std::string&
name,
22 const IInterface*
parent) :
27 if (
vals.size() !=
sz) {
return false;}
28 return std::all_of(std::cbegin(
vals),
30 [](
const auto&
v){
return v >= 0;});
42 return StatusCode::FAILURE;
47 return StatusCode::FAILURE;
54 return StatusCode::FAILURE;
59 return StatusCode::FAILURE;
64 return StatusCode::FAILURE;
69 return StatusCode::FAILURE;
75 return StatusCode::FAILURE;
80 return StatusCode::FAILURE;
85 return StatusCode::FAILURE;
90 return StatusCode::FAILURE;
93 return StatusCode::SUCCESS;
108 auto ss = std::stringstream();
110 for (
const auto& tob: *tobs1) {
115 for (
const auto& tob: *tobs1) {
123 auto acceptFlagsEtEta1 =
124 AcceptFlags(s_NumResultBits, std::vector<bool>(maxCount1,
false));
129 auto acceptFlagsEtEta2 =
130 AcceptFlags(s_NumResultBits, std::vector<bool>(maxCount2,
false));
135 auto result = std::make_unique<InvariantMassResult>();
137 for (
auto isel{0U}; isel != s_NumResultBits; ++isel) {
138 for (
auto i1{0U}; i1 != maxCount1; ++i1) {
139 if (!acceptFlagsEtEta1[isel][i1]) {
continue;}
140 for (
auto i2{0U}; i2 != maxCount2; ++i2) {
141 if (!acceptFlagsEtEta1[isel][i2]) {
continue;}
142 (*result)[isel] =
true;
151 return StatusCode::SUCCESS;
157 std::stringstream
ss;
158 ss <<
"name: " <<
name() <<
'\n'
172 for (std::size_t isel{0}; isel != s_NumResultBits; ++isel) {
186 return StatusCode::SUCCESS;
194 for (std::size_t isel{0}; isel != s_NumResultBits; ++isel) {
207 return StatusCode::SUCCESS;
258 std::vector<bool>&
flags,
263 auto tobSelector = [minEt,
266 return t->Et() > minEt and
t->Eta() >= minEta and
t->Eta() <=
maxEta;
271 std::back_inserter(
flags),
275 return StatusCode::SUCCESS;
282 std::vector<bool>&
flags,
285 auto tobSelector = [minEt] (
const auto&
t) {
286 return t->Et() > minEt;
291 std::back_inserter(
flags),
295 return StatusCode::SUCCESS;
bool cutChecker(const std::vector< int > &vals, std::size_t sz)
AlgTool to obtain a selection of eFex RoIs read in from the event store.
::StatusCode StatusCode
StatusCode definition for legacy code.
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Header file to be included by clients of the Monitored infrastructure.
std::vector< std::shared_ptr< GenericTob > > GenericTobContainer