// // File: L1CPSAxialData.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_L1CPSAXIALDATA_HPP #define _L2IO_L1CPSAXIALDATA_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: L1CPSAxialData // /// 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 L1CPSAxialData { public: /// Constructor to initialize versions. L1CPSAxialData(void); /** Copy constructor. @param data object used to initialize the class */ L1CPSAxialData(const L1CPSAxialData &data); /** Assignment operator. This is functionally the same as the copy constructor. @param data object used to initialize the class */ L1CPSAxialData &operator=(const L1CPSAxialData &data); /** Routine to get L1CPSAxialData's version number. @return L1CPSAxialData's version number */ uint8 version(void) const; /** Routine to set the L1CPSAxialData's version number. @param ver L1CPSAxialData'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 L1CPSAxialIO Packer; /** This routine returns the current value of spare. @return current value of spare */ uint32 spare(void) const; /** This routine sets spare to the value given. @param value new value of spare */ void setSpare(const uint32 value); /** This routine returns the current value of multTrackTag. @return current value of multTrackTag */ uint32 multTrackTag(void) const; /** This routine sets multTrackTag to the value given. @param value new value of multTrackTag */ void setMultTrackTag(const uint32 value); /** This routine returns the current value of errorCode. @return current value of errorCode */ uint32 errorCode(void) const; /** This routine sets errorCode to the value given. @param value new value of errorCode */ void setErrorCode(const uint32 value); /** This routine returns the current value of lowPSthresh. @return current value of lowPSthresh */ uint32 lowPSthresh(void) const; /** This routine sets lowPSthresh to the value given. @param value new value of lowPSthresh */ void setLowPSthresh(const uint32 value); /** This routine returns the current value of highPSthres. @return current value of highPSthres */ uint32 highPSthres(void) const; /** This routine sets highPSthres to the value given. @param value new value of highPSthres */ void setHighPSthres(const uint32 value); /** This routine returns the current value of extPT. @return current value of extPT */ uint32 extPT(void) const; /** This routine sets extPT to the value given. @param value new value of extPT */ void setExtPT(const uint32 value); /** This routine returns the current value of pTbin. @return current value of pTbin */ uint32 pTbin(void) const; /** This routine sets pTbin to the value given. @param value new value of pTbin */ void setPTbin(const uint32 value); /** This routine returns the current value of signPT. @return current value of signPT */ uint32 signPT(void) const; /** This routine sets signPT to the value given. @param value new value of signPT */ void setSignPT(const uint32 value); /** This routine returns the current value of clusterSector. @return current value of clusterSector */ uint32 clusterSector(void) const; /** This routine sets clusterSector to the value given. @param value new value of clusterSector */ void setClusterSector(const uint32 value); /** This routine returns the current value of northSouth. @return current value of northSouth */ uint32 northSouth(void) const; /** This routine sets northSouth to the value given. @param value new value of northSouth */ void setNorthSouth(const uint32 value); /** This routine returns the current value of trackTag. @return current value of trackTag */ uint32 trackTag(void) const; /** This routine sets trackTag to the value given. @param value new value of trackTag */ void setTrackTag(const uint32 value); /** This routine returns the current value of clusterWidth. @return current value of clusterWidth */ uint32 clusterWidth(void) const; /** This routine sets clusterWidth to the value given. @param value new value of clusterWidth */ void setClusterWidth(const uint32 value); /** This routine returns the current value of clusterAddress. @return current value of clusterAddress */ uint32 clusterAddress(void) const; /** This routine sets clusterAddress to the value given. @param value new value of clusterAddress */ void setClusterAddress(const uint32 value); private: uint32 _spare; uint32 _multTrackTag; uint32 _errorCode; uint32 _lowPSthresh; uint32 _highPSthres; uint32 _extPT; uint32 _pTbin; uint32 _signPT; uint32 _clusterSector; uint32 _northSouth; uint32 _trackTag; uint32 _clusterWidth; uint32 _clusterAddress; /// Version number variable uint8 ver_L1CPSAxial; }; inline L1CPSAxialData::L1CPSAxialData(void) { // Set Version to current value when class created setVersion(1); } inline L1CPSAxialData::L1CPSAxialData(const L1CPSAxialData &data) { *this=data; } // Returns the version number inline uint8 L1CPSAxialData::version(void) const { return ver_L1CPSAxial; } // Sets the version number inline void L1CPSAxialData::setVersion(const uint8 ver) { ver_L1CPSAxial=ver; } // Returns the packed size of the object inline int32 L1CPSAxialData::size(void) { return (4); } // Prints the object to the given stream inline void L1CPSAxialData::print(std::ostream &ostr) const { print(ostr,"N/A"); } // Streaming output wrapper function inline std::ostream &operator<<(std::ostream &ostr, const L1CPSAxialData &obj) { obj.print(ostr); return ostr; } inline uint32 L1CPSAxialData::spare(void) const { return _spare; } inline void L1CPSAxialData::setSpare(const uint32 value) { _spare=value; } inline uint32 L1CPSAxialData::multTrackTag(void) const { return _multTrackTag; } inline void L1CPSAxialData::setMultTrackTag(const uint32 value) { _multTrackTag=value; } inline uint32 L1CPSAxialData::errorCode(void) const { return _errorCode; } inline void L1CPSAxialData::setErrorCode(const uint32 value) { _errorCode=value; } inline uint32 L1CPSAxialData::lowPSthresh(void) const { return _lowPSthresh; } inline void L1CPSAxialData::setLowPSthresh(const uint32 value) { _lowPSthresh=value; } inline uint32 L1CPSAxialData::highPSthres(void) const { return _highPSthres; } inline void L1CPSAxialData::setHighPSthres(const uint32 value) { _highPSthres=value; } inline uint32 L1CPSAxialData::extPT(void) const { return _extPT; } inline void L1CPSAxialData::setExtPT(const uint32 value) { _extPT=value; } inline uint32 L1CPSAxialData::pTbin(void) const { return _pTbin; } inline void L1CPSAxialData::setPTbin(const uint32 value) { _pTbin=value; } inline uint32 L1CPSAxialData::signPT(void) const { return _signPT; } inline void L1CPSAxialData::setSignPT(const uint32 value) { _signPT=value; } inline uint32 L1CPSAxialData::clusterSector(void) const { return _clusterSector; } inline void L1CPSAxialData::setClusterSector(const uint32 value) { _clusterSector=value; } inline uint32 L1CPSAxialData::northSouth(void) const { return _northSouth; } inline void L1CPSAxialData::setNorthSouth(const uint32 value) { _northSouth=value; } inline uint32 L1CPSAxialData::trackTag(void) const { return _trackTag; } inline void L1CPSAxialData::setTrackTag(const uint32 value) { _trackTag=value; } inline uint32 L1CPSAxialData::clusterWidth(void) const { return _clusterWidth; } inline void L1CPSAxialData::setClusterWidth(const uint32 value) { _clusterWidth=value; } inline uint32 L1CPSAxialData::clusterAddress(void) const { return _clusterAddress; } inline void L1CPSAxialData::setClusterAddress(const uint32 value) { _clusterAddress=value; } } // end namespace l2io_online #endif // _L2IO_L1CPSAXIALDATA_HPP