Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 33 of file testEgEfficiencyCorrFwd.cxx.
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));
76 ANA_CHECK(ElEffCorrectionTool.setProperty(
"ForceDataType", 1));
77 ANA_CHECK(ElEffCorrectionTool.setProperty(
"OutputLevel", mylevel));
78 ANA_CHECK(ElEffCorrectionTool.setProperty(
"CorrelationModel",
"FULL"));
79 ANA_CHECK(ElEffCorrectionTool.setProperty(
"UseRandomRunNumber",
false));
80 ANA_CHECK(ElEffCorrectionTool.initialize());
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)
110 int index = ElEffCorrectionTool->systUncorrVariationIndex(*
el);
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)