Belle II Software  release-08-01-10
LayerPXDRelationFilter< AFilter, APrefilter > Class Template Reference

Base filter for CKF PXD states. More...

#include <LayerPXDRelationFilter.dcl.h>

Inheritance diagram for LayerPXDRelationFilter< AFilter, APrefilter >:
Collaboration diagram for LayerPXDRelationFilter< AFilter, APrefilter >:

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

 LayerPXDRelationFilter ()
 Add the filter as listener.
 
 ~LayerPXDRelationFilter ()
 Default destructor.
 
std::vector< CKFToPXDState * > getPossibleTos (CKFToPXDState *from, const std::vector< CKFToPXDState * > &states) const override
 Return all states the given state is possible related to.
 
void exposeParameters (ModuleParamList *moduleParamList, const std::string &prefix) override
 Expose the parameters of the filter.
 
TrackFindingCDC::Weight operator() (const CKFToPXDState &from, const CKFToPXDState &to) override
 Give a final weight to the possibilities by asking the filter.
 
void initialize () override
 Receive signal before the start of the event processing.
 
void beginRun () override
 Receive signal for the beginning of a new run.
 
virtual std::vector< CKFToPXDState * > getPossibleTos (CKFToPXDState *from, const std::vector< CKFToPXDState * > &objects) const
 Selects the objects possibly related to the given one from the given pool of objects.
 
virtual Weight operator() (const CKFToPXDState &from, const CKFToPXDState &to)
 Main filter method returning the weight of the neighborhood relation. More...
 
Weight operator() (const Relation< CKFToPXDState > &relation) override
 Main filter method overriding the filter interface method. More...
 
virtual Weight operator() (const Object &obj)
 Function to evaluate the object. More...
 
Weight operator() (const Object *obj)
 Function to evaluate the object. More...
 
virtual bool needsTruthInformation ()
 Indicates if the filter requires Monte Carlo information.
 
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 = TrackFindingCDC::RelationFilter< CKFToPXDState >
 The parent class.
 

Private Attributes

int m_param_hitJumping = 0
 Parameter: Make it possible to jump over N layers (if set to -1, read from DB).
 
int m_layerJumpLowPt = m_param_hitJumping
 This are values that are actually used ('m_param_hitJumping==-1' means parameter is read from DB).
 
int m_layerJumpHighPt = m_param_hitJumping
 This are values that are actually used ('m_param_hitJumping==-1' means parameter is read from DB).
 
double m_layerJumpPtThreshold = -1
 This are values that are actually used ('m_param_hitJumping==-1' means parameter is read from DB).
 
AFilter m_filter
 Filter for rejecting the states.
 
APrefilter m_prefilter
 Loose pre-filter to reject possibleTos.
 
std::string m_prefix = ""
 Used to get correct payload.
 
std::unique_ptr< DBObjPtr< CKFParameters > > m_ckfParameters
 LayerJump parameter can be read from DB (use pointer as payload name contains 'prefix')
 
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

template<class AFilter, class APrefilter = AFilter>
class Belle2::LayerPXDRelationFilter< AFilter, APrefilter >

Base filter for CKF PXD states.

Definition at line 22 of file LayerPXDRelationFilter.dcl.h.

Member Function Documentation

◆ operator()() [1/4]

Weight operator() ( const CKFToPXDState from,
const CKFToPXDState to 
)
virtualinherited

Main filter method returning the weight of the neighborhood relation.

Return always returns NAN to reject all segment neighbors.

Definition at line 44 of file RelationFilter.icc.h.

37  {
38  return 1;
39  }

◆ operator()() [2/4]

◆ operator()() [3/4]

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.

◆ operator()() [4/4]

Weight operator() ( const Relation< CKFToPXDState > &  relation)
overrideinherited

Main filter method overriding the filter interface method.

Checks the validity of the pointers in the relation and unpacks the relation to the method implementing the rejection.

Definition at line 51 of file RelationFilter.icc.h.


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