diff --git a/PhysicsAnalysis/TauID/TauDQA/CMakeLists.txt b/PhysicsAnalysis/TauID/TauDQA/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..eed18a229f127c0de66144e824c73c5babbc4535 --- /dev/null +++ b/PhysicsAnalysis/TauID/TauDQA/CMakeLists.txt @@ -0,0 +1,33 @@ +################################################################################ +# 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 ) + diff --git a/PhysicsAnalysis/TauID/TauDQA/src/PhysValTau.cxx b/PhysicsAnalysis/TauID/TauDQA/src/PhysValTau.cxx index f9c62cd5401ed94164c8e61cca47c7e39f94510d..b7c82523e4a278a09b45d03d21da45ea66015347 100644 --- a/PhysicsAnalysis/TauID/TauDQA/src/PhysValTau.cxx +++ b/PhysicsAnalysis/TauID/TauDQA/src/PhysValTau.cxx @@ -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.