Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:49

0001 #ifndef DATAFORMATS_ONLINEMETADATA_ONLINEMETADATARAW_H
0002 #define DATAFORMATS_ONLINEMETADATA_ONLINEMETADATARAW_H
0003 
0004 //---------------------------------------------------------------------------
0005 //!  \class OnlineMetaDataRaw
0006 //!  \brief Structure of raw data from soft FED 1022
0007 //!
0008 //!  \author Remi Mommsen - Fermilab
0009 //---------------------------------------------------------------------------
0010 
0011 #include <cstdint>
0012 
0013 namespace online {
0014 
0015   struct Luminosity_v1 {
0016     const uint64_t timestamp;
0017     const uint16_t lumiSection;
0018     const uint16_t lumiNibble;
0019     const float instLumi;
0020     const float avgPileUp;
0021   };
0022 
0023   struct BeamSpot_v1 {
0024     const uint64_t timestamp;
0025     const float x;
0026     const float y;
0027     const float z;
0028     const float dxdz;
0029     const float dydz;
0030     const float errX;
0031     const float errY;
0032     const float errZ;
0033     const float errDxdz;
0034     const float errDydz;
0035     const float widthX;
0036     const float widthY;
0037     const float sigmaZ;
0038     const float errWidthX;
0039     const float errWidthY;
0040     const float errSigmaZ;
0041   };
0042 
0043   struct CTPPS_v1 {
0044     uint64_t timestamp;
0045     uint64_t status;
0046   };
0047 
0048   struct DCS_v1 {
0049     const uint64_t timestamp;
0050     const uint32_t highVoltageReady;
0051     const float magnetCurrent;
0052   };
0053 
0054   struct DCS_v2 {
0055     const uint64_t timestamp;
0056     const uint32_t highVoltageReady;
0057     const uint32_t highVoltageValid;
0058     const float magnetCurrent;
0059   };
0060 
0061   struct Data_v1 {
0062     const uint8_t version;
0063     const Luminosity_v1 luminosity;
0064     const BeamSpot_v1 beamSpot;
0065     const DCS_v1 dcs;
0066   };
0067 
0068   struct Data_v2 {
0069     const uint8_t version;
0070     const Luminosity_v1 luminosity;
0071     const BeamSpot_v1 beamSpot;
0072     const CTPPS_v1 ctpps;
0073     const DCS_v1 dcs;
0074   };
0075 
0076   struct Data_v3 {
0077     const uint8_t version;
0078     const Luminosity_v1 luminosity;
0079     const BeamSpot_v1 beamSpot;
0080     const CTPPS_v1 ctpps;
0081     const DCS_v2 dcs;
0082   };
0083 
0084 }  // namespace online
0085 
0086 #endif  // DATAFORMATS_ONLINEMETADATA_ONLINEMETADATARAW_H