31 std::string section_name;
44 std::stringstream octant_option;
47 octant_option <<
"R" << region <<
"-octant";
60 std::stringstream octant_match;
61 octant_match << octant_option.str() <<
" = " << detector->
GetOctant();
65 std::string module_name;
69 if (module_name == octant_match.str()) {
111 std::string section_name;
116 if (detectors.size() != 1) {
117 QwWarning <<
"Warning: LoadCrosstalkDefinition detector name " << section_name
118 <<
" has " << detectors.size() <<
" matching detectors." <<
QwLog::endl;
#define QwMessage
Predefined log drain for regular messages.
std::map< TString, TString > fDetectorMaps
void push_back(QwDetectorInfo &detector)
Add single detector object.
EQwDetectorPackage GetPackage() const
bool HasValue(const std::string &key)
Has this key been defined.
Int_t LoadGeometryDefinition(TString mapfile)
Load geometry definition for tracking subsystems.
void TrimComment(const char commentchar)
EQwRegionID GetRegion() const
void SetOctant(const int octant)
const std::pair< TString, TString > GetParamFileNameContents()
QwParameterFile * ReadNextSection(std::string &secname, const bool keep_header=false)
const QwGeometry name(const std::string &name)
Get detectors by name.
T GetValue(const std::string &key)
Get a templated value.
QwParameterFile * ReadNextModule(std::string &secname, bool keep_header=false)
QwGeometry fDetectorInfo
Geometry information of this subsystem.
void LoadGeometryDefinition(QwParameterFile *map)
QwParameterFile * ReadSectionPreamble()
Rewinds to the start and read until it finds next section header.
static std::ostream & endl(std::ostream &)
End of the line.
Collection of QwDetectorInfo pointers that specifies an experimental geometry.
void TrimWhitespace(TString::EStripType head_tail=TString::kBoth)
#define QwWarning
Predefined log drain for warnings.
Int_t LoadCrosstalkDefinition(TString mapfile)
Load crosstalk definition for tracking subsystems.
void LoadCrosstalkDefinition(QwParameterFile *map)