cut/source/MainCut.cpp
A simple Cut based analysis
#pragma once
// Include the cut analysis base class
#include "boca/analysis/Cut.hh"
namespace cut
{
// The analysis inherits from the boca cut analysis base class
{
public:
// Set files for signal and background
// it is assumed that all files are in the same folder
{
// add a signal file by passing its file and process name
break;
// add a background file by passing its file and process name
break;
}
}
// define how many events are supposed to beeing used
{
return 1000;
}
// define the analysis name
{
return "CutAnalysis";
}
// Define the cuts
// The event class contains all relevant physical objects
auto jets = event.Jets();
// this cut is obviously not enough
if (jets.size() < 2) return false;
return true;
}
};
}
The analysis class is called like this
// Include the cut based analysis
#include "cut/Analysis.hh"
// Create an object of the cut based analysis
cut::Analysis analysis;
// Run the analysis and create efficiency plots
}