#include <HcalTopologyRestrictionParser.h>
Public Member Functions | |
HcalTopologyRestrictionParser (HcalTopology &target) | |
std::string | parse (const std::string &line) |
Private Attributes | |
HcalTopology & | target_ |
This utility class is intended to provide a standard way to set restrictions on the HcalTopology to exclude cells for testbeam and other purposes. It functions as a parser to convert textually-encoded restrictions into calls to HcalTopology::exclude().
The grammer is (using a rough notation)
line = rule >> *(; >> rule ) rule = region | subdetector region = subdetname ieta1 ieta2 iphi1 iphi2 [depth1 depth2] subdetector = subdetname subdetname = "HB" | "HE" | "HO" | "HF"
Definition at line 21 of file HcalTopologyRestrictionParser.h.
HcalTopologyRestrictionParser::HcalTopologyRestrictionParser | ( | HcalTopology & | target | ) |
Definition at line 6 of file HcalTopologyRestrictionParser.cc.
std::string HcalTopologyRestrictionParser::parse | ( | const std::string & | line | ) |
Parses a line of restrictions and returns an error string if there is a problem. The line must be formated as described in the class description.
Definition at line 20 of file HcalTopologyRestrictionParser.cc.
References determineSubdet(), nano_mu_digi_cff::errors, HcalTopology::exclude(), HcalTopology::excludeSubdetector(), hcaltpdigi_cfi::ieta1, hcaltpdigi_cfi::ieta2, mps_splice::line, AlCaHLTBitMon_QueryRunRegistry::string, and target_.
|
private |
Definition at line 30 of file HcalTopologyRestrictionParser.h.
Referenced by parse().