13 ISvcLocator *pSvcLocator):
28 ss << tool->toString() <<
'\n';
33 ss << tool->toString() <<
'\n';
37 std::ofstream out(name() +
"_init.log");
46 TIPword tip_tmp{tool->getFullTIPWord()};
47 ATH_MSG_VERBOSE(
"TIP writer " << tool.name() <<
" produces: " << tip_tmp);
48 if((tip_tmp & tip_test).any()) {
50 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
67 using TIPWord = std::bitset<ITIPWriterAlgTool::s_nbits_TIP>;
74 auto tipword = std::make_unique<TIPWord>();
77 CHECK(tool -> updateTIP(*tipword, ctx));
82 ss <<
"\nRun " << ctx <<
' ' <<
"TIP:\n" << *tipword <<
'\n';
85 std::ofstream out(name() +
"_tip.log", std::ios_base::app);
96 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
#define CHECK(...)
Evaluate an expression and check for errors.
Define macros for attributes used to control the static checker.
ServiceHandle< StoreGateSvc > & evtStore()
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
ToolHandleArray< ITIPWriterAlgTool > m_TIPwriters
Gaudi::Property< bool > m_enableDumps
GlobalSimulationAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< TIPword > m_tipWordKey
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandleArray< IGlobalSimAlgTool > m_algTools
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.
std::bitset< ITIPWriterAlgTool::s_nbits_TIP > TIPword
int run(int argc, char *argv[])