/** * \file CbmLitPropagationQaDraw.h * \brief Draw histograms for propagation QA. * \author Andrey Lebedev * \date 2012 */ #ifndef CBMLITPROPAGATIONQADRAW_H_ #define CBMLITPROPAGATIONQADRAW_H_ #include "TObject.h" #include class CbmHistManager; using std::string; /** * \class CbmLitPropagationQaDraw * \brief Draw histograms for propagation QA. * \author Andrey Lebedev * \date 2012 */ class CbmLitPropagationQaDraw { public: /** * \brief Constructor. */ CbmLitPropagationQaDraw(); /** * \brief Destructor. */ virtual ~CbmLitPropagationQaDraw(); /** * \brief Draw histograms. * \param[in] histManager Pointer to histogram manager. * \param[in] outputDir Output directory for images. If not specified images are not saved. */ void Draw( CbmHistManager* histManager, const string& outputDir = ""); /** Setters **/ void SetNofPlanes(Int_t nofPlanes) { fNofPlanes = nofPlanes; } private: /** * \brief Draw histograms for specified algorithm and detector plane. * \param[in] algorithmIndex Index of algorithm. * \param[in] planeIndex Index of plane. */ void DrawHistos( Int_t algorithmIndex, Int_t planeIndex); /** * \fn DrawHistSigmaRMS * \brief Draw sigma and RMS on histogram. * \param[in] sigma Sigma value. * \param[in] rms RMS value. */ void DrawHistSigmaRMS( Double_t sigma, Double_t rms); CbmHistManager* fHM; // Histogram manager string fOutputDir; // Output directory for images Int_t fNofPlanes; // Number of planes }; #endif /* CBMLITPROPAGATIONQADRAW_H_ */