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

Create place, alter or add existing place to the tree. More...

#include <PlaceBuilder.hpp>

Public Member Functions

Placecreate (std::map< std::string, std::string > &params, bool verbose)
 

Private Member Functions

PlacecreatePlaceDetector (std::map< std::string, std::string > &params)
 
PlacecreatePlaceThreshold (std::map< std::string, std::string > &params)
 
PlacecreatePlaceThresholdOR (std::map< std::string, std::string > &params)
 
PlacecreatePlaceCounter (std::map< std::string, std::string > &params)
 
PlacecreatePlaceOR (std::map< std::string, std::string > &params)
 
PlacecreatePlaceAND (std::map< std::string, std::string > &params)
 

Detailed Description

Create place, alter or add existing place to the tree.

Accepts map <string, string> to pass place's parameters. The map should consist of the following keys: "parent" - name of a parent place or "root" if there is no parent "name" - name of the place to be added or created, if the name follow a pattern "aaa_bbb_X-Y" where X, Y are integer numbers, it is understood a as range of places, e.g. ge_clover_high_0-3 will be parsed as ge_clover_high_0, ge_clover_high_1, ge_clover_high_2, ge_clover_high_3 with all the other parametrs common for these four places The primary use of this synatax is to include basic places (automatically created) in the tree. "type" - must be of one of existing Places type, currently these are ("PlaceDetector", "PlaceThreshold", "PlaceThresholdOR, "PlaceCounter", "PlaceOR", "PlaceAND").

If left empty, it will be assumed that this place exists already. "reset" - optional, "true" by default, sets place resetable ("true") or non-resetable ("false"). "coincidence" - optional, "true" by default, sets relation with the parent place to coin. ("true") or anti-coin. ("false") "fifo" - optional, "2" by default, sets the depth of place's fifo queue "init" - optional, "false" by default, sets the initial status of the place "range_min" - requaried for PlaceThreshold, sets the lower threshold "range_max" - requaried for PlaceThreshold, sets the high threshold

Member Function Documentation

Place* PlaceBuilder::create ( std::map< std::string, std::string > &  params,
bool  verbose 
)
Returns
the created place
Parameters
[in]params: the parameters used to create the place
[in]verbose: set the verbosity of the builder
Place* PlaceBuilder::createPlaceAND ( std::map< std::string, std::string > &  params)
private
Returns
the created PlaceAND
Parameters
[in]params: the parameters used to create the place
Place* PlaceBuilder::createPlaceCounter ( std::map< std::string, std::string > &  params)
private
Returns
The created place counter
Parameters
[in]params: the parameters used to create the place
Place* PlaceBuilder::createPlaceDetector ( std::map< std::string, std::string > &  params)
private
Returns
the created PlaceDetector
Parameters
[in]params: the parameters used to create the place
Place* PlaceBuilder::createPlaceOR ( std::map< std::string, std::string > &  params)
private
Returns
the created PlaceOR
Parameters
[in]params: the parameters used to create the place
Place* PlaceBuilder::createPlaceThreshold ( std::map< std::string, std::string > &  params)
private
Returns
the created PlaceThreshold
Parameters
[in]params: the parameters used to create the place
Place* PlaceBuilder::createPlaceThresholdOR ( std::map< std::string, std::string > &  params)
private
Returns
the created PlaceThresholdOR
Parameters
[in]params: the parameters used to create the place

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