Commit eedc86850cc2db3297d290e1a5532e10dc24bfa8

Authored by Jürgen Knödlseder
1 parent c51109f5

Convert tabs to spaces

inst/cta/include/GCTAResponseCube.hpp
... ... @@ -69,7 +69,7 @@ public:
69 69 const GCTACubeBackground& background);
70 70 GCTAResponseCube(const GCTACubeExposure& exposure,
71 71 const GCTACubePsf& psf,
72   - const GCTACubeEdisp& edisp,
  72 + const GCTACubeEdisp& edisp,
73 73 const GCTACubeBackground& background);
74 74 virtual ~GCTAResponseCube(void);
75 75  
... ... @@ -147,14 +147,14 @@ private:
147 147 GCTACubeEdisp m_edisp; //!< Energy dispersion cube
148 148 mutable bool m_apply_edisp; //!< Apply energy dispersion
149 149 mutable bool m_has_edisp; //!< Flag to indicate if energy
150   - // dispersion is available
  150 + //!< dispersion is available
151 151  
152 152 // Response cache
153 153 mutable std::vector<GCTACubeSource*> m_cache; //!< Response cache
154 154 mutable GNodeArray m_diffuse_logE; //!< Diffuse energy
155   - // bounds
156   - // computation
157   - // cache
  155 + //!< bounds
  156 + //!< computation
  157 + //!< cache
158 158 };
159 159  
160 160  
... ...
inst/cta/src/GCTAResponseCube.cpp
... ... @@ -182,7 +182,7 @@ GCTAResponseCube::GCTAResponseCube(const GCTACubeExposure&amp; exposure,
182 182 **************************************************************************/
183 183 GCTAResponseCube::GCTAResponseCube(const GCTACubeExposure& exposure,
184 184 const GCTACubePsf& psf,
185   - const GCTACubeEdisp& edisp,
  185 + const GCTACubeEdisp& edisp,
186 186 const GCTACubeBackground& background) :
187 187 GCTAResponse()
188 188 {
... ... @@ -353,7 +353,7 @@ double GCTAResponseCube::irf(const GEvent&amp; event,
353 353  
354 354 // Multiply-in energy dispersion
355 355 if (use_edisp() && irf > 0.0) {
356   - irf *= edisp()(obsEng, srcEng, srcDir);
  356 + irf *= edisp()(obsEng, srcEng, srcDir);
357 357 }
358 358  
359 359 // Divide by livetime
... ... @@ -434,8 +434,8 @@ double GCTAResponseCube::nroi(const GModelSky&amp; model,
434 434 ***************************************************************************/
435 435 GEbounds GCTAResponseCube::ebounds(const GEnergy& obsEng) const
436 436 {
437   - // Get energy boundaries from energy dispersion
438   - GEbounds ebounds = m_edisp.ebounds(obsEng);
  437 + // Get energy boundaries from energy dispersion
  438 + GEbounds ebounds = m_edisp.ebounds(obsEng);
439 439  
440 440 // Return energy boundaries
441 441 return ebounds;
... ... @@ -487,11 +487,11 @@ void GCTAResponseCube::read(const GXmlElement&amp; xml)
487 487  
488 488 // Optionally load energy dispersion cube
489 489 if (gammalib::xml_has_par(xml, "EdispCube")) {
490   - const GXmlElement* edisppar = gammalib::xml_get_par(G_READ, xml, "EdispCube");
491   - std::string edispname = gammalib::xml_file_expand(xml,
  490 + const GXmlElement* edisppar = gammalib::xml_get_par(G_READ, xml, "EdispCube");
  491 + std::string edispname = gammalib::xml_file_expand(xml,
492 492 edisppar->attribute("file"));
493   - m_edisp.load(edispname);
494   - m_has_edisp = true;
  493 + m_edisp.load(edispname);
  494 + m_has_edisp = true;
495 495 }
496 496  
497 497 // Return
... ... @@ -535,11 +535,11 @@ void GCTAResponseCube::write(GXmlElement&amp; xml) const
535 535  
536 536 // Optionally add energy dispersions cube filename
537 537 if (m_has_edisp) {
538   - filename = gammalib::xml_file_reduce(xml, m_edisp.filename());
539   - if (!(filename.empty())) {
540   - GXmlElement* par = gammalib::xml_need_par(G_WRITE, xml, "EdispCube");
541   - par->attribute("file", filename);
542   - }
  538 + filename = gammalib::xml_file_reduce(xml, m_edisp.filename());
  539 + if (!(filename.empty())) {
  540 + GXmlElement* par = gammalib::xml_need_par(G_WRITE, xml, "EdispCube");
  541 + par->attribute("file", filename);
  542 + }
543 543 }
544 544  
545 545 // Add background cube filename
... ...