/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 Attributes
DumpUnobservableStatisticsAlg Class Reference

#include <DumpUnobservableStatisticsAlg.h>

List of all members.

Public Member Functions

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

Private Attributes

std::string m_location

Detailed Description

Definition at line 8 of file DumpUnobservableStatisticsAlg.h.


Constructor & Destructor Documentation

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

Definition at line 10 of file DumpUnobservableStatisticsAlg.cc.

    : GaudiAlgorithm(name,pSvcLocator)
{
    declareProperty("Location",m_location= DayaBay::SimHeaderLocation::Default,
                     "Location in the TES to get Event data");
}
DumpUnobservableStatisticsAlg::~DumpUnobservableStatisticsAlg ( ) [virtual]

Definition at line 17 of file DumpUnobservableStatisticsAlg.cc.

{
}

Member Function Documentation

StatusCode DumpUnobservableStatisticsAlg::initialize ( ) [virtual]

Definition at line 21 of file DumpUnobservableStatisticsAlg.cc.

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

Definition at line 31 of file DumpUnobservableStatisticsAlg.cc.

{
  using namespace DayaBay;
  using std::endl;
  
  DayaBay::SimHeader* header = 0;
  if (exist<DayaBay::SimHeader>(evtSvc(),m_location)) {
     header = get<DayaBay::SimHeader>(m_location);
  }
  if(!header) {
    warning() << "No SimHeader found." <<endreq;
    return StatusCode::SUCCESS;
  }

  const SimUnobservableStatisticsHeader* h = header->unobservableStatistics();
  if(!h) {
    warning() << "No SimUnobservableStatisticsHeader found!" << endreq;
    return StatusCode::SUCCESS;
  }

  info() << "-------DumpUnobservableStatisticsAlg::::" << endreq;
  info() << *h << endreq;

  
  return StatusCode::SUCCESS;
}
StatusCode DumpUnobservableStatisticsAlg::finalize ( ) [virtual]

Definition at line 26 of file DumpUnobservableStatisticsAlg.cc.

{
  return StatusCode::SUCCESS;
}

Member Data Documentation

Definition at line 21 of file DumpUnobservableStatisticsAlg.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:18:33 for Historian by doxygen 1.7.4