Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
PlaceThreshold Class Reference

Each activation must be within the set thresholds. More...

#include <Places.hpp>

Inheritance diagram for PlaceThreshold:
Collaboration diagram for PlaceThreshold:

Public Member Functions

 PlaceThreshold (double low_limit, double high_limit, bool resetable=true, unsigned max_size=2)
 
void activate (EventData &info)
 
double getLowLimit ()
 
double getHighLimit ()
 
- Public Member Functions inherited from Place
 Place (bool resetable=true, unsigned max_size=2)
 
virtual ~Place ()
 
virtual void addChild (Place *child, bool coin=true)
 
virtual bool checkChildren (Place *child)
 
virtual bool checkParents (Place *child)
 
virtual void activate (double time)
 
virtual void deactivate (double time)
 
virtual void reset ()
 
virtual bool operator&& (const Place &right) const
 
virtual bool operator|| (const Place &right) const
 
virtual bool operator() () const
 
virtual bool status () const
 
virtual EventDataoperator[] (unsigned index)
 
virtual EventData operator[] (unsigned index) const
 
virtual EventData last ()
 
virtual EventData secondlast ()
 
virtual bool resetable () const
 

Protected Member Functions

virtual void check_ (EventData &info)
 Does not depend on children. If you need some behaviour derive a new class from this one. More...
 
- Protected Member Functions inherited from Place
virtual void addParent_ (Place *parent)
 
virtual void report_ (EventData &info)
 
virtual void add_info_ (const EventData &info)
 

Protected Attributes

double low_limit_
 low limit for the threshold
 
double high_limit_
 high limit for the threshold
 
- Protected Attributes inherited from Place
unsigned max_size_
 
bool status_
 
bool resetable_
 
std::vector< std::pair< Place *, bool > > children_
 
std::vector< Place * > parents_
 

Additional Inherited Members

- Data Fields inherited from Place
std::deque< EventDatainfo_
 

Detailed Description

Each activation must be within the set thresholds.

Constructor & Destructor Documentation

PlaceThreshold::PlaceThreshold ( double  low_limit,
double  high_limit,
bool  resetable = true,
unsigned  max_size = 2 
)
inline

Low and high threshold limit set in constructor.

If both set to 0, no threshold is applied.

Parameters
[in]low_limit: the low range for the threshold
[in]high_limit: the high range for the threshold
[in]resetable: flag to tell if place is resetable
[in]max_size: the maximum size of the place

Member Function Documentation

void PlaceThreshold::activate ( EventData info)
inlinevirtual

Activate place only if energy is within set limits or both limits are 0 (no threshold).

Parameters
[in]info: the event information to use to activate

Reimplemented from Place.

virtual void PlaceThreshold::check_ ( EventData info)
inlineprotectedvirtual

Does not depend on children. If you need some behaviour derive a new class from this one.

Parameters
[in]info: the information to use for the threshold check

Implements Place.

Reimplemented in PlaceThresholdOR.

double PlaceThreshold::getHighLimit ( )
inline
Returns
the high limit for the threshold
double PlaceThreshold::getLowLimit ( )
inline
Returns
the low limit for the threshold

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