![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
50 using namespace asg::msgSelectorCheck;
72 std::unique_ptr< TFile >
ifile( TFile::Open(
fileName,
"READ" ) );
78 Info (
APP_NAME,
"By default looking to Electron" );
83 else Info(
APP_NAME,
"We are looking to Photon-ID" );
98 const Long64_t
e = atoll(
argv[ 2 ] );
138 ANA_MSG_INFO(
"Electron LH Medium accept result: " <<
bool(electronMediumLHSelector->
accept(
el)));
139 ANA_MSG_INFO(
"Electron DNN Medium accept result: " <<
bool(electronMediumDNNSelector->
accept(
el)));
140 ANA_MSG_INFO(
"Electron Cut Medium accept result: " <<
bool(electronMediumIsEMSelector->
accept(
el)));
154 ANA_MSG_INFO(
"HadLeakageOnly mask: " << HadLeakageOnlyMask);
157 ANA_MSG_INFO(
"Medium Without Had Leakage mask: " << MediumWithouHadLeakageMask);
160 bool passALLDecisionisem= (isEMdecision&MediumMask)==0;
161 std::bitset<32> passALLDecisionisemBitSet(isEMdecision&MediumMask);
162 ANA_MSG_INFO(
"Electron check all cuts via isem: "<< passALLDecisionisem <<
" ,bitset " << passALLDecisionisemBitSet);
164 bool checkOnlyHadLeakageisem= (isEMdecision&HadLeakageOnlyMask)==0;
165 std::bitset<32> checkOnlyHadLeakageisemBitSet(isEMdecision&HadLeakageOnlyMask);
166 ANA_MSG_INFO(
"Electron check Only Had Leakage via isem:: "<< checkOnlyHadLeakageisem <<
" ,bitset " << checkOnlyHadLeakageisemBitSet);
168 bool ignoreHadLeakageisem= (isEMdecision&MediumWithouHadLeakageMask)==0;
169 std::bitset<32> ignoreHadLeakageisemBitSet(isEMdecision&MediumWithouHadLeakageMask);
170 ANA_MSG_INFO(
"Electron ignore Had Leakage check all else via isem:: "<< ignoreHadLeakageisem <<
" ,bitset " << ignoreHadLeakageisemBitSet);
199 ANA_MSG_INFO(
"Photon Tight accept result: " <<
bool(photonTightIsEMSelector->
accept(ph)));
std::bitset< NBITS > getCutResultInvertedBitSet() const
Get an inverted bitset of the cut result.
int main(int argc, char *argv[])
ReadStats & stats()
Access the object belonging to the current thread.
@ kClassAccess
Access auxiliary data using the aux containers.
@ ClusterHadronicLeakage_Electron
cluster leakage into the hadronic calorimeter
virtual asg::AcceptData accept(const xAOD::IParticle *part) const =0
accept with pointer to IParticle so as to not hide the IAsgSelectionTool one
::Long64_t getEntries() const
Get how many entries are available from the current input file(s)
::Int_t getEntry(::Long64_t entry, ::Int_t getall=0)
Function loading a given entry of the input TTree.
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.
ANA_MSG_HEADER(msgSTT) ANA_MSG_SOURCE(msgSTT
std::bitset< NBITS > getCutResultBitSet() const
Get the cut result bitset.
A relatively simple transient store for objects created in analysis.
const unsigned int ElectronMediumPP
Medium++ electron selecton.
StatusCode retrieve(const T *&obj, const std::string &key)
Retrieve either an input or an output object from the event.
StatusCode readFrom(::TFile *file, Bool_t useTreeCache=kTRUE, const char *treeName=EVENT_TREE_NAME)
Connect the object to a new input file.
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.