|
ATLAS Offline Software
|
Go to the documentation of this file.
34 #define CHECK( ARG ) \
36 const bool result = ARG; \
38 ::Error( APP_NAME, "Failed to execute: \"%s\"", \
63 std::unique_ptr< TFile >
ifile( TFile::Open(
fileName,
"READ" ) );
70 Info(
APP_NAME,
"Number of events in the file: %i",
75 Long64_t
entries =
event.getEntries();
77 const Long64_t
e = atoll(
argv[ 2 ] );
86 CHECK( m_isoCorrTool.setProperty(
"IsMC",
true) );
89 CHECK(m_isoCorrTool.setProperty(
"CorrFile",file_unc));
92 std::cout <<
"Failed to initialize the tool, check for errors"<<std::endl;
98 std::cout <<
"loop on " <<
entries <<
" entries"<<std::endl;
102 event.getEntry(
entry );
122 for( ; ph_itr != ph_end; ++ph_itr, ++
i ) {
126 if(ph->
pt()<10000.0)
continue;
127 if( fabs(ph->
eta())>2.47)
continue;
129 Info (
APP_NAME,
"xAOD/raw pt = %f, eta = %f ", ph->
pt(), ph->
eta() );
133 Info (
APP_NAME,
"after the Iso correction ");
139 CHECK(m_isoCorrTool.finalize());
@ kClassAccess
Access auxiliary data using the aux containers.
int main(int argc, char *argv[])
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
(Non-const) Iterator class for DataVector/DataList.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
Class describing the basic event information.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
StatusCode retrieve(const T *&obj)
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Error
The different types of error that can be flagged in the L1TopoRDO.
Tool for accessing xAOD files outside of Athena.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.