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 testEgEfficiencyCorr.cxx.
40 using namespace asg::testEgEfficiencyCorr;
51 <<
" Usage: <<APP_NAME << [xAOD file name] [Num of events to use]");
70 "AsgElectronEfficiencyCorrectionTool/ElEffCorrectionTool");
71 ANA_CHECK(ElEffCorrectionTool.setProperty(
"IdKey",
"Medium"));
72 ANA_CHECK(ElEffCorrectionTool.setProperty(
"ForceDataType", 1));
73 ANA_CHECK(ElEffCorrectionTool.setProperty(
"OutputLevel", mylevel));
74 ANA_CHECK(ElEffCorrectionTool.setProperty(
"CorrelationModel",
"FULL"));
75 ANA_CHECK(ElEffCorrectionTool.setProperty(
"UseRandomRunNumber",
false));
76 ANA_CHECK(ElEffCorrectionTool.initialize());
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) {
113 int index = ElEffCorrectionTool->systUncorrVariationIndex(*
el);
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)