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

In This Package:

ReadoutTriggerDataFrame.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_ReadoutTriggerDataFrame_H
00016 #define ReadoutEvent_ReadoutTriggerDataFrame_H 1
00017 
00018 // Include files
00019 #include "Conventions/Trigger.h"
00020 #include "Event/DaqLtbFrame.h"
00021 #include "Context/TimeStamp.h"
00022 #include "GaudiKernel/boost_allocator.h"
00023 #include <ostream>
00024 
00025 // Forward declarations
00026 
00027 namespace DayaBay 
00028 {
00029 
00030   // Forward declarations
00031   class ReadoutTriggerDataPkg;
00032   class ReadoutRpcTriggerDataFrame;
00033   
00034 
00044   class ReadoutTriggerDataFrame
00045   {
00046   public:
00047 
00049   ReadoutTriggerDataFrame(const DayaBay::ReadoutTriggerDataFrame& rhs);
00050   
00052     ReadoutTriggerDataFrame() : m_package(0),
00053                                 m_seqNumber(0),
00054                                 m_readoutType(0),
00055                                 m_triggerType(),
00056                                 m_triggerTime(0),
00057                                 m_cycle(0),
00058                                 m_nhit(0),
00059                                 m_esumAdc(0),
00060                                 m_esumComp(0),
00061                                 m_crossSource(0),
00062                                 m_isRpc(false) {}
00063   
00065     virtual ~ReadoutTriggerDataFrame() {}
00066   
00068     DaqLtbFrame* daqLtbFrame(const DayaBay::Detector& detector) const;
00069   
00071     const DayaBay::ReadoutRpcTriggerDataFrame* asRpcFrame() const;
00072   
00074     ReadoutTriggerDataFrame& operator=(const DayaBay::ReadoutTriggerDataFrame& rhs);
00075   
00077     std::ostream& fillStream(std::ostream& s) const;
00078   
00081   const DayaBay::ReadoutTriggerDataPkg* package() const;
00082   
00085   void setPackage(DayaBay::ReadoutTriggerDataPkg* value);
00086   
00089   int seqNumber() const;
00090   
00093   void setSeqNumber(int value);
00094   
00097   int readoutType() const;
00098   
00101   void setReadoutType(int value);
00102   
00105   const DayaBay::Trigger::TriggerType_t& triggerType() const;
00106   
00109   void setTriggerType(const DayaBay::Trigger::TriggerType_t& value);
00110   
00113   const TimeStamp& triggerTime() const;
00114   
00117   void setTriggerTime(const TimeStamp& value);
00118   
00121   unsigned int cycle() const;
00122   
00125   void setCycle(unsigned int value);
00126   
00129   int nhit() const;
00130   
00133   void setNhit(int value);
00134   
00137   int esumAdc() const;
00138   
00141   void setEsumAdc(int value);
00142   
00145   int esumComp() const;
00146   
00149   void setEsumComp(int value);
00150   
00153   int crossSource() const;
00154   
00157   void setCrossSource(int value);
00158   
00161   bool isRpc() const;
00162   
00165   void setIsRpc(bool value);
00166   
00167   
00168   #ifndef GOD_NOALLOC
00169 
00170     static void* operator new ( size_t size )
00171     {
00172       return ( sizeof(ReadoutTriggerDataFrame) == size ? 
00173                boost::singleton_pool<ReadoutTriggerDataFrame, sizeof(ReadoutTriggerDataFrame)>::malloc() :
00174                ::operator new(size) );
00175     }
00176   
00180     static void* operator new ( size_t size, void* pObj )
00181     {
00182       return ::operator new (size,pObj);
00183     }
00184   
00186     static void operator delete ( void* p )
00187     {
00188       boost::singleton_pool<ReadoutTriggerDataFrame, sizeof(ReadoutTriggerDataFrame)>::is_from(p) ?
00189       boost::singleton_pool<ReadoutTriggerDataFrame, sizeof(ReadoutTriggerDataFrame)>::free(p) :
00190       ::operator delete(p);
00191     }
00192   
00195     static void operator delete ( void* p, void* pObj )
00196     {
00197       ::operator delete (p, pObj);
00198     }
00199   #endif
00200   protected:
00201 
00202   private:
00203 
00204     DayaBay::ReadoutTriggerDataPkg* m_package;     
00205     int                             m_seqNumber;   
00206     int                             m_readoutType; 
00207     DayaBay::Trigger::TriggerType_t m_triggerType; 
00208     TimeStamp                       m_triggerTime; 
00209     unsigned int                    m_cycle;       
00210     int                             m_nhit;        
00211     int                             m_esumAdc;     
00212     int                             m_esumComp;    
00213     int                             m_crossSource; 
00214     bool                            m_isRpc;       
00215   
00216   }; // class ReadoutTriggerDataFrame
00217 
00218   inline std::ostream& operator<< (std::ostream& str, const ReadoutTriggerDataFrame& obj)
00219   {
00220     return obj.fillStream(str);
00221   }
00222   
00223 } // namespace DayaBay;
00224 
00225 // -----------------------------------------------------------------------------
00226 // end of class
00227 // -----------------------------------------------------------------------------
00228 
00229 // Including forward declarations
00230 #include "ReadoutTriggerDataPkg.h"
00231 #include "ReadoutRpcTriggerDataFrame.h"
00232 
00233 
00234 inline const DayaBay::ReadoutTriggerDataPkg* DayaBay::ReadoutTriggerDataFrame::package() const 
00235 {
00236   return m_package;
00237 }
00238 
00239 inline void DayaBay::ReadoutTriggerDataFrame::setPackage(DayaBay::ReadoutTriggerDataPkg* value) 
00240 {
00241   m_package = value;
00242 }
00243 
00244 inline int DayaBay::ReadoutTriggerDataFrame::seqNumber() const 
00245 {
00246   return m_seqNumber;
00247 }
00248 
00249 inline void DayaBay::ReadoutTriggerDataFrame::setSeqNumber(int value) 
00250 {
00251   m_seqNumber = value;
00252 }
00253 
00254 inline int DayaBay::ReadoutTriggerDataFrame::readoutType() const 
00255 {
00256   return m_readoutType;
00257 }
00258 
00259 inline void DayaBay::ReadoutTriggerDataFrame::setReadoutType(int value) 
00260 {
00261   m_readoutType = value;
00262 }
00263 
00264 inline const DayaBay::Trigger::TriggerType_t& DayaBay::ReadoutTriggerDataFrame::triggerType() const 
00265 {
00266   return m_triggerType;
00267 }
00268 
00269 inline void DayaBay::ReadoutTriggerDataFrame::setTriggerType(const DayaBay::Trigger::TriggerType_t& value) 
00270 {
00271   m_triggerType = value;
00272 }
00273 
00274 inline const TimeStamp& DayaBay::ReadoutTriggerDataFrame::triggerTime() const 
00275 {
00276   return m_triggerTime;
00277 }
00278 
00279 inline void DayaBay::ReadoutTriggerDataFrame::setTriggerTime(const TimeStamp& value) 
00280 {
00281   m_triggerTime = value;
00282 }
00283 
00284 inline unsigned int DayaBay::ReadoutTriggerDataFrame::cycle() const 
00285 {
00286   return m_cycle;
00287 }
00288 
00289 inline void DayaBay::ReadoutTriggerDataFrame::setCycle(unsigned int value) 
00290 {
00291   m_cycle = value;
00292 }
00293 
00294 inline int DayaBay::ReadoutTriggerDataFrame::nhit() const 
00295 {
00296   return m_nhit;
00297 }
00298 
00299 inline void DayaBay::ReadoutTriggerDataFrame::setNhit(int value) 
00300 {
00301   m_nhit = value;
00302 }
00303 
00304 inline int DayaBay::ReadoutTriggerDataFrame::esumAdc() const 
00305 {
00306   return m_esumAdc;
00307 }
00308 
00309 inline void DayaBay::ReadoutTriggerDataFrame::setEsumAdc(int value) 
00310 {
00311   m_esumAdc = value;
00312 }
00313 
00314 inline int DayaBay::ReadoutTriggerDataFrame::esumComp() const 
00315 {
00316   return m_esumComp;
00317 }
00318 
00319 inline void DayaBay::ReadoutTriggerDataFrame::setEsumComp(int value) 
00320 {
00321   m_esumComp = value;
00322 }
00323 
00324 inline int DayaBay::ReadoutTriggerDataFrame::crossSource() const 
00325 {
00326   return m_crossSource;
00327 }
00328 
00329 inline void DayaBay::ReadoutTriggerDataFrame::setCrossSource(int value) 
00330 {
00331   m_crossSource = value;
00332 }
00333 
00334 inline bool DayaBay::ReadoutTriggerDataFrame::isRpc() const 
00335 {
00336   return m_isRpc;
00337 }
00338 
00339 inline void DayaBay::ReadoutTriggerDataFrame::setIsRpc(bool value) 
00340 {
00341   m_isRpc = value;
00342 }
00343 
00344 
00345 #endif ///ReadoutEvent_ReadoutTriggerDataFrame_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