Skip to content
Snippets Groups Projects
Commit 3318b745 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AnalysisTest: delete obsolete package

None of this code seems relevant anymore and most of it is likely
broken.
parent 16dcd668
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 1143 deletions
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_NAVTEST_H
#define ANALYSISTEST_NAVTEST_H
/*
test for navigation
@author Tadashi Maeno
*/
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/NTuple.h"
/////////////////////////////////////////////////////////////////////////////
class NavTest : public AthAlgorithm
{
public:
NavTest (const std::string& name, ISvcLocator* pSvcLocator);
~NavTest () {}
StatusCode initialize();
StatusCode execute();
StatusCode finalize();
};
#endif
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READCONSTITUENT_H
#define ANALYSISTEST_READCONSTITUENT_H
/*
templated Read constituent
@author Tadashi Maeno
*/
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/NTuple.h"
/////////////////////////////////////////////////////////////////////////////
template <class CONT>
class ReadConstituent : public AthAlgorithm
{
public:
ReadConstituent (const std::string& name, ISvcLocator* pSvcLocator);
virtual ~ReadConstituent () {}
StatusCode initialize();
StatusCode execute();
StatusCode finalize();
protected:
StatusCode accessNtuple();
NTuple::Tuple* m_ntuplePtr;
// Container key
std::string m_ContainerName;
// prefix for Ntuple
std::string m_prefix;
// Ntuple ID
std::string m_NtupleLocID;
// Define variables in the Ntuple:
NTuple::Item<long> m_nCon;
// user defined action
virtual StatusCode userInit() { return StatusCode::SUCCESS; }
virtual StatusCode userExec(const typename CONT::base_value_type *) { return StatusCode::SUCCESS; }
};
#include "AnalysisTest/ReadConstituent.icc"
#endif
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
static const int MAX_nCon = 128;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class CONT> inline
ReadConstituent<CONT>::ReadConstituent(const std::string& name, ISvcLocator* pSvcLocator)
: AthAlgorithm(name, pSvcLocator),
m_ntuplePtr(nullptr),
m_ContainerName("")
{
// Declare the properties
declareProperty("NtupleLocID", m_NtupleLocID);
declareProperty("ContainerName",m_ContainerName);
declareProperty("NtuplePrefix", m_prefix);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class CONT> inline
StatusCode ReadConstituent<CONT>::initialize()
{
ATH_MSG_DEBUG ("in initialize()");
StatusCode sc;
// access Ntuple
sc = accessNtuple();
if (sc.isFailure())
{
ATH_MSG_ERROR ("accessNtuple has failed !");
return StatusCode::FAILURE;
}
// add items
sc = m_ntuplePtr -> addItem (m_prefix+"/nCon", m_nCon, 0, MAX_nCon);
if (sc.isFailure())
{
ATH_MSG_ERROR ("Could not add items to column wise ntuple");
return StatusCode::FAILURE;
}
sc = userInit();
return sc;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class CONT> inline
StatusCode ReadConstituent<CONT>::execute()
{
ATH_MSG_DEBUG ("in execute()");
StatusCode sc;
// Retrieve presistified container
CONT * pCont;
sc =evtStore()->retrieve(pCont,m_ContainerName);
if (sc.isFailure())
{
ATH_MSG_FATAL ("Container \""+m_ContainerName+"\" could not be retrieved from StoreGate !");
return StatusCode::FAILURE;
}
ATH_MSG_DEBUG ("Container->size() : " << pCont->size());
m_nCon = 0;
// loop over constituents
typename CONT::const_iterator itP = pCont->begin();
typename CONT::const_iterator itPe = pCont->end();
for (; itP != itPe; ++itP)
{
if (m_nCon >= MAX_nCon) break;
ATH_CHECK(userExec(*itP));
++m_nCon;
}
ATH_MSG_DEBUG ("execute() completed");
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class CONT> inline
StatusCode ReadConstituent<CONT>::finalize()
{
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class CONT> inline
StatusCode ReadConstituent<CONT>::accessNtuple()
{
m_NtupleLocID = "/NTUPLES" + m_NtupleLocID ;
//try to access it
NTuplePtr nt(ntupleSvc(), m_NtupleLocID );
if (static_cast<int>(nt))
{
m_ntuplePtr=nt;
ATH_MSG_INFO ("Ntuple " << m_NtupleLocID << " reaccessed! ");
}
else
{
ATH_MSG_FATAL ("Cannot reaccess " << m_NtupleLocID);
return StatusCode::FAILURE;
}
return StatusCode::SUCCESS;
}
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READELECTRON_H
#define ANALYSISTEST_READELECTRON_H
/*
Read Electron
@author Tadashi Maeno
*/
#include "AnalysisTest/ReadParticle.h"
#include "egammaEvent/ElectronContainer.h"
class ReadElectron : public ReadParticle<ElectronContainer>
{
public:
ReadElectron (const std::string& name, ISvcLocator* pSvcLocator)
: ReadParticle<ElectronContainer> (name, pSvcLocator) {}
};
#endif
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
// ReadINav4MomAssocs.h
// Header file for class ReadINav4MomAssocs
// Author: S.Binet<binet@cern.ch>
///////////////////////////////////////////////////////////////////
#ifndef ANALYSISTEST_READINAV4MOMASSOCS_H
#define ANALYSISTEST_READINAV4MOMASSOCS_H
/** Algorithm to test persistency of INav4MomAssocs class
*/
// STL includes
// FrameWork includes
#include "AthenaBaseComps/AthAlgorithm.h"
#include "AthenaKernel/ClassName.h"
class ReadINav4MomAssocs : public AthAlgorithm
{
///////////////////////////////////////////////////////////////////
// Public methods:
///////////////////////////////////////////////////////////////////
public:
// Copy constructor:
/// Constructor with parameters:
ReadINav4MomAssocs( const std::string& name, ISvcLocator* pSvcLocator );
/// Destructor:
virtual ~ReadINav4MomAssocs();
// Assignment operator:
//ReadINav4MomAssocs &operator=(const ReadINav4MomAssocs &alg);
// Athena algorithm's Hooks
virtual StatusCode initialize();
virtual StatusCode execute();
virtual StatusCode finalize();
///////////////////////////////////////////////////////////////////
// Const methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
// Non-const methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
// Protected method:
///////////////////////////////////////////////////////////////////
protected:
template <typename ASSOCS>
StatusCode readAssocs( const std::string assocsName ) const;
///////////////////////////////////////////////////////////////////
// Protected data:
///////////////////////////////////////////////////////////////////
protected:
/// Default constructor:
ReadINav4MomAssocs();
// Containers
/** Input location of INav4MomAssocs container
*/
StringProperty m_inavAssocsName;
};
/// I/O operators
//////////////////////
///////////////////////////////////////////////////////////////////
/// Inline methods:
///////////////////////////////////////////////////////////////////
template <typename ASSOCS>
StatusCode ReadINav4MomAssocs::readAssocs( const std::string assocsName ) const
{
const ASSOCS * assocs = 0;
ATH_CHECK( evtStore()->retrieve( assocs, assocsName ) );
typename ASSOCS::object_iterator objEnd = assocs->endObject();
for ( typename ASSOCS::object_iterator objItr = assocs->beginObject();
objItr != objEnd;
++objItr ) {
ATH_MSG_INFO
( "--> e= " << (*objItr)->e()
<< "\tnAssocs= " << assocs->getNumberOfAssociations(objItr) ) ;
}
return StatusCode::SUCCESS;
}
#endif //> ANALYSISTEST_READINAV4MOMASSOCS_H
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READMUON_H
#define ANALYSISTEST_READMUON_H
/*
Read Muons
@author Tadashi Maeno
*/
#include "AnalysisTest/ReadParticle.h"
#include "muonEvent/MuonContainer.h"
class ReadMuon : public ReadParticle<Analysis::MuonContainer>
{
public:
ReadMuon (const std::string& name, ISvcLocator* pSvcLocator)
: ReadParticle<Analysis::MuonContainer> (name, pSvcLocator) {}
};
#endif
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READPARTICLE_H
#define ANALYSISTEST_READPARTICLE_H
/*
templated Read Particle
@author Tadashi Maeno
*/
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/NTuple.h"
/////////////////////////////////////////////////////////////////////////////
template <class PARTICLE>
class ReadParticle : public AthAlgorithm
{
public:
ReadParticle (const std::string& name, ISvcLocator* pSvcLocator);
virtual ~ReadParticle () {}
virtual StatusCode initialize();
virtual StatusCode execute();
virtual StatusCode finalize();
protected:
StatusCode accessNtuple();
NTuple::Tuple* m_ntuplePtr;
// Container key
std::string m_ContainerName;
// prefix for Ntuple
std::string m_prefix;
// Ntuple ID
std::string m_NtupleLocID;
// Define variables in the Ntuple:
NTuple::Item<long> m_nParticle;
NTuple::Array<double> m_pt;
};
#include "AnalysisTest/ReadParticle.icc"
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
static const int MAX_nParticle = 128;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class PARTICLE> inline
ReadParticle<PARTICLE>::ReadParticle(const std::string& name, ISvcLocator* pSvcLocator)
: AthAlgorithm(name, pSvcLocator),
m_ntuplePtr(nullptr),
m_ContainerName("")
{
// Declare the properties
declareProperty("NtupleLocID", m_NtupleLocID);
declareProperty("ContainerName",m_ContainerName);
declareProperty("NtuplePrefix", m_prefix);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class PARTICLE> inline
StatusCode ReadParticle<PARTICLE>::initialize()
{
ATH_MSG_DEBUG ( "in initialize()" ) ;
ATH_CHECK( accessNtuple() );
// add items
ATH_CHECK( m_ntuplePtr -> addItem (m_prefix+"/nParticle", m_nParticle, 0, MAX_nParticle) );
ATH_CHECK( m_ntuplePtr -> addItem (m_prefix+"/pt", m_nParticle, m_pt) );
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class PARTICLE> inline
StatusCode ReadParticle<PARTICLE>::execute()
{
ATH_MSG_DEBUG ( "in execute()" ) ;
// Retrieve presistified container
const PARTICLE * pCont = nullptr;
ATH_CHECK( evtStore()->retrieve(pCont,m_ContainerName) );
ATH_MSG_DEBUG ( "Container->size() : " << pCont->size() ) ;
m_nParticle = 0;
// loop over Particles
typename PARTICLE::const_iterator itP = pCont->begin();
typename PARTICLE::const_iterator itPe = pCont->end();
for (; itP != itPe; ++itP)
{
if (m_nParticle >= MAX_nParticle) break;
// fill IParticle attributes
m_pt [m_nParticle] = (*itP)->pt();
ATH_MSG_DEBUG ( MSG::dec
<< "#" << m_nParticle
<< " pt:" << m_pt[m_nParticle] ) ;
++m_nParticle;
}
ATH_MSG_DEBUG ( "execute() completed" ) ;
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class PARTICLE> inline
StatusCode ReadParticle<PARTICLE>::finalize()
{
return StatusCode::SUCCESS;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
template <class PARTICLE> inline
StatusCode ReadParticle<PARTICLE>::accessNtuple()
{
m_NtupleLocID = "/NTUPLES" + m_NtupleLocID ;
//try to access it
NTuplePtr nt(ntupleSvc(), m_NtupleLocID );
if (static_cast<int>(nt))
{
m_ntuplePtr=nt;
ATH_MSG_INFO ( "Ntuple " << m_NtupleLocID
<< " reaccessed! " ) ;
}
else
{
ATH_MSG_FATAL ( "Cannot reaccess " << m_NtupleLocID ) ;
return StatusCode::FAILURE;
}
return StatusCode::SUCCESS;
}
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READPHOTON_H
#define ANALYSISTEST_READPHOTON_H
/*
Read Photon
@author Tadashi Maeno
*/
#include "AnalysisTest/ReadParticle.h"
#include "egammaEvent/PhotonContainer.h"
class ReadPhoton : public ReadParticle<PhotonContainer>
{
public:
ReadPhoton (const std::string& name, ISvcLocator* pSvcLocator)
: ReadParticle<PhotonContainer> (name, pSvcLocator) {}
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READTAUJET_H
#define ANALYSISTEST_READTAUJET_H
/*
Read TauJets
@author Tadashi Maeno
*/
#include "AnalysisTest/ReadParticle.h"
#include "tauEvent/TauJetContainer.h"
class ReadTauJet : public ReadParticle<Analysis::TauJetContainer>
{
public:
ReadTauJet (const std::string& name, ISvcLocator* pSvcLocator)
: ReadParticle<Analysis::TauJetContainer> (name, pSvcLocator) {}
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READTRACKPARTICLE_H
#define ANALYSISTEST_READTRACKPARTICLE_H
/*
Read TrackParticle
@author Tadashi Maeno
*/
#include "GaudiKernel/NTuple.h"
#include "AnalysisTest/ReadConstituent.h"
#include "Particle/TrackParticleContainer.h"
class ReadTrackParticle : public ReadConstituent<Rec::TrackParticleContainer>
{
public:
ReadTrackParticle (const std::string& name, ISvcLocator* pSvcLocator)
: ReadConstituent<Rec::TrackParticleContainer> (name, pSvcLocator) {}
~ReadTrackParticle () {}
private:
StatusCode userInit();
StatusCode userExec(const Rec::TrackParticle *val);
NTuple::Array<double> m_charge;
};
#endif
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READTRIGGER_H
#define ANALYSISTEST_READTRIGGER_H
/*
Read Trigger
@author Tadashi Maeno
*/
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/NTuple.h"
/////////////////////////////////////////////////////////////////////////////
class ReadTrigger : public AthAlgorithm
{
public:
ReadTrigger (const std::string& name, ISvcLocator* pSvcLocator);
~ReadTrigger () {}
StatusCode initialize();
StatusCode execute();
StatusCode finalize();
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READTRUTHPARTICLE_H
#define ANALYSISTEST_READTRUTHPARTICLE_H
/*
Read TruthParticles
@author Tadashi Maeno
*/
#include "AnalysisTest/ReadParticle.h"
#include "McParticleEvent/TruthParticleContainer.h"
class ReadTruthParticle : public ReadParticle<TruthParticleContainer>
{
public:
ReadTruthParticle (const std::string& name, ISvcLocator* pSvcLocator)
: ReadParticle<TruthParticleContainer> (name, pSvcLocator) {}
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READVXCONTAINER_H
#define ANALYSISTEST_READVXCONTAINER_H
/*
Read VxContainer
@author Tadashi Maeno
*/
#include "GaudiKernel/NTuple.h"
#include "AnalysisTest/ReadConstituent.h"
#include "VxVertex/VxContainer.h"
class ReadVxContainer : public ReadConstituent<VxContainer>
{
public:
ReadVxContainer (const std::string& name, ISvcLocator* pSvcLocator)
: ReadConstituent<VxContainer> (name, pSvcLocator) {}
~ReadVxContainer () {}
private:
StatusCode userInit();
StatusCode userExec(const Trk::VxCandidate *val);
NTuple::Array<double> m_chi2;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ANALYSISTEST_READEGAMMA_H
#define ANALYSISTEST_READEGAMMA_H
/*
Read egamma
@author Tadashi Maeno
*/
#include "GaudiKernel/NTuple.h"
#include "AnalysisTest/ReadConstituent.h"
#include "egammaEvent/egammaContainer.h"
class Readegamma : public ReadConstituent<egammaContainer>
{
public:
Readegamma (const std::string& name, ISvcLocator* pSvcLocator)
: ReadConstituent<egammaContainer> (name, pSvcLocator) {}
~Readegamma () {}
private:
StatusCode userInit();
StatusCode userExec(const egamma *val);
NTuple::Array<double> m_e;
};
#endif
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
// WriteINav4MomAssocs.h
// Header file for class WriteINav4MomAssocs
// Author: S.Binet<binet@cern.ch>
///////////////////////////////////////////////////////////////////
#ifndef ANALYSISTEST_WRITEINAV4MOMASSOCS_H
#define ANALYSISTEST_WRITEINAV4MOMASSOCS_H
/** Algorithm to test persistency of INav4MomAssocs class
*/
// STL includes
#include <string>
// FrameWork includes
#include "AthenaBaseComps/AthAlgorithm.h"
#include "AthenaKernel/ClassName.h"
// NqvFourMom includes
#include "NavFourMom/INavigable4MomentumCollection.h"
class WriteINav4MomAssocs : public AthAlgorithm
{
///////////////////////////////////////////////////////////////////
// Public methods:
///////////////////////////////////////////////////////////////////
public:
// Copy constructor:
/// Constructor with parameters:
WriteINav4MomAssocs( const std::string& name, ISvcLocator* pSvcLocator );
/// Destructor:
virtual ~WriteINav4MomAssocs();
// Assignment operator:
//WriteINav4MomAssocs &operator=(const WriteINav4MomAssocs &alg);
// Athena algorithm's Hooks
virtual StatusCode initialize();
virtual StatusCode execute();
virtual StatusCode finalize();
///////////////////////////////////////////////////////////////////
// Const methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
// Non-const methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
// Protected methods:
///////////////////////////////////////////////////////////////////
protected:
template < typename INCOLL, typename OUTCOLL >
StatusCode symLink( const std::string& collName ) const;
StatusCode buildAssocs( const INavigable4MomentumCollection * coll1,
const INavigable4MomentumCollection * coll2 ) const;
///////////////////////////////////////////////////////////////////
// Protected data:
///////////////////////////////////////////////////////////////////
protected:
/// Default constructor:
WriteINav4MomAssocs();
// Containers
/** Input location for ParticleJet container
*/
std::string m_jetsName;
/** Input location for Electron container
*/
std::string m_electronsName;
/** Output location for INav4MomAssocs container
*/
std::string m_inavAssocsOutputName;
};
/// I/O operators
//////////////////////
///////////////////////////////////////////////////////////////////
/// Inline methods:
///////////////////////////////////////////////////////////////////
template < typename INCOLL, typename OUTCOLL >
StatusCode WriteINav4MomAssocs::symLink( const std::string& collName ) const
{
const INCOLL * inColl = 0;
ATH_CHECK ( evtStore()->retrieve( inColl, collName ) );
const OUTCOLL * outColl = 0;
ATH_CHECK ( evtStore()->symLink( inColl, outColl ) );
return StatusCode::SUCCESS;
}
#endif //> ANALYSISTEST_WRITEINAV4MOMASSOCS_H
################################################################################
# Package: AnalysisTest
################################################################################
# Declare the package name:
atlas_subdir( AnalysisTest )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthContainers
Control/StoreGate
Event/NavFourMom
GaudiKernel
PhysicsAnalysis/TruthParticleID/McParticleEvent
Reconstruction/MuonIdentification/muonEvent
Reconstruction/Particle
Reconstruction/egamma/egammaEvent
Reconstruction/tauEvent
Tracking/TrkEvent/VxVertex
PRIVATE
AtlasTest/TestTools
Control/AthenaBaseComps
Control/AthenaKernel
Event/EventKernel
Event/FourMom
Generators/GeneratorObjects
PhysicsAnalysis/AnalysisCommon/AnalysisAssociation
PhysicsAnalysis/AnalysisCommon/AnalysisUtils
PhysicsAnalysis/AnalysisTrigger/AnalysisTriggerEvent
PhysicsAnalysis/TruthParticleID/McParticleUtils
Reconstruction/Jet/JetEvent
Generators/AtlasHepMC )
# External dependencies:
find_package( CLHEP )
find_package( CppUnit )
# Component(s) in the package:
atlas_add_component( AnalysisTest
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${CPPUNIT_INCLUDE_DIRS}
LINK_LIBRARIES AtlasHepMCLib ${CLHEP_LIBRARIES} ${CPPUNIT_LIBRARIES} AthContainers StoreGateLib SGtests NavFourMom GaudiKernel McParticleEvent muonEvent Particle egammaEvent tauEvent VxVertex TestTools AthenaBaseComps AthenaKernel EventKernel FourMom GeneratorObjects AnalysisAssociation AnalysisUtilsLib AnalysisTriggerEvent McParticleUtils JetEvent )
# Install files from the package:
atlas_install_headers( AnalysisTest )
atlas_install_joboptions( share/*.py )
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/**
@page AnalysisTest_page AnalysisTest
@section AnalysisTest_introductionAnalysisTest Introduction
This package contains test algs for AODs
@section AnalysisTest_packagecontentAnalysisTest Package Contents
AnalysisTest contains the following algs/files:
- ReadXYZ : a simple alg to retrieve XYZ-object from TDS
- NavTest : test the back-navigation
- CBNT_BJetGeneral
- CBNT_BJetLifetimeTag
- CBNT_BJetSecVtxTag
- AODTest_topOptions.py : read-test for AOD
- AODTriggerRead_topOptions.py : read-test for Trigger AOD
- AODTriggerWrite_topOptions.py : write-test for Trigger AOD
- EventTagTest_topOptions.py : test for TAG collection
- NavTest_topOptions.py : test for the back-navigation
*/
# read AOD
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
EventSelector = Service( "EventSelector" )
# The AOD input file
EventSelector.InputCollections = [ "AOD.pool.root" ]
#EventSelector.InputCollections = [ "reconstruction.root" ]
# POOL converters
include( "LArAthenaPool/LArAthenaPool_joboptions.py" )
include( "TrkEventAthenaPool/TrkEventAthenaPool_joboptions.py" )
include( "RecAthenaPool/RecAthenaPool_joboptions.py" )
include( "ParticleEventAthenaPool/ParticleEventAthenaPool_joboptions.py" )
# DLLs
theApp.Dlls += [ "CBNT_Athena", "CBNT_Utils" ]
theApp.Dlls += [ "AnalysisTest" ]
# Algs
theApp.TopAlg += [ "CBNT_Athena/CBNT_AOD" ]
CBNT_AOD = Algorithm( "CBNT_AOD" )
CBNT_AOD.members = [
"ReadMuon",
"ReadElectron",
"ReadPhoton",
"ReadBJet",
"ReadParticleJet",
"ReadTauJet",
"ReadTruthParticle",
"ReadTruthParticleJet"
# "ReadTrackParticle"
# "ReadVxContainer"
# "Readegamma"
# "ReadTau"
]
# options for Algs
ReadMuon = Algorithm( "ReadMuon" )
ReadMuon.NtupleLocID = "/FILE1/Muon/100"
ReadMuon.NtuplePrefix = "Muon"
ReadMuon.ContainerName = "MuonCollection"
ReadElectron = Algorithm( "ReadElectron" )
ReadElectron.NtupleLocID = "/FILE1/Electron/101"
ReadElectron.NtuplePrefix = "Electron"
ReadElectron.ContainerName = "ElectronCollection"
ReadPhoton = Algorithm( "ReadPhoton" )
ReadPhoton.NtupleLocID = "/FILE1/Photon/102"
ReadPhoton.NtuplePrefix = "Photon"
ReadPhoton.ContainerName = "PhotonCollection"
ReadBJet = Algorithm( "ReadBJet" )
ReadBJet.NtupleLocID = "/FILE1/BJet/103"
ReadBJet.NtuplePrefix = "BJet"
ReadBJet.ContainerName = "BCandidates"
ReadParticleJet = Algorithm( "ReadParticleJet" )
ReadParticleJet.NtupleLocID = "/FILE1/ParticleJet/104"
ReadParticleJet.NtuplePrefix = "ParticleJet"
ReadParticleJet.ContainerName = "ParticleJetContainer"
ReadTauJet = Algorithm( "ReadTauJet" )
ReadTauJet.NtupleLocID = "/FILE1/TauJet/105"
ReadTauJet.NtuplePrefix = "TauJet"
ReadTauJet.ContainerName = "TauJetCollection"
ReadTruthParticle = Algorithm( "ReadTruthParticle" )
ReadTruthParticle.NtupleLocID = "/FILE1/TruthParticle/106"
ReadTruthParticle.NtuplePrefix = "TruthParticle"
ReadTruthParticle.ContainerName = "SpclMC"
ReadTruthParticleJet = Algorithm( "ReadTruthParticleJet" )
ReadTruthParticleJet.NtupleLocID = "/FILE1/TruthParticleJet/107"
ReadTruthParticleJet.NtuplePrefix = "TruthParticleJet"
ReadTruthParticleJet.ContainerName = "TruthParticleJetContainer"
ReadTrackParticle = Algorithm( "ReadTrackParticle" )
ReadTrackParticle.NtupleLocID = "/FILE1/TrackParticle/108"
ReadTrackParticle.NtuplePrefix = "TrackParticle"
ReadTrackParticle.ContainerName = "TrackParticleCandidate" #"MooreTrackParticles"
ReadTau = Algorithm( "ReadTau" )
ReadTau.NtupleLocID = "/FILE1/tauContainer/109"
ReadTau.NtuplePrefix = "tauContainer"
ReadTau.ContainerName = "MYtauContainer"
ReadVxContainer = Algorithm( "ReadVxContainer" )
ReadVxContainer.NtupleLocID = "/FILE1/Vx/110"
ReadVxContainer.NtuplePrefix = "Vx"
ReadVxContainer.ContainerName = "VxPrimaryCandidate"
Readegamma = Algorithm( "Readegamma" )
Readegamma.NtupleLocID = "/FILE1/egamma/111"
Readegamma.NtuplePrefix = "egamma"
Readegamma.ContainerName = "egammaCollection"
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
# message level for ReadXYZ
#ReadMuon.OutputLevel = DEBUG
#ReadElectron.OutputLevel = DEBUG
# Number of Events to process
theApp.EvtMax = 1000000
# Root Ntuple output
theApp.Dlls += [ "RootHistCnv" ]
theApp.HistogramPersistency = "ROOT"
NTupleSvc = Service( "NTupleSvc" )
NTupleSvc.Output = [ "FILE1 DATAFILE='AODTest.root' OPT='NEW'" ]
HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
HistogramPersistencySvc.OutputFile = "hist.root";
# read AOD
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
EventSelector = Service( "EventSelector" )
# The AOD input file
EventSelector.InputCollections = [ "AOD_Trigger.root" ]
# POOL converters
include( "AnalysisTriggerEventAthenaPool/AnalysisTriggerEventAthenaPool_joboptions.py" )
# DLLs
theApp.Dlls += [ "AnalysisTest" ]
# Algs
theApp.TopAlg += [ "ReadTrigger" ]
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO
# message level for ReadXYZ
ReadTrigger = Algorithm( "ReadTrigger" )
ReadTrigger.OutputLevel = DEBUG
# Number of Events to process
theApp.EvtMax = 1000000
# Root Ntuple output
theApp.Dlls += [ "RootHistCnv" ]
theApp.HistogramPersistency = "ROOT"
NTupleSvc = Service( "NTupleSvc" )
NTupleSvc.Output = [ "FILE1 DATAFILE='AODTest.root' OPT='NEW'" ]
HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
HistogramPersistencySvc.OutputFile = "hist.root";
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