ATLAS Offline Software
Loading...
Searching...
No Matches
TauJetCnvAlg.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5*/
6
7// TauJetCnvAlg.cxx
8// Implementation file for class TauJetCnvAlg
9// Author: Michel Janus janus@cern.ch
11
12
13// xAODTauJetCnv includes
14#include "TauJetCnvAlg.h"
15
16// Old tau Includes:
18
19//New tau
22
23// STL includes
24
25// FrameWork includes
26#include "Gaudi/Property.h"
28
29
31// Public methods:
33
34namespace xAODMaker {
35// Constructors
37TauJetCnvAlg::TauJetCnvAlg( const std::string& name,
38 ISvcLocator* pSvcLocator ) :
39 ::AthAlgorithm( name, pSvcLocator )
40{}
41
42// Destructor
46
47// Athena Algorithm's Hooks
50{
51 ATH_MSG_INFO ("Initializing " << name() << "...");
52
54
55 CHECK(m_cnvTool.retrieve());
56
57 return StatusCode::SUCCESS;
58}
59
61{
62 ATH_MSG_INFO ("Finalizing " << name() << "...");
63
64
65 return StatusCode::SUCCESS;
66}
67
69{
70 ATH_MSG_DEBUG ("Executing " << name() << "...");
72
74 if (!inputTaus) {
75 ATH_MSG_WARNING("No TauJetContainer with key " << m_inputTauJetContainerName << " found. Do nothing.");
76 return StatusCode::SUCCESS;
77 }
78
79 // Create the xAOD container and its auxiliary store:
81 CHECK( evtStore()->record( xaodTauJets, m_xaodTauJetContainerName ) );
83 CHECK( evtStore()->record( auxTauJets, m_xaodTauJetContainerName + "Aux." ) );
84 xaodTauJets->setStore( auxTauJets );
85 ATH_MSG_DEBUG( "Recorded xAOD tau jets with key: "
87
88 CHECK( m_cnvTool->convert(inputTaus, xaodTauJets) );
89
90
91 return StatusCode::SUCCESS;
92}
93
94}
95
96
97// LocalWords: tempfloat
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual ~TauJetCnvAlg()
Destructor:
TauJetCnvAlg()
Default constructor:
virtual StatusCode initialize()
Gaudi::Property< std::string > m_xaodTauJetContainerName
virtual StatusCode execute()
virtual StatusCode finalize()
ToolHandle< ITauJetCnvTool > m_cnvTool
Tool to perform taujet container conversion.
Gaudi::Property< std::string > m_inputTauJetContainerName
Containers.
TauJetAuxContainer_v3 TauJetAuxContainer
Definition of the current taujet auxiliary container.
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".