6#ifndef XAODJET_TEST_JETFACTORY_H
7#define XAODJET_TEST_JETFACTORY_H
17#ifndef XAOD_STANDALONE
19#include "AthLinks/ElementLink.h"
36#ifndef XAOD_STANDALONE
38# ifdef SGTOOLS_CURRENTEVENTSTORE_H
48 gErrorIgnoreLevel = kWarning;
56 assert( transDataStore != 0 );
70 jetCont->setStore(
aux);
71 record(jetCont,
name);
89 const std::map<std::string, std::vector<float>> jetAttMap
96 for(
const auto& attpair : jetAttMap) {
jet->setAttribute<
float>(attpair.first, attpair.second[i]);}
105 static const std::vector<xAOD::JetFourMom_t> jet4moms =
130 std::map< std::string, std::vector<float> > jetAttMap =
131 { {
"Width", std::vector<float>(jet4moms.size(), 0.123 )} };
132 fillJets(jetCont, jet4moms, jetAttMap);
147 clustCont->setStore(
aux);
148 record(clustCont,
name);
156 for(
int i=0; i<10; i++){
160#define SETCLUSTERMOM( E, eta, phi ) cl->setE(E);cl->setEta(eta);cl->setPhi(phi);cl->setM(0)
161#define SETCLUSTERRAWMOM( E, eta, phi ) cl->setRawE(E);cl->setRawEta(eta);cl->setRawPhi(phi);cl->setRawM(0)
#define SETCLUSTERRAWMOM(E, eta, phi)
#define SETCLUSTERMOM(E, eta, phi)
Dummy event store, for regression tests.
const T * back() const
Access the last element in the collection as an rvalue.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
static TStore * store()
Access the currently active TStore object.
Tool for accessing xAOD files outside of Athena.
@ kClassAccess
Access auxiliary data using the aux containers.
A relatively simple transient store for objects created in analysis.
StatusCode record(T *obj, const std::string &key)
Add an object to the store.
getDataSourcePointerFunc_t * getDataSourcePointerFunc
void fillJets(JetContainer &jetCont, const std::vector< xAOD::JetFourMom_t > &jet4moms)
Fill input JetContainer with new jets which 4-momentum are given by jet4moms.
void fillStandardTestJets(JetContainer &jetCont)
Fill input JetContainer with a list of test jets.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Jet_v1 Jet
Definition of the current "jet version".
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
JetAuxContainer_v1 JetAuxContainer
Definition of the current jet auxiliary container.
@ JetConstitScaleMomentum
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
void ClearTransientTrees ATLAS_NOT_THREAD_SAFE()
Function cleaning up the managed memory.
CaloClusterAuxContainer_v2 CaloClusterAuxContainer
Define the latest version of the calorimeter cluster auxiliary container.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.