Skip to content

Commit

Permalink
Merge pull request #3 from e4nu/origin/Develop/RefactorizedCode
Browse files Browse the repository at this point in the history
adding back acceptance correction
  • Loading branch information
jtenavidal authored Apr 27, 2023
2 parents 11ae6aa + 2ebe577 commit b74f3c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/analysis/BackgroundI.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ namespace e4nu {
// We need to correct for signal events that are reconstructed outside of the fiducial
if( !ApplyFiducial() ) return true ;
if( !GetSubtractBkg() ) return true ;

Fiducial * fiducial = GetFiducialCut() ;
if( !fiducial ) return false ;
std::cout << " Applying Acceptance Correction to hadrons ... " << std::endl;

unsigned int min_mult = GetMinBkgMult(); // Signal multiplicity
std::map<int,unsigned int> Topology = GetTopology();
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/E4NuAnalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void E4NuAnalysis::ClassifyEvent( EventI * event ) {
bool E4NuAnalysis::SubtractBackground() {

if( ! BackgroundI::BackgroundSubstraction( kAnalysedEventHolder ) ) return false ;
// if( ! BackgroundI::AcceptanceCorrection( kAnalysedEventHolder ) ) return false ;
if( ! BackgroundI::AcceptanceCorrection( kAnalysedEventHolder ) ) return false ;

return true ;
}
Expand Down

0 comments on commit b74f3c1

Please sign in to comment.