|
ATLAS Offline Software
|
Go to the documentation of this file.
39 using namespace asg::testEgEfficiencyCorrFwd;
50 <<
" Usage: <<APP_NAME << [xAOD file name] [Num of events to use]");
67 std::vector<std::string> id_configFiles{
68 "ElectronEfficiencyCorrection/2012/offline/"
69 "efficiencySF.offline.FwdTight.2012.8TeV.rel17p2.GEO21.v02.root"
73 "AsgElectronEfficiencyCorrectionTool/ElEffCorrectionTool");
75 ElEffCorrectionTool.
setProperty(
"CorrectionFileNameList", id_configFiles));
88 long long int entries =
event.getEntries();
90 const long long int e = atoll(
argv[2]);
99 event.getEntry(
entry);
106 if (
el->pt() < 20000)
108 if (fabs(
el->caloCluster()->eta()) < 2.5)
120 ElEffCorrectionTool, *
el, nominalSF, totalPos, totalNeg, isToys) ==
124 <<
el->pt() <<
" : eta = " <<
el->eta()
125 <<
" : Bin index = " <<
index <<
" : SF = " << nominalSF
126 <<
" + " << 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.
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
ANA_MSG_HEADER(msgSTT) ANA_MSG_SOURCE(msgSTT
StatusCode retrieve(const T *&obj)
int main(int argc, char *argv[])
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.