Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:18

0001 #include "DataFormats/TCDS/interface/L1aInfo.h"
0002 #include "DataFormats/TCDS/interface/TCDSRaw.h"
0003 
0004 L1aInfo::L1aInfo() : orbitNr_(0), bxid_(0), index_(0), eventType_(0) {}
0005 
0006 L1aInfo::L1aInfo(const tcds::L1aInfo_v1& l1Info)
0007     : orbitNr_(((uint64_t)(l1Info.orbithigh) << 32) | l1Info.orbitlow),
0008       bxid_(l1Info.bxid),
0009       index_(-l1Info.ind0 - 1),
0010       eventType_(l1Info.eventtype) {}
0011 
0012 std::ostream& operator<<(std::ostream& s, const L1aInfo& l1aInfo) {
0013   s << "Index:        " << l1aInfo.getIndex() << std::endl;
0014   s << "   OrbitNr:   " << l1aInfo.getOrbitNr() << std::endl;
0015   s << "   BXID:      " << l1aInfo.getBXID() << std::endl;
0016   s << "   EventType: " << (uint16_t)l1aInfo.getEventType() << std::endl;
0017 
0018   return s;
0019 }