/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Types | Private Attributes
AdQuality Class Reference

Produce Readout-level plots of various data quality quantities. More...

#include <AdQuality.h>

Collaboration diagram for AdQuality:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AdQuality (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~AdQuality ()
virtual StatusCode initialize ()
virtual StatusCode execute ()
virtual StatusCode finalize ()

Private Types

typedef std::map
< DayaBay::Detector,
AdQualityPlots * > 
PlotMap

Private Attributes

std::string m_location
 Property: Location - TES path to the ReadoutHeader Defaults to DayaBay::ReadoutHeaderLocation::Default.
std::string m_filepath
 Property: FilePath - path to use when registering histograms.
ITHistSvc * m_hsvc
ICableSvcm_cable
PlotMap m_plots

Detailed Description

Produce Readout-level plots of various data quality quantities.

bv@bnl.gov Tue Nov 25 16:07:32 2008

Definition at line 25 of file AdQuality.h.


Member Typedef Documentation

typedef std::map<DayaBay::Detector,AdQualityPlots*> AdQuality::PlotMap [private]

Definition at line 54 of file AdQuality.h.


Constructor & Destructor Documentation

AdQuality::AdQuality ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 88 of file AdQuality.cc.

    : GaudiAlgorithm(name,pSvcLocator)
    , m_hsvc(0)
{
    declareProperty("Location",m_location=DayaBay::ReadoutHeaderLocation::Default,
                    "Location in the TES to ReadoutHeaders");
    declareProperty("FilePath",m_filepath="/file1/adqual/",
                    "File path with with to register histograms.");
}
AdQuality::~AdQuality ( ) [virtual]

Definition at line 98 of file AdQuality.cc.

{
}

Member Function Documentation

StatusCode AdQuality::initialize ( ) [virtual]

Definition at line 102 of file AdQuality.cc.

{
    this->GaudiAlgorithm::initialize();

    // Get the histogram service
    if ( service("THistSvc", m_hsvc).isFailure()) {
        error() << " No THistSvc available." << endreq;
        return StatusCode::FAILURE;
    } 
    // Get the cable service
    if ( service("CableSvc", m_cable).isFailure()) {
        error() << " No CableService available." << endreq;
        return StatusCode::FAILURE;
    } 

    return StatusCode::SUCCESS;
}
StatusCode AdQuality::execute ( ) [virtual]

Definition at line 120 of file AdQuality.cc.

{
    DayaBay::ReadoutHeader* roh = get<DayaBay::ReadoutHeader>(m_location);

    const DayaBay::ReadoutPmtCrate* ro = 
        dynamic_cast<const DayaBay::ReadoutPmtCrate*>(roh->readout());
    if (!ro) {
        debug() << "Got a non-PmtCrate readout, skipping..." << endreq;
        return StatusCode::SUCCESS;
    }

    const Context &ctx = roh->context();
    DayaBay::Detector det(ctx.GetSite(),ctx.GetDetId());
    AdQualityPlots* plots = m_plots[det];
    if (!plots) {
        plots = new AdQualityPlots(det,info());
        m_plots[det] = plots;
        plots->book(m_hsvc,m_filepath);
    }

    return plots->fill(m_cable,ServiceMode(ctx,0),ro);
}
StatusCode AdQuality::finalize ( ) [virtual]

Definition at line 143 of file AdQuality.cc.

{
    return this->GaudiAlgorithm::finalize();
}

Member Data Documentation

std::string AdQuality::m_location [private]

Property: Location - TES path to the ReadoutHeader Defaults to DayaBay::ReadoutHeaderLocation::Default.

Definition at line 41 of file AdQuality.h.

std::string AdQuality::m_filepath [private]

Property: FilePath - path to use when registering histograms.

Must end in "/". Default "/file1/adqual/"

Definition at line 45 of file AdQuality.h.

ITHistSvc* AdQuality::m_hsvc [private]

Definition at line 50 of file AdQuality.h.

Definition at line 52 of file AdQuality.h.

Definition at line 55 of file AdQuality.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:06:20 for DataQuality by doxygen 1.7.4