/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DaqFormatSelector.h
Go to the documentation of this file.
00001 #ifndef DAQFORMATMODULES_DAQFORMATSELECTOR_H
00002 #define DAQFORMATMODULES_DAQFORMATSELECTOR_H
00003 
00004 /*
00005  *  DaqFormatSelector.h
00006  *  DaqFormatModules
00007  *
00008  *  Created by Simon Patton on 8/5/10.
00009  *  Copyright 2010 DayaBay Collaboration. All rights reserved.
00010  *
00011  */
00012 #include <vector>
00013 
00014 #include "GaudiKernel/Service.h"
00015 #include "GaudiKernel/IEvtSelector.h"
00016 
00017 class IDaqReadoutSvc;
00018 
00019 namespace DybDaq {
00020     
00021     class DaqFormatSelector : public Service,
00022         virtual public IEvtSelector {
00023         
00024     public:
00025         
00029         DaqFormatSelector(const std::string& name,
00030                           ISvcLocator* svc);
00031         
00035         ~DaqFormatSelector();
00036        
00037         virtual StatusCode initialize();
00038 
00039         virtual StatusCode finalize();
00040 
00041         // Required by EventLoopMgr
00042         
00043         virtual StatusCode createContext(Context*& context) const;
00044         
00045         virtual StatusCode next(Context& context) const;
00046         
00047         virtual StatusCode next(Context& context,
00048                                 int jump) const;
00049         
00050         virtual StatusCode createAddress(const Context& context,
00051                                          IOpaqueAddress*& iop) const;
00052         
00053         virtual StatusCode releaseContext(Context*& context) const;
00054         
00055         // Required by ServiceManager
00056         
00057         virtual StatusCode queryInterface(const InterfaceID& id,
00058                                           void** interface);
00059         
00060         // Optional for EventLoopMgr
00061         
00062         virtual StatusCode previous(Context& context) const;
00063         
00064         virtual StatusCode previous(Context& context,
00065                                     int jump) const;
00066         
00067         virtual StatusCode last(Context& context) const;
00068         
00069         virtual StatusCode rewind(Context& context) const;
00070         
00071         virtual StatusCode resetCriteria(const std::string& criteria,
00072                                          Context& context) const;
00073         
00074     private:
00075         
00079         DaqFormatSelector();
00080         
00084         DaqFormatSelector(const DaqFormatSelector& rhs);
00085         
00089         DaqFormatSelector& operator=(const DaqFormatSelector& rhs);
00090 
00094         std::vector<std::string>* m_inputFiles;
00095 
00099         IDaqReadoutSvc* m_daqSvc;
00100 
00101     };
00102     
00103 }
00104 
00105 #endif // DAQFORMATMODULES_DAQFORMATSELECTOR_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:15:31 for DaqFormatModules by doxygen 1.7.4