/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 /* 00002 * \class SimTrigHeaderCnv 00003 * 00004 * \brief SimTrigEvent <--> PerSimTrigEvent converter 00005 * 00006 * bseilhan@iit.edu Tue Sep 23 15:23:29 CDT 2008 00007 * 00008 */ 00009 00010 #ifndef SimTrigHeaderCnv_H 00011 #define SimTrigHeaderCnv_H 1 00012 00013 #include "RootIOSvc/RootIOTypedCnv.h" 00014 00015 #include "PerSimTrigEvent/PerSimTrigHeader.h" 00016 #include "PerSimTrigEvent/PerSimTrigCommandHeader.h" 00017 #include "PerSimTrigEvent/PerSimTrigCommandCollection.h" 00018 #include "PerSimTrigEvent/PerSimTrigCommand.h" 00019 #include "PerSimTrigEvent/PerSimRpcTrigCommand.h" 00020 00021 #include "Event/SimTrigHeader.h" 00022 #include "Event/SimTrigCommandHeader.h" 00023 #include "Event/SimTrigCommandCollection.h" 00024 #include "Event/SimTrigCommand.h" 00025 #include "Event/SimRpcTrigCommand.h" 00026 00027 class SimTrigHeaderCnv : public RootIOTypedCnv<PerSimTrigHeader, 00028 DayaBay::SimTrigHeader> 00029 { 00030 public: 00031 static const CLID& classID() { 00032 return DayaBay::CLID_SimTrigHeader; 00033 } 00034 00035 SimTrigHeaderCnv(ISvcLocator* svc); 00036 virtual ~SimTrigHeaderCnv(); 00037 00040 StatusCode PerToTran(const PerSimTrigHeader& perobj, 00041 DayaBay::SimTrigHeader& tranobj); 00042 00045 StatusCode TranToPer(const DayaBay::SimTrigHeader& tranobj, 00046 PerSimTrigHeader& perobj); 00047 00048 StatusCode fillRepRefs(IOpaqueAddress* addr, DataObject* dobj); 00049 StatusCode fillObjRefs(IOpaqueAddress* addr, DataObject* dobj); 00050 00051 PerSimTrigCommandHeader* convert(const DayaBay::SimTrigCommandHeader& trigCH); 00052 PerSimTrigCommandCollection* convert(const DayaBay::SimTrigCommandCollection& trigCC); 00053 PerSimTrigCommand* convert(const DayaBay::SimTrigCommand& trigCom); 00054 PerSimRpcTrigCommand* convert(const DayaBay::SimRpcTrigCommand& trigCom); 00055 00056 DayaBay::SimTrigCommandHeader* convert(const PerSimTrigCommandHeader& PerSimTrigCH); 00057 DayaBay::SimTrigCommandCollection* convert(const PerSimTrigCommandCollection& PerSimTrigCC); 00058 DayaBay::SimTrigCommand* convert(const PerSimTrigCommand& PerSimTrigCom); 00059 DayaBay::SimRpcTrigCommand* convert(const PerSimRpcTrigCommand& PerSimRpcTrigCom); 00060 00061 }; 00062 00063 #endif // SimTrigHeaderCnv_H