17std::ostream&
operator<<( std::ostream& s, std::pair<double, double > p )
19 s << p.first <<
" " << p.second;
24 ISvcLocator* pSvcLocator) :
40 if (
m_helper.retrieve().isFailure() ) {
42 (
m_helper.propertyName() <<
": Failed to retrieve tool "
44 return StatusCode::FAILURE;
47 (
m_helper.propertyName() <<
": Retrieved tool "
61 std::ofstream outfile;
66 return StatusCode::SUCCESS;
return StatusCode::SUCCESS;
81 std::unique_ptr<ITrigJetHypoInfoCollector> debugInfoCollector(
nullptr);
83 auto collectorName = name() +
"debugInfoCollector";
90 <<
m_helper->pass(jv, jetCollector, debugInfoCollector));
93 ss <<
"========= ncall: "<<
m_ncall <<
"==========\n";
94 if(
m_visitDebug) ss << debugInfoCollector->toString() +
'\n';
96 std::ofstream outfile;
97 outfile.open(
m_logname, std::ios_base::app);
99 return StatusCode::SUCCESS;
109 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
std::vector< pHypoJet > HypoJetVector
std::ostream & operator<<(std::ostream &s, std::pair< double, double > p)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual std::string toString() const override
Gaudi::Property< bool > m_visitDebug
JetHypoExerciserAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_logname
virtual ~JetHypoExerciserAlg()
ToolHandle< ITrigJetHypoToolHelper > m_helper
ToolHandle< IHypoJetVectorGenerator > m_generator
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)