|
ATLAS Offline Software
|
Go to the documentation of this file.
46 if(
env.ReadFile(
conf, kEnvAll) != 0){
48 return StatusCode::FAILURE;
51 MuonIso =
env.GetValue(
"MuonIso",
"PflowTight_FixedRad");
64 return StatusCode::SUCCESS;
87 std::unique_ptr< TFile >
ifile( TFile::Open(
fileName,
"READ" ) );
88 if( !
ifile.get() )
return EXIT_FAILURE;
102 Long64_t
entries =
event.getEntries();
104 const Long64_t
e = atoll(
argv[ 3 ] );
109 #ifdef XAOD_STANDALONE
110 StatusCode::enableFailure();
113 ANA_MSG_INFO(
"Initialize the standard instance of the tool");
122 ANA_MSG_INFO(
"Initialize the low-Pt augmentation (PLV-only)");
127 std::string m_sgKeyPhotons(
"Photons");
128 std::string m_sgKeyElectrons(
"Electrons");
129 std::string m_sgKeyMuons(
"Muons");
134 event.getEntry(
entry );
140 for (
auto ph : *photons) {
141 if (ph->caloCluster() ==
nullptr)
continue;
142 if (ph->pt() <
PhotonPt || std::abs(ph->caloCluster()->eta()) >
PhotonEta)
continue;
144 if (IsoSelectionTool.
accept( *ph ))
145 ANA_MSG_INFO(Form(
" --> Photon (pt=%.1f, eta=%.3f, phi=%.3f) PASSES Isolation %s",ph->pt(),ph->eta(),ph->phi(),
PhotonIso.c_str()));
147 ANA_MSG_INFO(Form(
" --> Photon (pt=%.1f, eta=%.3f, phi=%.3f) FAILS Isolation %s",ph->pt(),ph->eta(),ph->phi(),
PhotonIso.c_str()));
156 if (
el->caloCluster() ==
nullptr)
continue;
171 for (
auto mu : *muons) {
176 ANA_MSG_INFO(Form(
" --> Muon (pt=%.1f, eta=%.3f, phi=%.3f) PASSES Isolation %s",
mu->pt(),
mu->eta(),
mu->phi(),
MuonIso.c_str()));
178 ANA_MSG_INFO(Form(
" --> Muon (pt=%.1f, eta=%.3f, phi=%.3f) FAILS Isolation %s",
mu->pt(),
mu->eta(),
mu->phi(),
MuonIso.c_str()));
@ kClassAccess
Access auxiliary data using the aux containers.
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
A relatively simple transient store for objects created in analysis.
def time(flags, cells_name, *args, **kw)
StatusCode retrieve(const T *&obj)
size_type size() const noexcept
Returns the number of elements in the collection.
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.