Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Test code to compare output of ElectronPhotonVariableCorrectionBase correction to the isolation correction tool.
- Author
- Nils Gillwald (DESY) nils..nosp@m.gill.nosp@m.wald@.nosp@m.desy.nosp@m..de
- Date
- February 2020
Definition at line 35 of file testIsoCorrection.cxx.
37 using namespace asg::msgUserCode;
44 ANA_MSG_ERROR(
" Usage: %s [xAOD file name] %d Num of events to process %d (0 photons , 1 electrons)");
60 ANA_MSG_INFO(
"Number of events in the file: " << pers.getEntries());
63 Long64_t
entries = pers.getEntries();
66 const Long64_t userInputEntries = atoll(
argv[2]);
75 ANA_CHECK(fudgeTool.setProperty(
"ConfigFile",
"EGammaVariableCorrection/ElectronPhotonVariableCorrectionBase_ExampleIsoCorrectionConf.conf"));
81 ANA_CHECK(isoCorrToolFull.setProperty(
"Apply_etaEDPar_mc_correction",
true));
82 ANA_CHECK(isoCorrToolFull.setProperty(
"Apply_etaEDParPU_correction",
true));
86 ANA_CHECK(isoCorrToolStep.setProperty(
"Apply_etaEDPar_mc_correction",
false));
87 ANA_CHECK(isoCorrToolStep.setProperty(
"Apply_etaEDParPU_correction",
true));
103 ANA_CHECK(pers.retrieve(photons,
"Photons"));
112 ANA_CHECK(isoCorrToolFull.applyCorrection(*(photons_isocorr.first->at(
idx))));
113 ANA_CHECK(isoCorrToolStep.applyCorrection(*(photons_fudge.first->at(
idx))));
114 ANA_CHECK(fudgeTool.applyCorrection(*(photons_fudge.first->at(
idx))));
115 ANA_MSG_INFO(
"topoetcone40 fudge before applyCorrection: " << topoEtCone40OriginalAcc(*photons_fudge.first->at(
idx)));
116 ANA_MSG_INFO(
"topoetcone40 fudge after applyCorrection : " << topoEtCone40Acc(*photons_fudge.first->at(
idx)));
117 ANA_MSG_INFO(
"topoetcone40 with IsolationCorrectionTool : " << topoEtCone40Acc(*photons_isocorr.first->at(
idx)));
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.