102 return (*
this)() && right();
108 return (*
this)() || right();
126 return info_.at(index);
134 return info_.at(index);
153 if(
info_.size() > 1) {
154 unsigned sz =
info_.size();
155 return info_.at(sz - 2);
198 std::vector<Place*>::iterator it;
206 info_.push_back(info);
332 unsigned max_size = 2)
virtual void add_info_(const EventData &info)
Definition: Places.hpp:205
PlaceThresholdOR(double low_limit, double high_limit, bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:331
Each activation must be within the set thresholds.
Definition: Places.hpp:281
Structure holding event data.
"Lazy" Place does not store multiple activation or deactivation events. Abstract class.
Definition: Places.hpp:234
virtual void activate(EventData &info)
Definition: Places.hpp:245
virtual bool operator&&(const Place &right) const
Definition: Places.hpp:101
void deactivate(double time)
Definition: Places.hpp:362
The basic detector which does not depend on children status. Will use info_ map to store additional i...
Definition: Places.hpp:267
PlaceDetector(bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:272
Similar to PlaceOR but uses AND relation.
Definition: Places.hpp:421
Each activation must be within the set thresholds.
Definition: Places.hpp:322
std::deque< EventData > info_
Definition: Places.hpp:174
bool status_
Definition: Places.hpp:213
virtual void activate(double time)
Definition: Places.hpp:73
virtual void check_(EventData &info)
Definition: Places.hpp:277
A pure abstract class to define a "place" for correlator.
Definition: Places.hpp:24
virtual void addChild(Place *child, bool coin=true)
virtual bool resetable() const
Definition: Places.hpp:168
PlaceOR(bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:399
virtual void report_(EventData &info)
Definition: Places.hpp:197
virtual void check_(EventData &info)
virtual int getCounter() const
Definition: Places.hpp:374
virtual bool status() const
Definition: Places.hpp:117
virtual EventData secondlast()
Definition: Places.hpp:152
double low_limit_
low limit for the threshold
Definition: Places.hpp:315
PlaceCounter(bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:348
constant parameters used in pixie16 analysis
int counter_
The counter for the place activation.
Definition: Places.hpp:379
virtual bool operator()() const
Definition: Places.hpp:112
PlaceThreshold(double low_limit, double high_limit, bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:290
bool resetable_
Definition: Places.hpp:217
void activate(EventData &info)
Definition: Places.hpp:355
virtual bool checkChildren(Place *child)
virtual EventData last()
Definition: Places.hpp:140
std::vector< std::pair< Place *, bool > > children_
Definition: Places.hpp:224
virtual void reset()
Definition: Places.hpp:97
virtual void check_(EventData &info)
Checks to see if a place is active.
virtual void addParent_(Place *parent)
Definition: Places.hpp:189
An abstract place using OR logic to set the activation of places.
Definition: Places.hpp:394
virtual bool operator||(const Place &right) const
Definition: Places.hpp:107
virtual void check_(EventData &info)
virtual EventData & operator[](unsigned index)
Definition: Places.hpp:125
PlaceLazy(bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:239
virtual void deactivate(double time)
Definition: Places.hpp:81
Simple structure holding basic parameters needed for correlation of events in the same place...
Definition: EventData.hpp:12
unsigned max_size_
Definition: Places.hpp:183
void activate(EventData &info)
Definition: Places.hpp:298
virtual void check_(EventData &info)=0
virtual void activate(EventData &info)
Definition: Places.hpp:61
double high_limit_
high limit for the threshold
Definition: Places.hpp:318
double getLowLimit()
Definition: Places.hpp:306
void reset()
Definition: Places.hpp:368
virtual void check_(EventData &info)
Does not depend on children. If you need some behaviour derive a new class from this one...
Definition: Places.hpp:315
double energy
the energy of the event
Definition: EventData.hpp:48
Counts number of activations coming from directly or from children.
Definition: Places.hpp:343
virtual void deactivate(double time)
Definition: Places.hpp:255
std::vector< Place * > parents_
Definition: Places.hpp:229
PlaceAND(bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:426
virtual void check_(EventData &info)
Checks if the OR should be activated or not.
virtual bool checkParents(Place *child)
virtual ~Place()
Definition: Places.hpp:36
double getHighLimit()
Definition: Places.hpp:309
Place(bool resetable=true, unsigned max_size=2)
Definition: Places.hpp:30