musrfit 1.10.0
PRgeHandler.cpp File Reference
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <memory>
#include <cmath>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <TXMLAttr.h>
#include "PRgeHandler.h"
Include dependency graph for PRgeHandler.cpp:

Go to the source code of this file.

Functions

 ClassImpQ (PXmlRgeHandler) void PXmlRgeHandler
 SAX callback invoked at the start of XML document parsing.
 
 ClassImp (PRgeHandler) PRgeHandler
 Constructor that loads TrimSP range distribution data.
 

Function Documentation

◆ ClassImp()

ClassImp ( PRgeHandler )

Constructor that loads TrimSP range distribution data.

Performs the following steps:

  1. Validates that XML configuration filename is provided
  2. Parses XML file using PXmlRgeHandler to get file paths and energies
  3. Reads all specified .rge files from TrimSP
  4. Calculates total particle counts for each energy
  5. Computes normalized distributions nn(z) where ∫nn(z)dz = 1

Sets fValid to false if any errors occur during loading.

Parameters
flnPath to XML configuration file (empty triggers error)

Definition at line 359 of file PRgeHandler.cpp.

References PRgeData::amplitude, PRgeData::depth, PRgeData::energy, PRgeHandler::fData, PRgeHandler::fValid, PRgeData::nn, PRgeData::noOfParticles, PRgeHandler::ReadRgeFile(), and status.

◆ ClassImpQ()

ClassImpQ ( PXmlRgeHandler )

SAX callback invoked at the start of XML document parsing.

Initializes the parsing state by resetting the key to empty. This ensures clean state for processing the XML content.

Definition at line 43 of file PRgeHandler.cpp.

References PXmlRgeHandler::eEmpty, and PXmlRgeHandler::fKey.