![]() |
Diana Software
|
Applies an energy threshold depending on the channel. More...
Public Member Functions | |
| void | GetCuts (const Diana::QEvent &ev) |
| Get cuts from config file. More... | |
| bool | Filter (const Diana::QEvent &ev) |
| return true if ev passes the cuts More... | |
| void | Done () |
Private Attributes | |
| int | fDataset |
| Dataset number. More... | |
| std::set< int > | fMissingChannels |
| Set of channels missing from ranges file. More... | |
| std::string | fRangesInput |
| Input for energy ranges (file or DB, for the moment only file works) More... | |
| std::string | fRangesOutput |
| Output for energy ranges (file or DB, for the moment only file works) More... | |
| double | fEnergyMin |
| cfg defined minimum energy, to be applied to channels for which no energy range is defined More... | |
| double | fEnergyMax |
| cfg defined maximum energy, to be applied to channels for which no energy range is defined More... | |
| Diana::QEventLabel | fEnergyLabel |
| Diana::QInterval | fEnergyRange |
| std::set< int > | fBlackList |
| std::set< int > | fChannelList |
| QRunData | fRunData |
| std::string | fRangesName |
| std::string | fRangesOwner |
| std::set< QEnergyRangesHandle * > | fHandles |
Applies an energy threshold depending on the channel.
The energy ranges are read through GlobalData in the form of a QInterval If no maximum is specified, no upper limit will be applied. If no range is defined in the file (or DB) for one or more channels the range defined in the cfg is applied (same for all channels non listed in the file or DB)
filter EnergyFilter
verbosity = info
enable = true
EnergyRangesInput = EnergyRanges.txt
EnergyRangesOutput = EnergyRanges_ds${DATASET}.txt
EnergyMin = 50
EnergyMax = 5000
endmod
Definition at line 54 of file MEnergyFilter.hh.
| void MEnergyFilter::Done | ( | ) |
Definition at line 143 of file MEnergyFilter.cc.
References err, QModuleConfig::fVersionTag, QEnergyRangesHandle::GetCalibLabel(), QEventLabel::GetOwner(), QERR_SUCCESS, and QEnergyRangesHandle::SetCalibVersion().
| bool MEnergyFilter::Filter | ( | const Diana::QEvent & | ev | ) |
return true if ev passes the cuts
Definition at line 48 of file MEnergyFilter.cc.
References channel, QPulseInfo::GetChannelId(), QHeader::GetRun(), rHandle, QEnergyRangesHandle::SetCalibLabel(), and QEnergyRangesHandle::SetCalibVersion().
| void MEnergyFilter::GetCuts | ( | const Diana::QEvent & | ev | ) |
Get cuts from config file.
Definition at line 24 of file MEnergyFilter.cc.
|
private |
Definition at line 86 of file MEnergyFilter.hh.
|
private |
Definition at line 87 of file MEnergyFilter.hh.
|
private |
Dataset number.
Definition at line 67 of file MEnergyFilter.hh.
|
private |
Definition at line 84 of file MEnergyFilter.hh.
|
private |
cfg defined maximum energy, to be applied to channels for which no energy range is defined
Definition at line 82 of file MEnergyFilter.hh.
|
private |
cfg defined minimum energy, to be applied to channels for which no energy range is defined
Definition at line 79 of file MEnergyFilter.hh.
|
private |
Definition at line 85 of file MEnergyFilter.hh.
|
private |
Definition at line 91 of file MEnergyFilter.hh.
|
private |
Set of channels missing from ranges file.
Definition at line 70 of file MEnergyFilter.hh.
|
private |
Input for energy ranges (file or DB, for the moment only file works)
Definition at line 73 of file MEnergyFilter.hh.
|
private |
Definition at line 89 of file MEnergyFilter.hh.
|
private |
Output for energy ranges (file or DB, for the moment only file works)
Definition at line 76 of file MEnergyFilter.hh.
|
private |
Definition at line 90 of file MEnergyFilter.hh.
|
private |
Definition at line 88 of file MEnergyFilter.hh.