// // File: CPSClusterData.hpp // Purpose: C++ header file for IOgen generated class // Created: IOgen Script 2.1 11-May-2000 // IMPORTANT: *DO NOT EDIT* This is automatically generated code // and modifications will be overwritten and lost! // #ifndef _L2IO_CPSCLUSTERDATA_HPP #define _L2IO_CPSCLUSTERDATA_HPP // General include files #include #include #include "l2base/L2.hpp" #include "l2base/dataTypes.hpp" #include "l2base/blockTypes.hpp" // Class specific include files namespace l2io_online { //============================================================== // CLASS: CPSClusterData // /// Automatically generated data class. /** Automatically generated data class. Please do not attempt to edit this code as any modifications will be lost when the code generator is next run. @author IOgen Script 2.1 @version 11-May-2000 */ //============================================================== class CPSClusterData { public: /// Constructor to initialize versions. CPSClusterData(void); /** Copy constructor. @param data object used to initialize the class */ CPSClusterData(const CPSClusterData &data); /** Assignment operator. This is functionally the same as the copy constructor. @param data object used to initialize the class */ CPSClusterData &operator=(const CPSClusterData &data); /** Routine to get CPSClusterData's version number. @return CPSClusterData's version number */ uint8 version(void) const; /** Routine to set the CPSClusterData's version number. @param ver CPSClusterData's version number */ void setVersion(const uint8 ver); /** Returns packed size of the object in bytes. This function calculates and returns the packed size of the object in bytes. This bears no relation to the unpacked size which can be found using the 'sizeof' function in C++. @return packed size of object in bytes */ int32 size(void); /** Routine to print out the contents of the object. This routine prints the contents of the object to the given output stream. @param ostr output stream to print to */ void print(std::ostream &ostr) const; /** Routine to print out the contents of the named object. This routine prints the contents of the object to the given stream. This method allows a name to be given to the object to allow distinction between different instances of the same class. @param ostr output stream to print to @param name name of the class instance @param base true if printing as a base class */ void print(std::ostream &ostr,char *name,bool base=false) const; /// I/Ogen ID number for this object. enum {IOGEN_ID = -1}; /// I/O class type for this data class. typedef class CPSClusterIO Packer; /** This routine returns the current value of etaBin. @return current value of etaBin */ uint8 etaBin(void) const; /** This routine sets etaBin to the value given. @param value new value of etaBin */ void setEtaBin(const uint8 value); /** This routine returns the current value of phiBin. @return current value of phiBin */ uint8 phiBin(void) const; /** This routine sets phiBin to the value given. @param value new value of phiBin */ void setPhiBin(const uint8 value); /** This routine returns the current value of extPT. @return current value of extPT */ uint8 extPT(void) const; /** This routine sets extPT to the value given. @param value new value of extPT */ void setExtPT(const uint8 value); /** This routine returns the current value of dummy1. @return current value of dummy1 */ uint8 dummy1(void) const; /** This routine sets dummy1 to the value given. @param value new value of dummy1 */ void setDummy1(const uint8 value); /** This routine returns the current value of CFTTrackTag. @return current value of CFTTrackTag */ uint8 CFTTrackTag(void) const; /** This routine sets CFTTrackTag to the value given. @param value new value of CFTTrackTag */ void setCFTTrackTag(const uint8 value); /** This routine returns the current value of HiLoThresh. @return current value of HiLoThresh */ uint8 HiLoThresh(void) const; /** This routine sets HiLoThresh to the value given. @param value new value of HiLoThresh */ void setHiLoThresh(const uint8 value); /** This routine returns the current value of pTBin. @return current value of pTBin */ uint8 pTBin(void) const; /** This routine sets pTBin to the value given. @param value new value of pTBin */ void setPTBin(const uint8 value); /** This routine returns the current value of dummy2. @return current value of dummy2 */ uint8 dummy2(void) const; /** This routine sets dummy2 to the value given. @param value new value of dummy2 */ void setDummy2(const uint8 value); private: uint8 _etaBin; uint8 _phiBin; uint8 _extPT; uint8 _dummy1; uint8 _CFTTrackTag; uint8 _HiLoThresh; uint8 _pTBin; uint8 _dummy2; /// Version number variable uint8 ver_CPSCluster; }; inline CPSClusterData::CPSClusterData(void) { // Set Version to current value when class created setVersion(1); } inline CPSClusterData::CPSClusterData(const CPSClusterData &data) { *this=data; } // Returns the version number inline uint8 CPSClusterData::version(void) const { return ver_CPSCluster; } // Sets the version number inline void CPSClusterData::setVersion(const uint8 ver) { ver_CPSCluster=ver; } // Returns the packed size of the object inline int32 CPSClusterData::size(void) { return (4); } // Prints the object to the given stream inline void CPSClusterData::print(std::ostream &ostr) const { print(ostr,"N/A"); } // Streaming output wrapper function inline std::ostream &operator<<(std::ostream &ostr, const CPSClusterData &obj) { obj.print(ostr); return ostr; } inline uint8 CPSClusterData::etaBin(void) const { return _etaBin; } inline void CPSClusterData::setEtaBin(const uint8 value) { _etaBin=value; } inline uint8 CPSClusterData::phiBin(void) const { return _phiBin; } inline void CPSClusterData::setPhiBin(const uint8 value) { _phiBin=value; } inline uint8 CPSClusterData::extPT(void) const { return _extPT; } inline void CPSClusterData::setExtPT(const uint8 value) { _extPT=value; } inline uint8 CPSClusterData::dummy1(void) const { return _dummy1; } inline void CPSClusterData::setDummy1(const uint8 value) { _dummy1=value; } inline uint8 CPSClusterData::CFTTrackTag(void) const { return _CFTTrackTag; } inline void CPSClusterData::setCFTTrackTag(const uint8 value) { _CFTTrackTag=value; } inline uint8 CPSClusterData::HiLoThresh(void) const { return _HiLoThresh; } inline void CPSClusterData::setHiLoThresh(const uint8 value) { _HiLoThresh=value; } inline uint8 CPSClusterData::pTBin(void) const { return _pTBin; } inline void CPSClusterData::setPTBin(const uint8 value) { _pTBin=value; } inline uint8 CPSClusterData::dummy2(void) const { return _dummy2; } inline void CPSClusterData::setDummy2(const uint8 value) { _dummy2=value; } } // end namespace l2io_online #endif // _L2IO_CPSCLUSTERDATA_HPP