Belle II Software  release-08-01-10
FeasibleRLFacetFilter Class Reference

Filter for the constuction of good facets investigating the feasability of the right left passage hypotheses combination. More...

#include <FeasibleRLFacetFilter.h>

Inheritance diagram for FeasibleRLFacetFilter:
Collaboration diagram for FeasibleRLFacetFilter:

Public Types

using Object = AObject
 Type of the object to be analysed.
 
using Interface = Filter< AObject >
 Mark this class as the basic interface.
 

Public Member Functions

 FeasibleRLFacetFilter (bool hardRLCut=true)
 Constructor taking a flag if boarderline feasable cases should be excluded.
 
void exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) final
 Expose the set of parameters of the filter to the module parameter list.
 
Weight operator() (const CDCFacet &facet) final
 Main filter method returning the weight of the facet. More...
 
void setHardRLCut (bool hardRLCut)
 Setter for the flag that the boarderline cases should be excluded.
 
bool getHardRLCut () const
 Getter for the flag that the boarderline cases should be excluded.
 
virtual bool needsTruthInformation ()
 Indicates if the filter requires Monte Carlo information.
 
virtual Weight operator() (const Object &obj)
 Function to evaluate the object. More...
 
Weight operator() (const Object *obj)
 Function to evaluate the object. More...
 
void initialize () override
 Receive and dispatch signal before the start of the event processing.
 
void beginRun () override
 Receive and dispatch signal for the beginning of a new run.
 
void beginEvent () override
 Receive and dispatch signal for the start of a new event.
 
void endRun () override
 Receive and dispatch signal for the end of the run.
 
void terminate () override
 Receive and dispatch Signal for termination of the event processing.
 

Protected Member Functions

void addProcessingSignalListener (ProcessingSignalListener *psl)
 Register a processing signal listener to be notified.
 
int getNProcessingSignalListener ()
 Get the number of currently registered listeners.
 

Private Types

using Super = BaseFacetFilter
 Type of the super class.
 

Private Member Functions

bool isFeasible (const CDCRLWireHitTriple &rlWireHitTriple) const
 Check if the hit triplet is a feasible combination for shape and rl passage information.
 

Private Attributes

bool m_param_hardRLCut = true
 Switch for hard selection.
 
std::vector< ProcessingSignalListener * > m_subordinaryProcessingSignalListeners
 References to subordinary signal processing listener contained in this findlet.
 
bool m_initialized = false
 Flag to keep track whether initialization happend before.
 
bool m_terminated = false
 Flag to keep track whether termination happend before.
 
std::string m_initializedAs
 Name of the type during initialisation.
 

Detailed Description

Filter for the constuction of good facets investigating the feasability of the right left passage hypotheses combination.

If the given combination cannot be made by a track reject it.

Definition at line 30 of file FeasibleRLFacetFilter.h.

Member Function Documentation

◆ operator()() [1/3]

Weight operator() ( const CDCFacet facet)
final

Main filter method returning the weight of the facet.

Returns NAN if the cell shall be rejected.

Definition at line 38 of file FeasibleRLFacetFilter.cc.

39 {
40  if (this->isFeasible(facet)) {
41  return 3;
42  } else {
43  return NAN;
44  }
45 }
bool isFeasible(const CDCRLWireHitTriple &rlWireHitTriple) const
Check if the hit triplet is a feasible combination for shape and rl passage information.

◆ operator()() [2/3]

◆ operator()() [3/3]

Weight operator() ( const Object obj)
inherited

Function to evaluate the object.

Base implementation accepts all objects, except nullptr.

Parameters
objThe object to be accepted or rejected.
Returns
A finit float value if the object is accepted. NAN if the object is rejected. Nullptr is always rejected.

Definition at line 58 of file Filter.icc.h.


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