Skip to content
Snippets Groups Projects
Commit cc88dcdf authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (TauDQA-00-02-03)

Former-commit-id: cce92569c93ce73f305e97fff0eb918fb5a19501
parent 593ed570
No related merge requests found
################################################################################
# Package: TauDQA
################################################################################
# Declare the package name:
atlas_subdir( TauDQA )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
GaudiKernel
PRIVATE
Control/AthenaBaseComps
Control/AthenaMonitoring
Event/xAOD/xAODEgamma
Event/xAOD/xAODJet
Event/xAOD/xAODTau
Event/xAOD/xAODTruth
PhysicsAnalysis/TauID/TauHistUtils
PhysicsAnalysis/TruthParticleID/McParticleEvent
Tracking/TrkValidation/TrkValHistUtils )
# External dependencies:
find_package( HepMC )
find_package( HepPDT )
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_component( TauDQA
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${HEPPDT_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS}
LINK_LIBRARIES ${HEPPDT_LIBRARIES} ${ROOT_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel AthenaBaseComps AthenaMonitoringLib xAODEgamma xAODJet xAODTau xAODTruth TauHistUtils McParticleEvent TrkValHistUtils )
......@@ -42,7 +42,7 @@ PhysValTau::PhysValTau( const std::string& type,
declareProperty( "TauContainerName", m_TauJetContainerName = "TauRecContainer" );
declareProperty( "TruthParticleContainerName", m_TruthParticleContainerName = "TruthParticle" );
declareProperty( "TauDetailsContainerName", m_TauDetailsContainerName = "TauRecDetailsContainer" );
declareProperty("isMC", m_isMC= false);
declareProperty("isMC", m_isMC);
// std::cout << "Match tool Core Var Truth Cuts Et " << matchtool.getvisETCut() << " eta " << matchtool.getvisEtaCut() << std::endl;
}
......@@ -113,15 +113,14 @@ StatusCode PhysValTau::fillHistograms()
////////////////////////////////////////////////////////////////////////////////////////////////
// Retrieve truth container:
const xAOD::TruthParticleContainer* truth = 0;
if (m_isMC){
truth = evtStore()->retrieve< const xAOD::TruthParticleContainer >( m_TruthParticleContainerName );
// if (m_isMC){
const xAOD::TruthParticleContainer* truth = evtStore()->retrieve< const xAOD::TruthParticleContainer >( m_TruthParticleContainerName );
if (!truth) {
ATH_MSG_ERROR ("Couldn't retrieve tau container with key: " << m_TruthParticleContainerName);
return StatusCode::FAILURE;
// return StatusCode::FAILURE;
}
// ATH_MSG_DEBUG( "Number of truth: " << truth->size() );
}
//////////////////////////////////////////////////////////////////////////////////////////////////
// Retrieve true hadronic tau container from truth container
// getHaderonicTruth finds true taus (ID == 15) with correct status and no leptonic decay.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment