|
ATLAS Offline Software
|
Go to the documentation of this file.
37 using namespace asg::msgUserCode;
46 ANA_MSG_ERROR(
" Usage: %s [xAOD file name] %d Num of events to process %d (0 photons , 1 electrons)");
68 const Long64_t userInputEntries = atoll(
argv[2]);
78 std::string
configFile =
"EGammaVariableCorrection/EGammaVariableCorrectionTool_ExampleConf.conf";
98 auto photons_copy = std::make_unique<xAOD::PhotonContainer>();
99 auto photons_copy_aux = std::make_unique<xAOD::AuxContainerBase>();
100 photons_copy->setStore (photons_copy_aux.get());
103 for (
auto photon : *photons) {
106 photons_copy->push_back (photon_copy);
112 for (
unsigned int photon_itr = 0; photon_itr < photons_copy->size(); photon_itr++)
131 auto electrons_copy = std::make_unique<xAOD::ElectronContainer>();
132 auto electrons_copy_aux = std::make_unique<xAOD::AuxContainerBase>();
133 electrons_copy->setStore (electrons_copy_aux.get());
139 electrons_copy->push_back (electron_copy);
145 for (
unsigned int electron_itr = 0; electron_itr < electrons_copy->size(); electron_itr++)
Electron_v1 Electron
Definition of the current "egamma version".
@ kClassAccess
Access auxiliary data using the aux containers.
::Long64_t getEntries() const
Get how many entries are available from the current input file(s)
::Int_t getEntry(::Long64_t entry, ::Int_t getall=0)
Function loading a given entry of the input TTree.
Photon_v1 Photon
Definition of the current "egamma version".
A relatively simple transient store for objects created in analysis.
StatusCode retrieve(const T *&obj, const std::string &key)
Retrieve either an input or an output object from the event.
StatusCode readFrom(::TFile *file, Bool_t useTreeCache=kTRUE, const char *treeName=EVENT_TREE_NAME)
Connect the object to a new input file.
Tool for accessing xAOD files outside of Athena.