20 const IInterface*
p ) :
23 m_collName(
"TauRecContainer"),
26 declareInterface<DerivationFramework::IAugmentationTool>(
this);
39 if (m_isTauFlag==-1) {
40 ATH_MSG_ERROR(
"No tau flag variables for the tau selection wrapper tool!");
41 return StatusCode::FAILURE;
44 ATH_MSG_ERROR(
"No tau container provided for the tau selection wrapper tool!");
45 return StatusCode::FAILURE;
48 ATH_MSG_ERROR(
"No StoreGate key provided for the output of the tau selection wrapper tool!");
49 return StatusCode::FAILURE;
52 return StatusCode::SUCCESS;
57 return StatusCode::SUCCESS;
67 ATH_MSG_ERROR(
"Couldn't retrieve tau container with key: " << m_collName);
68 return StatusCode::FAILURE;
72 std::vector<int>* isTauSelectionResult =
new std::vector<int>;
76 if ( (*tauIt)->isTau(isTauFlag) ) {isTauSelectionResult->push_back(1);}
77 else {isTauSelectionResult->push_back(0);}
81 if (evtStore()->contains<std::vector<int> >(m_sgKey)) {
82 ATH_MSG_ERROR(
"Tool is attempting to write a StoreGate key " << m_sgKey <<
" which already exists. Please use a different key");
83 delete isTauSelectionResult;
84 return StatusCode::FAILURE;
86 CHECK(evtStore()->record(isTauSelectionResult,m_sgKey));
87 return StatusCode::SUCCESS;