19 const IInterface*
p ) :
22 m_collName(
"TauRecContainer"),
25 declareInterface<DerivationFramework::IAugmentationTool>(
this);
38 if (m_isTauFlag==-1) {
39 ATH_MSG_ERROR(
"No tau flag variables for the tau selection wrapper tool!");
40 return StatusCode::FAILURE;
43 ATH_MSG_ERROR(
"No tau container provided for the tau selection wrapper tool!");
44 return StatusCode::FAILURE;
47 ATH_MSG_ERROR(
"No StoreGate key provided for the output of the tau selection wrapper tool!");
48 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
56 return StatusCode::SUCCESS;
66 ATH_MSG_ERROR(
"Couldn't retrieve tau container with key: " << m_collName);
67 return StatusCode::FAILURE;
71 std::vector<int>* isTauSelectionResult =
new std::vector<int>;
75 if ( (*tauIt)->isTau(isTauFlag) ) {isTauSelectionResult->push_back(1);}
76 else {isTauSelectionResult->push_back(0);}
80 if (evtStore()->contains<std::vector<int> >(m_sgKey)) {
81 ATH_MSG_ERROR(
"Tool is attempting to write a StoreGate key " << m_sgKey <<
" which already exists. Please use a different key");
82 delete isTauSelectionResult;
83 return StatusCode::FAILURE;
85 CHECK(evtStore()->record(isTauSelectionResult,m_sgKey));
86 return StatusCode::SUCCESS;