Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ CHECK
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 53 of file FsrPhotonToolTester.cxx.
68 StatusCode::enableFailure();
87 Long64_t
entries =
event.getEntries();
89 const Long64_t
e = atoll(
argv[2]);
98 std::string esModel =
"es2017_R21_v1";
99 CHECK( energyRescaler->setProperty(
"ESModel", esModel) );
101 ToolHandle<CP::IEgammaCalibrationAndSmearingTool> energyRescalerTool(energyRescaler->name());
105 CHECK( fsrTool.setProperty<
double>(
"far_fsr_drcut", 0.12) );
107 CHECK( fsrTool.setProperty(
"egCalibToolName", energyRescaler->name()) );
108 CHECK( fsrTool.initialize() );
119 event.getEntry(
entry);
140 std::pair< xAOD::ElectronContainer*, xAOD::ShallowAuxContainer* > electrons_shallowCopy =
145 CHECK(
store->
record( electrons_shallowCopy.second,
"ElectronsCorrAux." ) );
151 Error(
APP_NAME,
"Unable to setOriginalObjectLink for electron containers ");
159 std::pair< xAOD::PhotonContainer*, xAOD::ShallowAuxContainer* > photons_shallowCopy =
168 Error(
APP_NAME,
"Unable to setOriginalObjectLink for photon containers ");
174 double tmp_energy = -999.;
175 double fsr_energy = 0.;
176 TLorentzVector fsr_tlv;
179 for(
auto muon : *muons ) {
184 Info(
APP_NAME,
" container = %s deltaR = %f Et = %f f1 = %f"
185 " eta = %f phi = %f phIso = %f fsrtype = %i",
188 candidate.
eta, candidate.
phi,
196 else if (candidate.
container ==
"electron" ) {
202 if ( fsr_energy > tmp_energy ) {
203 tmp_energy = fsr_energy;
204 fsr_tlv.SetPtEtaPhiE(candidate.
Et, candidate.
eta, candidate.
phi, fsr_energy);
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.