1 #ifndef _M_ENERGYFILTER_HH_
2 #define _M_ENERGYFILTER_HH_
58 void GetCuts(
const Diana::QEvent& ev);
61 bool Filter(
const Diana::QEvent& ev);
Applies an energy threshold depending on the channel.
std::set< QEnergyRangesHandle * > fHandles
std::string fRangesInput
Input for energy ranges (file or DB, for the moment only file works)
Diana::QInterval fEnergyRange
std::string fRangesOutput
Output for energy ranges (file or DB, for the moment only file works)
std::set< int > fMissingChannels
Set of channels missing from ranges file.
std::set< int > fBlackList
void GetCuts(const Diana::QEvent &ev)
Get cuts from config file.
double fEnergyMin
cfg defined minimum energy, to be applied to channels for which no energy range is defined
bool Filter(const Diana::QEvent &ev)
return true if ev passes the cuts
std::set< int > fChannelList
int fDataset
Dataset number.
double fEnergyMax
cfg defined maximum energy, to be applied to channels for which no energy range is defined
Diana::QEventLabel fEnergyLabel
global handle for EnergyRanges