2#define TrigDataCnv_CXX 1
4#include "GaudiKernel/MsgStream.h"
5#include "GaudiKernel/DataObject.h"
7#include "TClonesArray.h"
26 MsgStream log(
msgSvc(),
"TrigDataCnv");
37 MsgStream log(
msgSvc(),
"TrigDataCnv");
38 log << MSG::DEBUG <<
"TrigDataCnv::TObjectToDataObject" << endreq;
39 StatusCode sc=StatusCode::SUCCESS;
43 refpObject=trigDataTds;
47 if(!m_trigData)
return sc;
64 return StatusCode::SUCCESS;
69 MsgStream log(
msgSvc(),
"TrigDataCnv");
70 log << MSG::DEBUG <<
"TrigDataCnv::DataObjectToTObject" << endreq;
71 StatusCode sc=StatusCode::SUCCESS;
74 if (!trigDataCnvTds) {
75 log << MSG::ERROR <<
"Could not downcast to TrigData" << endreq;
76 return StatusCode::FAILURE;
82 log << MSG::ERROR <<
"Could not get TrigEvent in TDS " << endreq;
83 return StatusCode::FAILURE;
88 log << MSG::ERROR <<
"TrigDataCnv:Could not downcast to TDS TrigEvent" << endreq;
97 if (!ttrigData)
return sc;
115 return StatusCode::SUCCESS;
Definition of a Root address, derived from IOpaqueAddress.
Base class for all Root Converters.
std::vector< void * > m_adresses
each converter knows the corresponding adresses
IDataProviderSvc * m_eds
pointer to eventdataservice
std::string m_rootBranchname
root branchname (may be concatenated of severals)
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert the transient object to the requested representation.
int getTimingType() const
int getTimeWindow() const
void setTimeWindow(int i)
int getTrigCondition(int i) const
int getTrigChannel(int i) const
void setTrigCondition(int i, int j)
void setTrigChannel(int i, int j)
void setTimingType(int i)
const TTrigData * getTrigData() const
void addTrigData(TTrigData *trigData)
TrigData.
static TTrigEvent * getWriteObject()
returns object to be written (maintained here for all DIGI-converters)
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
TrigDataCnv(ISvcLocator *svc)
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
void setTimingType(int i)
const int getTimeWindow() const
const int getTimingType() const
const int getTrigCondition(int i) const
void setTrigCondition(int i, int j)
const int getTrigChannel(int i) const
void setTimeWindow(int i)
const bool getPreScale() const
void setTrigChannel(int i, int j)
_EXTERN_ std::string Event