00001 #include "ROsFecReadoutTool.h"
00002
00003 #include "Conventions/Detectors.h"
00004 #include "Conventions/Trigger.h"
00005 #include "Conventions/Site.h"
00006
00007 #include "Event/SimReadoutHeader.h"
00008 #include "Event/ReadoutTriggerDataPkg.h"
00009
00010 #include "Event/ElecCrateHeader.h"
00011 #include "Event/ElecFecCrate.h"
00012
00013 #include "Event/SimTrigCommand.h"
00014 #include "Event/SimTrigCommandHeader.h"
00015 #include "Event/SimTrigCommandCollection.h"
00016
00017 ROsFecReadoutTool::ROsFecReadoutTool(const std::string& type,
00018 const std::string& name,
00019 const IInterface* parent)
00020 : GaudiTool(type,name,parent)
00021 {
00022 declareInterface< IROsReadoutTool >(this) ;
00023
00024 m_detectorsToProcess.push_back("DayaBayRPC");
00025 m_detectorsToProcess.push_back("LingAoRPC");
00026 m_detectorsToProcess.push_back("FarRPC");
00027
00028 declareProperty("detectorsToProcess",m_detectorsToProcess,
00029 "List of detectors to process with this tool");
00030 }
00031
00032 ROsFecReadoutTool::~ROsFecReadoutTool(){}
00033
00034 StatusCode ROsFecReadoutTool::initialize()
00035 {
00036 return StatusCode::SUCCESS;
00037 }
00038
00039 StatusCode ROsFecReadoutTool::finalize()
00040 {
00041 return StatusCode::SUCCESS;
00042 }
00043
00044 StatusCode ROsFecReadoutTool::makeReadouts(DayaBay::SimReadoutHeader* roHeader,
00045 const DayaBay::SimTrigHeader& trigHeader,
00046 const DayaBay::ElecHeader& elecHeader)
00047 {
00048 debug() << "running makeReadouts() in ROsFecReadoutTool" << endreq;
00049 return StatusCode::SUCCESS;
00050 }
00051
00052
00053 StatusCode ROsFecReadoutTool::mutate(DayaBay::SimReadoutHeader* roHeader,
00054 std::vector<DayaBay::ReadoutTriggerDataPkg*>& trigDataPkg,
00055 const DayaBay::ElecHeader& elecHeader)
00056 {
00057
00058 debug() << "running makeReadouts() in ROsFecReadoutTool" << endreq;
00059 return StatusCode::SUCCESS;
00060 }
00061