|
ATLAS Offline Software
|
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ CHECK
Value: do { \
MSG_ERROR("FAILED to execute" <<#ARG); \
return EXIT_FAILURE; \
} \
} while( false )
Definition at line 53 of file testEGChargeIDSelector.cxx.
◆ DUMMY_MSG
◆ MSG_ABORT
#define MSG_ABORT |
( |
|
ARG | ) |
{DUMMY_MSG(MSG::FATAL, ARG); std::abort();} |
◆ MSG_DEBUG
◆ MSG_ERROR
#define MSG_ERROR |
( |
|
ARG | ) |
{DUMMY_MSG(MSG::ERROR, ARG);} |
◆ MSG_FATAL
#define MSG_FATAL |
( |
|
ARG | ) |
{DUMMY_MSG(MSG::FATAL, ARG);} |
◆ MSG_INFO
#define MSG_INFO |
( |
|
ARG | ) |
{DUMMY_MSG(MSG::INFO, ARG);} |
◆ MSG_WARNING
#define MSG_WARNING |
( |
|
ARG | ) |
{DUMMY_MSG(MSG::WARNING, ARG);} |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 63 of file testEGChargeIDSelector.cxx.
69 dummymsg.msg().setLevel(mylevel);
74 MSG_ERROR(
" Usage: %s [xAOD file name]");
84 std::unique_ptr< TFile >
ifile( TFile::Open(
fileName,
"READ" ) );
108 MSG_INFO(
"Number of events in the file: "<< pers.getEntries());
111 Long64_t
entries = pers.getEntries();
113 const Long64_t
e = atoll(
argv[ 2 ] );
122 std::unique_ptr<AsgElectronChargeIDSelectorTool> m_electronECIDS = std::make_unique<AsgElectronChargeIDSelectorTool> (
"tightECIDS");
123 std::string trainingfile = std::string(
std::getenv(
"ROOTCOREBIN")) +
"/data/ElectronPhotonSelectorTools/ECIDS_20161125for2017Moriond.root";
124 CHECK(m_electronECIDS->setProperty(
"TrainingFile", trainingfile));
125 CHECK(m_electronECIDS->setProperty(
"CutOnBDT", 0));
126 m_electronECIDS->
msg().setLevel(mylevel);
130 std::unique_ptr<AsgElectronLikelihoodTool> m_TightLH = std::make_unique<AsgElectronLikelihoodTool> (
"TightLH");
131 CHECK(m_TightLH->setProperty(
"WorkingPoint",
"TightLHElectron"));
132 m_TightLH->
msg().setLevel(mylevel);
139 pers.getEntry(
entry );
140 MSG_INFO(
"============================");
148 MSG_INFO(
"---------------------------");
152 MSG_INFO(
"Electron Cut ECIDS accept result: " <<m_electronECIDS->
accept(
el));
153 MSG_INFO(
"Electron stored Tight: " <<
el->passSelection(
"Tight") );
161 std::unique_ptr<AsgPhotonIsEMSelector> m_photonTightIsEMSelector = std::make_unique<AsgPhotonIsEMSelector> (
"photonTightIsEMSelector");
162 CHECK(m_photonTightIsEMSelector->setProperty(
"WorkingPoint",
"TightPhoton"));
163 m_photonTightIsEMSelector->
msg().setLevel(mylevel);
170 pers.getEntry(
entry );
171 MSG_INFO(
"============================");
175 CHECK(pers.retrieve(photons,
"Photons"));
179 MSG_INFO(
"---------------------------");
181 MSG_INFO(
"Photon Tight accept result: " <<m_photonTightIsEMSelector->
accept(ph));
virtual StatusCode initialize()
AlgTool initialize method.
ReadStats & stats()
Access the object belonging to the current thread.
@ kAthenaAccess
Access containers/objects like Athena does.
virtual asg::AcceptData accept(const xAOD::IParticle *part) const
Accept with generic interface.
const uint16_t AuthorCaloTopo35
Photon reconstructed by SW CaloTopo35 seeded clusters.
bool isElectron(const xAOD::Egamma *eg)
is the object an electron (not Fwd)
static IOStats & instance()
Singleton object accessor.
void printSmartSlimmingBranchList(bool autoIncludeLinks=false) const
Print the accessed variables, formatted for smart slimming.
A relatively simple transient store for objects created in analysis.
std::string getenv(const std::string &variableName)
get an environment variable
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.