QGuiSession Class Reference

Inheritance diagram for QGuiSession:

QObject

List of all members.


Detailed Description

Class to generate session files for the GUI from a Diana module.

----------Usage in module---------- QGuiSession session("MyGuiSessionName");

session.Histogram("EnergySpectrum_Channel1"); session.Histogram("EnergySpectrum_Channel1").SetXVariable("event_branch.fCalib.fEnergy"); session.Histogram("EnergySpectrum_Channel1").SetXMin(300); session.Histogram("EnergySpectrum_Channel1").SetXMax(3000); session.Histogram("EnergySpectrum_Channel1").SetNumberOfBins(2700); session.Histogram("EnergySpectrum_Channel1").SetCut("Channel == 1"); session.Histogram("EnergySpectrum_Channel1").SetCut("TriggerWord == 1");

session.ScatterPlot("AmplitudeVsBaseline_Channel1"); session.ScatterPlot("AmplitudeVsBaseline_Channel1").SetXVariable("event_branch.fPreProcess.fBaseline"); session.ScatterPlot("AmplitudeVsBaseline_Channel1").SetYVariable("event_branch.fOB.fAmplitude"); session.ScatterPlot("AmplitudeVsBaseline_Channel1").SetCut("HeaterFlag == 1"); session.ScatterPlot("AmplitudeVsBaseline_Channel1").SetCut("event_branch.fCountPulses.fNumberOfPulses == 1");

session.ScatterPlot("BaselineVsTime_Channel2"); session.ScatterPlot("BaselineVsTime_Channel2").SetXVariable("NsTime"); session.ScatterPlot("BaselineVsTime_Channel2").SetYVariable("event_branch.fPreProcess.fBaseline");

session.CalibrationWindow("FailedChannels"); session.CalibrationWindow("FailedChannels").AddPeak(511.0); session.CalibrationWindow("FailedChannels").AddPeak(583.0); session.CalibrationWindow("FailedChannels").AddPeak(2614.5); session.CalibrationWindow("FailedChannels").SetOutputFilename("filename");

// session.SetUseReaderFileList(true); // If this method is called, the GUI session file will contain the list of // files used by the current Reader. By default, the GUI session file // contains the list of files used by the current Writer;

SeqAuxData().SetQObject("UnimportantName", &session, "session.gui"); -----------------------------------

----------Load GUI session global writer in config file---------- framework load GuiSessionWriter load RootGlobalReader load RootGlobalWriter load ASCIIGlobalReader load ASCIIGlobalWriter endfw -----------------------------------------------------------------

----------Makefile for module should contain---------- CXXFLAGS += -I/pkg/guisession CXXFLAGS += -I/pkg/dianaguicommon ------------------------------------------------------

Public Member Functions

 QGuiSession (const std::string &name="GUI Session")
 Default constructor.
virtual ~QGuiSession ()
 Default destructor.
QGuiCalibrationWindowCalibrationWindow (std::string name)
 Access calibration window.
std::string Dump () const
 Dump session to string to be written to file.
const std::string & GetName () const
 Get name.
bool GetUseReaderFileList () const
 Get flag to use file list from the reader.
QGuiHistogramHistogram (std::string name)
 Access histogram.
QGuiScatterPlotScatterPlot (std::string name)
 Access scatter plot.
void SetName (const std::string &name)
 Set name of session, becomes canvas window name.
void SetUseReaderFileList (const bool flag=true)
 Set a flag to use file list from the reader.

Private Attributes

std::map< std::string,
QGuiCalibrationWindow
fCalibrationWindow
 Calibration windows.
std::map< std::string,
QGuiHistogram
fHistogram
 Histograms.
std::string fName
 Name.
std::map< std::string,
QGuiScatterPlot
fScatterPlot
 Scatter plots.
bool fUseReaderFileList
 Flag to use file list from the reader (default is to use file list from the writer).


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6