|
ATLAS Offline Software
|
Go to the documentation of this file.
25 #define CHECK( ARG ) \
27 const bool result = ARG; \
29 ::Error( APP_NAME, "Failed to execute: \"%s\"", \
52 std::unique_ptr< TFile >
ifile( TFile::Open(
fileName,
"READ" ) );
58 Info(
APP_NAME,
"Number of events in the file: %i",
62 Long64_t
entries =
event.getEntries();
64 const Long64_t
e = atoll(
argv[ 2 ] );
77 event.getEntry(
entry );
79 std::cout <<
"=================NEXT EVENT==========================" << std::endl;
89 for (; el_it != el_it_last; ++el_it, ++
i) {
91 std::cout <<
"Electron " <<
el <<
" Num " <<
i << std::endl;
92 std::cout <<
"xAOD pt = " << (*el_it)->pt() << std::endl;
94 std::pair<MCTruthPartClassifier::ParticleType,MCTruthPartClassifier::ParticleOrigin>
99 Info (
APP_NAME,
"Electron Type from Reco returns %d ", tT(**el_it) );
101 Info (
APP_NAME,
"Electron Type from Analysis Base returns %d ", classification.first );
104 Info (
APP_NAME,
"Electron Origin from Reco returns %d ", tO(**el_it) );
106 Info (
APP_NAME,
"Electron Origin from Analysis Base returns %d ", classification.second );
108 Info(
APP_NAME,
"===>>> done processing event #%lld ",
entry);
int main(int argc, char *argv[])
Const iterator class for DataVector/DataList.
Helper class to provide type-safe access to aux data.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
StatusCode retrieve(const T *&obj)
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Error
The different types of error that can be flagged in the L1TopoRDO.
virtual std::pair< MCTruthPartClassifier::ParticleType, MCTruthPartClassifier::ParticleOrigin > particleTruthClassifier(const xAOD::TruthParticle *, MCTruthPartClassifier::Info *info=nullptr) const override final
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.