// // File: L1CPSAxialData.cpp // Purpose: C++ source 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! // // General include files // Include Data class header #include "l2io/online/L1CPSAxialData.hpp" namespace l2io_online { // Assignment operator L1CPSAxialData &L1CPSAxialData::operator=(const L1CPSAxialData &data) { setVersion(data.version()); setSpare(data.spare()); setMultTrackTag(data.multTrackTag()); setErrorCode(data.errorCode()); setLowPSthresh(data.lowPSthresh()); setHighPSthres(data.highPSthres()); setExtPT(data.extPT()); setPTbin(data.pTbin()); setSignPT(data.signPT()); setClusterSector(data.clusterSector()); setNorthSouth(data.northSouth()); setTrackTag(data.trackTag()); setClusterWidth(data.clusterWidth()); setClusterAddress(data.clusterAddress()); return *this; } // Function which prints L1CPSAxialData to a stream void L1CPSAxialData::print(std::ostream &ostr, char *name,bool base) const { if(base) { ostr << "|---------------------------------------------------------------------------|" << std::endl; ostr << "| From base class : " << std::setw(20) << "L1CPSAxial" << std::setw(1) << " Version : " << std::setw(3) << (int32)L1CPSAxialData::version() << std::setw(1) << " |" << std::endl; } else { ostr << "=============================================================================" << std::endl; ostr << "| I/Ogen class : " << std::setw(20) << name << std::setw(1); ostr << " Type : " << std::setw(24) << "L1CPSAxialData"; ostr << std::setw(1) << " V:" << std::setw(3); ostr << (int32)version() << std::setw(1) << " |" << std::endl; ostr << "=============================================================================" << std::endl; } ostr << "| " << " spare =" << std::setw(11) << spare() << std::setw(1)<< " " << " multTrackTag =" << std::setw(11) << multTrackTag() << std::setw(1)<< " |" << std::endl; ostr << "| " << " errorCode =" << std::setw(11) << errorCode() << std::setw(1)<< " " << " lowPSthresh =" << std::setw(11) << lowPSthresh() << std::setw(1)<< " |" << std::endl; ostr << "| " << " highPSthres =" << std::setw(11) << highPSthres() << std::setw(1)<< " " << " extPT =" << std::setw(11) << extPT() << std::setw(1)<< " |" << std::endl; ostr << "| " << " pTbin =" << std::setw(11) << pTbin() << std::setw(1)<< " " << " signPT =" << std::setw(11) << signPT() << std::setw(1)<< " |" << std::endl; ostr << "| " << " clusterSector =" << std::setw(11) << clusterSector() << std::setw(1)<< " " << " northSouth =" << std::setw(11) << northSouth() << std::setw(1)<< " |" << std::endl; ostr << "| " << " trackTag =" << std::setw(11) << trackTag() << std::setw(1)<< " " << " clusterWidth =" << std::setw(11) << clusterWidth() << std::setw(1)<< " |" << std::endl; ostr << "| " << " clusterAddress =" << std::setw(11) << clusterAddress() << std::setw(1)<< " " << " |" << std::endl; if(!base) { ostr << "=============================================================================" << std::endl; } } } // end namespace l2io_online