Skip to content
Snippets Groups Projects
Commit a5648d8d authored by Marian Stahl's avatar Marian Stahl
Browse files

small changes in TupleToolVtxIsoln to get it running and some message suppression in TupleToolDOCA

parent 723fd1ea
No related branches found
No related tags found
No related merge requests found
......@@ -160,12 +160,12 @@ StatusCode TupleToolDOCA::fill( const Particle*, const Particle* P, const std::s
/// error handling
if ( sc.isFailure() ) {
error() << "doca computation failed" << endmsg;
error() << "for these two particles" << endmsg;
error() << " location 1: " << m_locations1[i] << endmsg;
error() << "particle was " << *daughter1 << endmsg;
error() << " location 2: " << m_locations2[i] << endmsg;
error() << "particle was " << *daughter2 << endmsg;
debug() << "doca computation failed" << endmsg;
debug() << "for these two particles" << endmsg;
debug() << " location 1: " << m_locations1[i] << endmsg;
debug() << "particle was " << *daughter1 << endmsg;
debug() << " location 2: " << m_locations2[i] << endmsg;
debug() << "particle was " << *daughter2 << endmsg;
/// fill dummy value -999. due to failure
test &= tuple->column( prefix + nam, -999. );
......
......@@ -41,6 +41,9 @@ DECLARE_COMPONENT( TupleToolVtxIsoln )
TupleToolVtxIsoln::TupleToolVtxIsoln( const std::string& type, const std::string& name, const IInterface* parent )
: TupleToolBase( type, name, parent ), m_isolationTool( 0 ) {
declareInterface<IParticleTupleTool>( this );
declareProperty( "inputs", m_inputs, "List of containers to check for extra particle vertexing" );
declareProperty( "max_chi2", m_chi2 = 9.0, "Maximum chi2 for compatible particles" );
}
//=============================================================================
......@@ -50,6 +53,9 @@ StatusCode TupleToolVtxIsoln::initialize() {
if ( sc.isFailure() ) return sc;
m_isolationTool = tool<IExtraInfoTool>( "VertexIsolation", "VertexIsolation", this );
Gaudi::Utils::setProperty(m_isolationTool,"InputParticles",m_inputs).ignore();
Gaudi::Utils::setProperty(m_isolationTool,"MaxChi2",m_chi2).ignore();
if ( !m_isolationTool ) {
Error( "Unable to retrieve the isolation tool" ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
return StatusCode::FAILURE;
......
......@@ -68,6 +68,8 @@ private:
IsolationIndices m_indices;
// Variable names to store in the tuple
std::map<int, std::string> m_varNames;
std::vector<std::string> m_inputs;
double m_chi2;
};
#endif // TUPLETOOLVTXISOLN_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment