Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SamplesTutorial/SampleHandlerTutorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ void SampleHandlerTutorial::Init() {
MACH3LOG_INFO("-------------------------------------------------------------------");
}

void SampleHandlerTutorial::DebugShift(const double * par, std::size_t iEvent) {
void SampleHandlerTutorial::DebugShift(const M3::float_t* par, std::size_t iEvent) {
// HH: This is a debug function to shift the reco energy to 4 GeV if the reco energy is less than 2 GeV
if (TutorialSamples[iEvent].RecoEnu < 2.0 && *par != 0) {
TutorialSamples[iEvent].RecoEnu_shifted = 4;
}
}

void SampleHandlerTutorial::EResLep(const double * par, std::size_t iEvent) {
void SampleHandlerTutorial::EResLep(const M3::float_t* par, std::size_t iEvent) {
// HH: Lepton energy resolution contribution to reco energy
TutorialSamples[iEvent].RecoEnu_shifted += (*par) * TutorialSamples[iEvent].ELep;
}

void SampleHandlerTutorial::EResTot(const double * par, std::size_t iEvent) {
void SampleHandlerTutorial::EResTot(const M3::float_t* par, std::size_t iEvent) {
// HH: Total energy resolution contribution to reco energy
TutorialSamples[iEvent].RecoEnu_shifted += (*par) * TutorialSamples[iEvent].RecoEnu;
}
Expand Down
6 changes: 3 additions & 3 deletions SamplesTutorial/SampleHandlerTutorial.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class SampleHandlerTutorial : public SampleHandlerFD
void RegisterFunctionalParameters() override;
void ResetShifts(const int iEvent) override;

void DebugShift(const double* par, std::size_t iEvent);
void EResLep(const double* par, std::size_t iEvent);
void EResTot(const double* par, std::size_t iEvent);
void DebugShift(const M3::float_t* par, std::size_t iEvent);
void EResLep(const M3::float_t* par, std::size_t iEvent);
void EResTot(const M3::float_t* par, std::size_t iEvent);
// =================================
};
Loading