Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
|
Similar to PlaceOR but uses AND relation. More...
#include <Places.hpp>
Public Member Functions | |
PlaceAND (bool resetable=true, unsigned max_size=2) | |
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 (EventData &info) |
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 EventData & | operator[] (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) |
Protected Member Functions inherited from Place | |
virtual void | addParent_ (Place *parent) |
virtual void | report_ (EventData &info) |
virtual void | add_info_ (const EventData &info) |
Additional Inherited Members | |
Data Fields inherited from Place | |
std::deque< EventData > | info_ |
Protected Attributes inherited from Place | |
unsigned | max_size_ |
bool | status_ |
bool | resetable_ |
std::vector< std::pair< Place *, bool > > | children_ |
std::vector< Place * > | parents_ |
Similar to PlaceOR but uses AND relation.
That makes it a suitable choice for coincidences and anti-coincidences (use relation parameter when adding a child). Example : GammaBeta place storing beta-gamma coincidence, active when both Beta and Gamma children are active.
|
inline |
Constructor taking options
[in] | resetable | : whether or not the place is resetable |
[in] | max_size | : the maximum size of the place |
|
protectedvirtual |
Check the event for the AND
Take first child to get initial state. Browse through other children if result is false break (AND will be false anyway)
[in] | info | : the event data to search through |
Implements Place.