|
ATLAS Offline Software
|
Go to the documentation of this file.
40 using namespace asg::testEgEfficiencyCorr;
51 <<
" Usage: <<APP_NAME << [xAOD file name] [Num of events to use]");
70 "AsgElectronEfficiencyCorrectionTool/ElEffCorrectionTool");
84 long long int entries =
event.getEntries();
86 const long long int e = atoll(
argv[2]);
95 event.getEntry(
entry);
104 ANA_MSG_ERROR(
"ERROR no cluster associated to the Electron \n");
109 if (std::abs(cluster->
etaBE(2)) >= 2.47) {
123 ElEffCorrectionTool, *
el, nominalSF, totalPos, totalNeg, isToys) ==
127 <<
el->pt() <<
" : eta = " <<
el->eta()
128 <<
" : Bin index = " <<
index <<
" : SF = " << nominalSF
129 <<
" + " << totalPos <<
" - " << totalNeg <<
" <===");
int result(asg::StandaloneToolHandle< IAsgElectronEfficiencyCorrectionTool > &tool, const xAOD::Electron &el, double &nominalSF, double &totalPos, double &totalNeg, const bool isToys)
static void enableDataSubmission(::Bool_t value)
Function for turning data submission on/off.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
@ Error
Some error happened during the object correction.
Description of a calorimeter cluster.
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
int main(int argc, char *argv[])
ANA_MSG_HEADER(msgSTT) ANA_MSG_SOURCE(msgSTT
StatusCode retrieve(const T *&obj)
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.