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

In This Package:

ReadoutTriggerDataPkg.h
Go to the documentation of this file.
00001 
00002 //   **************************************************************************
00003 //   *                                                                        *
00004 //   *                      ! ! ! A T T E N T I O N ! ! !                     *
00005 //   *                                                                        *
00006 //   *  This file was created automatically by GaudiObjDesc, please do not    *
00007 //   *  delete it or edit it by hand.                                         *
00008 //   *                                                                        *
00009 //   *  If you want to change this file, first change the corresponding       *
00010 //   *  xml-file and rerun the tools from GaudiObjDesc (or run make if you    *
00011 //   *  are using it from inside a Gaudi-package).                            *
00012 //   *                                                                        *
00013 //   **************************************************************************
00014 
00015 #ifndef ReadoutEvent_ReadoutTriggerDataPkg_H
00016 #define ReadoutEvent_ReadoutTriggerDataPkg_H 1
00017 
00018 // Include files
00019 #include "Conventions/Detectors.h"
00020 #include "Event/DaqLtb.h"
00021 #include "Event/DaqRtm.h"
00022 #include "GaudiKernel/boost_allocator.h"
00023 #include <vector>
00024 #include <ostream>
00025 
00026 // Forward declarations
00027 
00028 namespace DayaBay 
00029 {
00030 
00031   // Forward declarations
00032   class Readout;
00033   class ReadoutTriggerDataFrame;
00034   
00035 
00045   class ReadoutTriggerDataPkg
00046   {
00047   public:
00048 
00050     typedef std::vector<DayaBay::ReadoutTriggerDataFrame*> TriggerFrameCollection;
00051   
00053   ReadoutTriggerDataPkg(const DayaBay::ReadoutTriggerDataPkg& rhs);
00054   
00056     ReadoutTriggerDataPkg() : m_frames(),
00057                               m_readout(0),
00058                               m_detector(0),
00059                               m_trigNumber(0),
00060                               m_numSubTriggers(0),
00061                               m_boardStatus(0),
00062                               m_localSN(0) {}
00063   
00065   ~ReadoutTriggerDataPkg();
00066   
00068     void addFrame(DayaBay::ReadoutTriggerDataFrame* tdf);
00069   
00071     DaqLtb* daqLtb() const;
00072   
00074     DaqRtm* daqRtm() const;
00075   
00077     ReadoutTriggerDataPkg& operator=(const DayaBay::ReadoutTriggerDataPkg& rhs);
00078   
00080     std::ostream& fillStream(std::ostream& s) const;
00081   
00084   const TriggerFrameCollection& frames() const;
00085   
00088   void setFrames(const TriggerFrameCollection& value);
00089   
00092   const DayaBay::Readout* readout() const;
00093   
00096   void setReadout(DayaBay::Readout* value);
00097   
00100   const DayaBay::Detector& detector() const;
00101   
00104   void setDetector(const DayaBay::Detector& value);
00105   
00108   int trigNumber() const;
00109   
00112   void setTrigNumber(int value);
00113   
00116   int numSubTriggers() const;
00117   
00120   void setNumSubTriggers(int value);
00121   
00124   int boardStatus() const;
00125   
00128   void setBoardStatus(int value);
00129   
00132   int localSN() const;
00133   
00136   void setLocalSN(int value);
00137   
00138   
00139   #ifndef GOD_NOALLOC
00140 
00141     static void* operator new ( size_t size )
00142     {
00143       return ( sizeof(ReadoutTriggerDataPkg) == size ? 
00144                boost::singleton_pool<ReadoutTriggerDataPkg, sizeof(ReadoutTriggerDataPkg)>::malloc() :
00145                ::operator new(size) );
00146     }
00147   
00151     static void* operator new ( size_t size, void* pObj )
00152     {
00153       return ::operator new (size,pObj);
00154     }
00155   
00157     static void operator delete ( void* p )
00158     {
00159       boost::singleton_pool<ReadoutTriggerDataPkg, sizeof(ReadoutTriggerDataPkg)>::is_from(p) ?
00160       boost::singleton_pool<ReadoutTriggerDataPkg, sizeof(ReadoutTriggerDataPkg)>::free(p) :
00161       ::operator delete(p);
00162     }
00163   
00166     static void operator delete ( void* p, void* pObj )
00167     {
00168       ::operator delete (p, pObj);
00169     }
00170   #endif
00171   protected:
00172 
00173   private:
00174 
00175     TriggerFrameCollection m_frames;         
00176     DayaBay::Readout*      m_readout;        
00177     DayaBay::Detector      m_detector;       
00178     int                    m_trigNumber;     
00179     int                    m_numSubTriggers; 
00180     int                    m_boardStatus;    
00181     int                    m_localSN;        
00182   
00183   }; // class ReadoutTriggerDataPkg
00184 
00185   inline std::ostream& operator<< (std::ostream& str, const ReadoutTriggerDataPkg& obj)
00186   {
00187     return obj.fillStream(str);
00188   }
00189   
00190 } // namespace DayaBay;
00191 
00192 // -----------------------------------------------------------------------------
00193 // end of class
00194 // -----------------------------------------------------------------------------
00195 
00196 // Including forward declarations
00197 #include "Readout.h"
00198 #include "ReadoutTriggerDataFrame.h"
00199 
00200 
00201 inline const DayaBay::ReadoutTriggerDataPkg::TriggerFrameCollection& DayaBay::ReadoutTriggerDataPkg::frames() const 
00202 {
00203   return m_frames;
00204 }
00205 
00206 inline void DayaBay::ReadoutTriggerDataPkg::setFrames(const TriggerFrameCollection& value) 
00207 {
00208   m_frames = value;
00209 }
00210 
00211 inline const DayaBay::Readout* DayaBay::ReadoutTriggerDataPkg::readout() const 
00212 {
00213   return m_readout;
00214 }
00215 
00216 inline void DayaBay::ReadoutTriggerDataPkg::setReadout(DayaBay::Readout* value) 
00217 {
00218   m_readout = value;
00219 }
00220 
00221 inline const DayaBay::Detector& DayaBay::ReadoutTriggerDataPkg::detector() const 
00222 {
00223   return m_detector;
00224 }
00225 
00226 inline void DayaBay::ReadoutTriggerDataPkg::setDetector(const DayaBay::Detector& value) 
00227 {
00228   m_detector = value;
00229 }
00230 
00231 inline int DayaBay::ReadoutTriggerDataPkg::trigNumber() const 
00232 {
00233   return m_trigNumber;
00234 }
00235 
00236 inline void DayaBay::ReadoutTriggerDataPkg::setTrigNumber(int value) 
00237 {
00238   m_trigNumber = value;
00239 }
00240 
00241 inline int DayaBay::ReadoutTriggerDataPkg::numSubTriggers() const 
00242 {
00243   return m_numSubTriggers;
00244 }
00245 
00246 inline void DayaBay::ReadoutTriggerDataPkg::setNumSubTriggers(int value) 
00247 {
00248   m_numSubTriggers = value;
00249 }
00250 
00251 inline int DayaBay::ReadoutTriggerDataPkg::boardStatus() const 
00252 {
00253   return m_boardStatus;
00254 }
00255 
00256 inline void DayaBay::ReadoutTriggerDataPkg::setBoardStatus(int value) 
00257 {
00258   m_boardStatus = value;
00259 }
00260 
00261 inline int DayaBay::ReadoutTriggerDataPkg::localSN() const 
00262 {
00263   return m_localSN;
00264 }
00265 
00266 inline void DayaBay::ReadoutTriggerDataPkg::setLocalSN(int value) 
00267 {
00268   m_localSN = value;
00269 }
00270 
00271 
00272 #endif ///ReadoutEvent_ReadoutTriggerDataPkg_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:01:16 for ReadoutEvent by doxygen 1.7.4