Diana Software
Public Member Functions | Private Attributes | List of all members
MEnergyFilter Class Reference

Applies an energy threshold depending on the channel. More...

Inheritance diagram for MEnergyFilter:

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
 

Detailed Description

Applies an energy threshold depending on the channel.

Author
Laura Kogler, C. Tomei

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)

Definition at line 54 of file MEnergyFilter.hh.

Member Function Documentation

◆ Done()

void MEnergyFilter::Done ( )

◆ Filter()

bool MEnergyFilter::Filter ( const Diana::QEvent &  ev)

◆ GetCuts()

void MEnergyFilter::GetCuts ( const Diana::QEvent &  ev)

Get cuts from config file.

Definition at line 24 of file MEnergyFilter.cc.

Member Data Documentation

◆ fBlackList

std::set<int> MEnergyFilter::fBlackList
private

Definition at line 86 of file MEnergyFilter.hh.

◆ fChannelList

std::set<int> MEnergyFilter::fChannelList
private

Definition at line 87 of file MEnergyFilter.hh.

◆ fDataset

int MEnergyFilter::fDataset
private

Dataset number.

Definition at line 67 of file MEnergyFilter.hh.

◆ fEnergyLabel

Diana::QEventLabel MEnergyFilter::fEnergyLabel
private

Definition at line 84 of file MEnergyFilter.hh.

◆ fEnergyMax

double MEnergyFilter::fEnergyMax
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.

◆ fEnergyMin

double MEnergyFilter::fEnergyMin
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.

◆ fEnergyRange

Diana::QInterval MEnergyFilter::fEnergyRange
private

Definition at line 85 of file MEnergyFilter.hh.

◆ fHandles

std::set<QEnergyRangesHandle*> MEnergyFilter::fHandles
private

Definition at line 91 of file MEnergyFilter.hh.

◆ fMissingChannels

std::set<int> MEnergyFilter::fMissingChannels
private

Set of channels missing from ranges file.

Definition at line 70 of file MEnergyFilter.hh.

◆ fRangesInput

std::string MEnergyFilter::fRangesInput
private

Input for energy ranges (file or DB, for the moment only file works)

Definition at line 73 of file MEnergyFilter.hh.

◆ fRangesName

std::string MEnergyFilter::fRangesName
private

Definition at line 89 of file MEnergyFilter.hh.

◆ fRangesOutput

std::string MEnergyFilter::fRangesOutput
private

Output for energy ranges (file or DB, for the moment only file works)

Definition at line 76 of file MEnergyFilter.hh.

◆ fRangesOwner

std::string MEnergyFilter::fRangesOwner
private

Definition at line 90 of file MEnergyFilter.hh.

◆ fRunData

QRunData MEnergyFilter::fRunData
private

Definition at line 88 of file MEnergyFilter.hh.


The documentation for this class was generated from the following files: