CMS 3D CMS Logo

Classes | Functions
CTPPSRecord.h File Reference
#include <array>
#include <bitset>
#include <cstdint>
#include <ostream>
#include <string>
#include "DataFormats/OnlineMetaData/interface/OnlineMetaDataRaw.h"
#include "DataFormats/Provenance/interface/Timestamp.h"

Go to the source code of this file.

Classes

class  CTPPSRecord
 Class to contain CTPPS information from soft FED 1022. More...
 

Functions

std::ostream & operator<< (std::ostream &, const CTPPSRecord &)
 Pretty-print operator for CTPPSRecord. More...
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const CTPPSRecord  
)

Pretty-print operator for CTPPSRecord.

Definition at line 27 of file CTPPSRecord.cc.

References mps_fire::i, CTPPSRecord::romanPotName(), alignCSCRings::s, CTPPSRecord::statusName(), CTPPSRecord::timestamp(), and edm::Timestamp::unixTime().

27  {
28  const time_t ts = ctpps.timestamp().unixTime();
29 
30  s << "timeStamp: " << asctime(localtime(&ts));
31  s << "Roman pot states:" << std::endl;
32 
33  for (uint8_t i = 0; i < CTPPSRecord::RomanPot::Last; ++i) {
34  s << " " << std::setw(16) << std::left << ctpps.romanPotName(i) << ": " << ctpps.statusName(i) << std::endl;
35  }
36 
37  return s;
38 }