| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

FloatingFeePedestalSvc Class Reference

#include <FloatingFeePedestalSvc.h>

Inheritance diagram for FloatingFeePedestalSvc:

[legend]
Collaboration diagram for FloatingFeePedestalSvc:
[legend]
List of all members.

Public Types

typedef std::map< DayaBay::FeeChannelId,
std::list< unsigned int > > 
PreAdcArray
typedef std::map< DayaBay::FeeChannelId,
double > 
PedestalArray
 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR
enum  Status

Public Member Functions

 FloatingFeePedestalSvc (const std::string &name, ISvcLocator *svc)
 ~FloatingFeePedestalSvc ()
virtual StatusCode initialize ()
virtual StatusCode finalize ()
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface)
StatusCode cumulate (const DayaBay::ReadoutHeader *rh)
double pedestal (const DayaBay::FeeChannelId &channelId, int gain) const
virtual unsigned long addRef ()
virtual unsigned long release ()
virtual const std::string & name () const
virtual const InterfaceIDtype () const
virtual StatusCode configure ()
virtual StatusCode start ()
virtual StatusCode stop ()
virtual StatusCode terminate ()
virtual Gaudi::StateMachine::State FSMState () const
virtual Gaudi::StateMachine::State targetFSMState () const
virtual StatusCode reinitialize ()
virtual StatusCode restart ()
virtual StatusCode sysInitialize ()
virtual StatusCode sysStart ()
virtual StatusCode sysStop ()
virtual StatusCode sysFinalize ()
virtual StatusCode sysReinitialize ()
virtual StatusCode sysRestart ()
virtual StatusCode setProperty (const Property &p)
virtual StatusCode setProperty (const std::string &s)
virtual StatusCode setProperty (const std::string &n, const std::string &v)
StatusCode setProperty (const std::string &name, const TYPE &value)
virtual StatusCode getProperty (Property *p) const
virtual const PropertygetProperty (const std::string &name) const
virtual StatusCode getProperty (const std::string &n, std::string &v) const
virtual const std::vector<
Property * > & 
getProperties () const
ISvcLocatorserviceLocator () const
IMessageSvcmsgSvc ()
IMessageSvcmsgSvc () const
IMessageSvcmessageService ()
IMessageSvcmessageService () const
StatusCode setProperties ()
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
IAuditorSvcauditorSvc () const

Static Public Member Functions

static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()

Public Attributes

 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR

Protected Member Functions

int outputLevel () const

Protected Attributes

IntegerProperty m_outputLevel
Gaudi::StateMachine::State m_state
Gaudi::StateMachine::State m_targetState
IMessageSvcm_messageSvc

Private Member Functions

double updatePedestal (std::list< unsigned int > &PreAdcs, unsigned int newPreAdc)

Private Attributes

double m_limit
 number of preAdcs used to calculate average
double m_timeCutInSec
TimeStamp m_lastTrig
PreAdcArray m_finePreAdc
PreAdcArray m_crsePreAdc
PedestalArray m_finePedes
PedestalArray m_crsePedes

Friends

friend class ServiceManager

Detailed Description

Definition at line 24 of file FloatingFeePedestalSvc.h.


Member Typedef Documentation

typedef std::map<DayaBay::FeeChannelId, std::list<unsigned int> > FloatingFeePedestalSvc::PreAdcArray

Definition at line 46 of file FloatingFeePedestalSvc.h.

typedef std::map<DayaBay::FeeChannelId, double > FloatingFeePedestalSvc::PedestalArray

Definition at line 47 of file FloatingFeePedestalSvc.h.


Constructor & Destructor Documentation

FloatingFeePedestalSvc::FloatingFeePedestalSvc ( const std::string &  name,
ISvcLocator svc 
)

FloatingFeePedestalSvc::~FloatingFeePedestalSvc (  ) 


Member Function Documentation

virtual StatusCode FloatingFeePedestalSvc::initialize (  )  [virtual]

Reimplemented from Service.

virtual StatusCode FloatingFeePedestalSvc::finalize (  )  [virtual]

Reimplemented from Service.

virtual StatusCode FloatingFeePedestalSvc::queryInterface ( const InterfaceID riid,
void **  ppvInterface 
) [virtual]

Reimplemented from Service.

StatusCode FloatingFeePedestalSvc::cumulate ( const DayaBay::ReadoutHeader rh  )  [virtual]

Implements IFloatingFeePedestalSvc.

double FloatingFeePedestalSvc::pedestal ( const DayaBay::FeeChannelId channelId,
int  gain 
) const [virtual]

Implements IFloatingFeePedestalSvc.

double FloatingFeePedestalSvc::updatePedestal ( std::list< unsigned int > &  PreAdcs,
unsigned int  newPreAdc 
) [private]

static const InterfaceID& IFloatingFeePedestalSvc::interfaceID (  )  [inline, static, inherited]

Reimplemented from IInterface.

Definition at line 25 of file IFloatingFeePedestalSvc.h.

00025                                          {
00026     return IID_IFloatingFeePedestalSvc;
00027   }


Member Data Documentation

double FloatingFeePedestalSvc::m_limit [private]

number of preAdcs used to calculate average

Definition at line 51 of file FloatingFeePedestalSvc.h.

double FloatingFeePedestalSvc::m_timeCutInSec [private]

Definition at line 53 of file FloatingFeePedestalSvc.h.

TimeStamp FloatingFeePedestalSvc::m_lastTrig [private]

Definition at line 54 of file FloatingFeePedestalSvc.h.

PreAdcArray FloatingFeePedestalSvc::m_finePreAdc [private]

Definition at line 56 of file FloatingFeePedestalSvc.h.

PreAdcArray FloatingFeePedestalSvc::m_crsePreAdc [private]

Definition at line 57 of file FloatingFeePedestalSvc.h.

PedestalArray FloatingFeePedestalSvc::m_finePedes [private]

Definition at line 59 of file FloatingFeePedestalSvc.h.

PedestalArray FloatingFeePedestalSvc::m_crsePedes [private]

Definition at line 60 of file FloatingFeePedestalSvc.h.


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

Generated on Mon Apr 11 20:29:21 2011 for FloatingFeePedestalSvc by doxygen 1.4.7