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");
120 ANA_CHECK( IsoSelectionTool.initialize() );
122 ANA_MSG_INFO(
"Initialize the low-Pt augmentation (PLV-only)");
125 ANA_CHECK( IsoSelectionTool_lowPt.initialize() );
127 std::string m_sgKeyPhotons(
"Photons");
128 std::string m_sgKeyElectrons(
"Electrons");
129 std::string m_sgKeyMuons(
"Muons");
134 event.getEntry(
entry );
138 ANA_MSG_INFO(
" Number of pre-selected photons: " << (
int)photons->size());
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;
160 if (IsoSelectionTool.accept( *
el ))
169 ANA_MSG_INFO(
" Number of pre-selected muons: " << (
int)muons->size());
171 for (
auto mu : *muons) {
173 if(
MuonIso.find(
"PLV") != std::string::npos)
ANA_CHECK( IsoSelectionTool_lowPt.augmentPLV(*
mu) );
175 if (IsoSelectionTool.accept( *
mu ))
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()));