Commit 345777de authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (PanTauEvent-00-05-08)

2015-09-25  Peter Wagner <peter -dot- wagner -at- cern.ch>
	* Tagging PanTauEvent-00-05-08.
        * Fix coverity warnings: memleak
2015-01-13  scott snyder  <snyder@bnl.gov>
parent 3f31d033
################################################################################
# Package: PanTauEvent
################################################################################
# Declare the package name:
atlas_subdir( PanTauEvent )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthContainers
Control/CLIDSvc
Control/SGTools
Event/FourMom
Event/xAOD/xAODPFlow
Event/xAOD/xAODTau
Reconstruction/tauEvent
PRIVATE
GaudiKernel
Reconstruction/Jet/JetEvent
Reconstruction/Particle )
# External dependencies:
find_package( CLHEP )
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_library( PanTauEvent
src/*.cxx
PUBLIC_HEADERS PanTauEvent
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS}
LINK_LIBRARIES ${ROOT_LIBRARIES} AthContainers SGTools FourMom xAODPFlow xAODTau tauEvent
PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} GaudiKernel JetEvent Particle )
atlas_add_dictionary( PanTauEventDict
PanTauEvent/PanTauEventDict.h
PanTauEvent/selection.xml
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} AthContainers SGTools FourMom xAODPFlow xAODTau tauEvent GaudiKernel JetEvent Particle PanTauEvent )
......@@ -96,10 +96,12 @@ public:
* @param[in] seed pointer to TauSeed (PanTauDetails does not take ownership)
* @param[in] features pointer to TauFeature (PanTauDetails takes ownership, do not delete yourself!)
*/
/*
PanTauDetails(
const PanTau::TauSeed *seed,
const PanTau::TauFeature *features = 0
);
*/
/** Destructor */
virtual ~PanTauDetails();
......
......@@ -15,8 +15,8 @@ std::string PanTau::PanTauDetails::s_className = "PanTauDetails";
PanTau::PanTauDetails::PanTauDetails()
:
Analysis::TauDetails(),
m_features(0),
m_seed(0),
m_features(nullptr),
m_seed(nullptr),
m_Name_InputAlg("InvalidInputAlg"),
m_RecoMode_SubAlg(-5),
......@@ -97,7 +97,7 @@ PanTau::PanTauDetails::PanTauDetails(PanTau::PanTauSeed* inputSeed)
}
/*
PanTau::PanTauDetails::PanTauDetails(
const PanTau::TauSeed *seed,
const PanTau::TauFeature *features
......@@ -144,6 +144,8 @@ PanTau::PanTauDetails::PanTauDetails(
m_CellBased_Combined_DeltaR1stNeutralTo1stCharged(-5)
{
}
*/
/** Copy constructor */
PanTau::PanTauDetails::PanTauDetails(
......@@ -193,14 +195,14 @@ PanTau::PanTauDetails::PanTauDetails(
PanTau::PanTauDetails::~PanTauDetails()
{
// if(m_features != 0) delete m_features;
if(m_features != 0) delete m_features;
}
/** Assignment operator */
PanTau::PanTauDetails& PanTau::PanTauDetails::operator=(const PanTau::PanTauDetails& rhs)
{
if (this!=&rhs){
delete m_features;
if(m_features != 0) delete m_features;
m_features = (rhs.m_features ? new PanTau::TauFeature(*rhs.m_features) : 0);
m_seed = rhs.m_seed;
m_PanTauSeed = rhs.m_PanTauSeed;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment