Commit 5b5fbb00b47d22337614fe5c22519f967bcc6b09
1 parent
85bed88b
Check also if "BkgCube" parameter exists.
Showing
1 changed file
with
8 additions
and
7 deletions
inst/cta/src/GCTAObservation.cpp
| ... | ... | @@ -860,13 +860,13 @@ void GCTAObservation::read(const GXmlElement& xml) |
| 860 | 860 | const GXmlElement* par = xml.element("parameter", i); |
| 861 | 861 | |
| 862 | 862 | // Check for response type 1 (GCTAResponseIrf) |
| 863 | - if ((par->attribute("name") == "EffectiveArea") || | |
| 864 | - (par->attribute("name") == "ARF") || | |
| 863 | + if ((par->attribute("name") == "EffectiveArea") || | |
| 864 | + (par->attribute("name") == "ARF") || | |
| 865 | 865 | (par->attribute("name") == "PointSpreadFunction") || |
| 866 | - (par->attribute("name") == "PSF") || | |
| 867 | - (par->attribute("name") == "EnergyDispersion") || | |
| 868 | - (par->attribute("name") == "RMF") || | |
| 869 | - (par->attribute("name") == "Background") || | |
| 866 | + (par->attribute("name") == "PSF") || | |
| 867 | + (par->attribute("name") == "EnergyDispersion") || | |
| 868 | + (par->attribute("name") == "RMF") || | |
| 869 | + (par->attribute("name") == "Background") || | |
| 870 | 870 | (par->attribute("name") == "Calibration")) { |
| 871 | 871 | if (response_type == 2) { |
| 872 | 872 | throw GException::xml_invalid_parnames(G_READ, xml, |
| ... | ... | @@ -878,7 +878,8 @@ void GCTAObservation::read(const GXmlElement& xml) |
| 878 | 878 | |
| 879 | 879 | // Check for response type 2 (GCTAResponseCube) |
| 880 | 880 | else if ((par->attribute("name") == "ExposureCube") || |
| 881 | - (par->attribute("name") == "PsfCube")) { | |
| 881 | + (par->attribute("name") == "PsfCube") || | |
| 882 | + (par->attribute("name") == "BkgCube")) { | |
| 882 | 883 | if (response_type == 1) { |
| 883 | 884 | throw GException::xml_invalid_parnames(G_READ, xml, |
| 884 | 885 | "Incompatible parameter names encountered in the " | ... | ... |