pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
|
object for parsing a detector configuration file and (potentially) executing it More...
#include <DetectorConfiguration.h>
Classes | |
struct | PolarfireConfiguration |
Public Member Functions | |
DetectorConfiguration (const std::string &config) | |
Parse the input file loading into us. More... | |
void | apply () |
apply the configuration to the detector, we need access to all the wishbones, so make sure no other instances of pftool (for example) are up! | |
void | stream (std::ostream &s) const |
Print out the detector configuration for debugging purposes. | |
Private Attributes | |
std::map< std::string, PolarfireConfiguration > | polarfires_ |
object for parsing a detector configuration file and (potentially) executing it
pflib::DetectorConfiguration::DetectorConfiguration | ( | const std::string & | config | ) |
Parse the input file loading into us.
Initialization, get the polarfires and the rocs on those polarfires that we will be configuring by crawling the YAML tree once
Setting Extraction Now we can extract the parameters, appropriately applying global 'inherit' settings to allow downstream objects