/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
LikelihoodAlg Class Reference

#include <LikelihoodAlg.h>

Collaboration diagram for LikelihoodAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LikelihoodAlg (const std::string &name, ISvcLocator *svcloc)
 Constructor has to be in this form.
virtual ~LikelihoodAlg ()
StatusCode initialize ()
 Three mandatory member functions of any algorithm.
StatusCode execute ()
StatusCode finalize ()

Private Attributes

ILikelihoodToolm_likelihoodTool

Detailed Description

Definition at line 11 of file LikelihoodAlg.h.


Constructor & Destructor Documentation

LikelihoodAlg::LikelihoodAlg ( const std::string &  name,
ISvcLocator *  svcloc 
)

Constructor has to be in this form.

Definition at line 12 of file LikelihoodAlg.cc.

: GaudiAlgorithm(name, svcloc)
{
  //declareProperty("PrintFreq", m_printFreq = -1, "print frequency for event information");
}
LikelihoodAlg::~LikelihoodAlg ( ) [virtual]

Definition at line 18 of file LikelihoodAlg.cc.

{
}

Member Function Documentation

StatusCode LikelihoodAlg::initialize ( )

Three mandatory member functions of any algorithm.

Definition at line 22 of file LikelihoodAlg.cc.

{
  info() << "initialize()" << endreq;

  m_likelihoodTool = tool<ILikelihoodTool>("LikelihoodTool");

  return StatusCode::SUCCESS;
}
StatusCode LikelihoodAlg::execute ( )

Definition at line 31 of file LikelihoodAlg.cc.

{
  debug() << "execute() ______________________________ start" << endreq;

  CalibReadoutHeader* calibHeader = 
    get<CalibReadoutHeader>("/Event/CalibReadout/CalibReadoutHeader");
  const DayaBay::CalibReadout* calibReadout = calibHeader->calibReadout();

  RecHeader* recHeader = 
    get<RecHeader>("/Event/Rec/AdScaled");
  const RecTrigger& recTrigger = recHeader->recTrigger();

  UserDataHeader *cs = get<UserDataHeader>("/Event/Data/CalibStats");
  float likelihood = m_likelihoodTool->calculate(*calibReadout,recTrigger);
//  float likelihood = m_likelihoodTool->calculate();
  cs->set("Likelihood",likelihood);

  debug() << "execute() ______________________________ end" << endreq;
  return StatusCode::SUCCESS;
}
StatusCode LikelihoodAlg::finalize ( )

Definition at line 52 of file LikelihoodAlg.cc.

{
  info() << "finalize()" << endreq;
  return StatusCode::SUCCESS;
}

Member Data Documentation

Definition at line 24 of file LikelihoodAlg.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:13:37 for Likelihood by doxygen 1.7.4