Belle II Software development
MCSymmetric< AFilter > Class Template Reference

Mixin for filters that use Monte Carlo information. More...

#include <MCSymmetricFilter.dcl.h>

Inheritance diagram for MCSymmetric< AFilter >:

Public Member Functions

 MCSymmetric (bool allowReverse=true)
 Constructor.
 
 ~MCSymmetric ()
 Default destructor.
 
void exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override
 Expose the set of parameters of the filter to the module parameter list.
 
void initialize () override
 Initialize the before event processing.
 
void beginEvent () override
 Signal the beginning of a new event.
 
bool needsTruthInformation () final
 Indicates that the filter requires Monte Carlo information.
 
virtual void setAllowReverse (bool allowReverse)
 Setter for the allow reverse parameter.
 
bool getAllowReverse () const
 Getter for the allow reverse parameter.
 

Private Types

using Super = AFilter
 Type of the super class.
 

Private Attributes

bool m_param_allowReverse
 Switch to indicate if the reversed version of the object shall also be accepted (default is true).
 

Detailed Description

template<class AFilter>
class Belle2::TrackFindingCDC::MCSymmetric< AFilter >

Mixin for filters that use Monte Carlo information.

Definition at line 23 of file MCSymmetricFilter.dcl.h.

Member Typedef Documentation

◆ Super

using Super = AFilter
private

Type of the super class.

Definition at line 27 of file MCSymmetricFilter.dcl.h.

Constructor & Destructor Documentation

◆ MCSymmetric()

MCSymmetric ( bool  allowReverse = true)
explicit

Constructor.

Definition at line 28 of file MCSymmetricFilter.icc.h.

29 : Super()
30 , m_param_allowReverse(allowReverse)
31 {
32 }
AFilter Super
Type of the super class.
bool m_param_allowReverse
Switch to indicate if the reversed version of the object shall also be accepted (default is true).

Member Function Documentation

◆ beginEvent()

void beginEvent
override

Signal the beginning of a new event.

Definition at line 56 of file MCSymmetricFilter.icc.h.

57 {
59 Super::beginEvent();
60 }
void fill()
Fill Monte Carlo look up maps from the DataStore.
static CDCMCManager & getInstance()
Getter for the singletone instance.
Definition: CDCMCManager.cc:74

◆ exposeParameters()

void exposeParameters ( ModuleParamList moduleParamList,
const std::string &  prefix 
)
override

Expose the set of parameters of the filter to the module parameter list.

Definition at line 38 of file MCSymmetricFilter.icc.h.

39 {
40 Super::exposeParameters(moduleParamList, prefix);
41 moduleParamList->addParameter(prefixed(prefix, "allowReverse"),
43 "Indication whether the reverse to the truth is accepted"
44 "preserving the progagation reversal symmetry.",
46 }

◆ getAllowReverse()

bool getAllowReverse

Getter for the allow reverse parameter.

Definition at line 75 of file MCSymmetricFilter.icc.h.

76 {
78 }

◆ initialize()

void initialize
override

Initialize the before event processing.

Definition at line 49 of file MCSymmetricFilter.icc.h.

50 {
52 Super::initialize();
53 }
void requireTruthInformation()
Require the mc information store arrays.

◆ needsTruthInformation()

bool needsTruthInformation
final

Indicates that the filter requires Monte Carlo information.

Definition at line 63 of file MCSymmetricFilter.icc.h.

64 {
65 return true;
66 }

◆ setAllowReverse()

void setAllowReverse ( bool  allowReverse)
virtual

Setter for the allow reverse parameter.

Reimplemented in MCSegmentPairRelationFilter, MCFacetRelationFilter, MCSegmentTripleFilter, and MCSegmentTripleRelationFilter.

Definition at line 69 of file MCSymmetricFilter.icc.h.

70 {
71 m_param_allowReverse = allowReverse;
72 }

Member Data Documentation

◆ m_param_allowReverse

bool m_param_allowReverse
private

Switch to indicate if the reversed version of the object shall also be accepted (default is true).

Definition at line 57 of file MCSymmetricFilter.dcl.h.


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