13 const std::string& name,
14 const IInterface* parent) :
15 base_class(
type, name, parent) {
26 return StatusCode::FAILURE;
33 return StatusCode::FAILURE;
49 for (ulong i =
m_TIP_width; i != 0; --i) { maxtob *= 2;}
53 return StatusCode::SUCCESS;
58 const EventContext& ctx)
const {
63 CHECK(tobs.isValid());
68 std::vector<bool> tob_pass(tobs->size(),
false);
71 tob_pass[tob_it] =
true;
82 auto count_bits = std::bitset<s_nbits_TIP>(tob_count);
89 for (; p0 != mxb; ++p0, ++p1) {
90 if (count_bits.test(p0)) {word.set(p1);}
98 ss <<
"\nRun " << ctx <<
' ' <<
"TIP:\n" << word <<
'\n';
101 ss << tob->to_string() <<
' ' << std::boolalpha <<
" pass " << tob_pass[ind++] <<
'\n';
103 ss <<
"tob count " << tob_count <<
'\n';
105 std::ofstream out(name() +
".log", std::ios_base::app);
111 return StatusCode::SUCCESS;
115 std::stringstream
ss;
117 <<
"CommonMultAlgTool read, select, count and report number of related CommonTOBS\n"
#define CHECK(...)
Evaluate an expression and check for errors.
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.