Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:59

0001 #ifndef CSCChamberTimeCorrections_h
0002 #define CSCChamberTimeCorrections_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <iosfwd>
0007 #include <vector>
0008 
0009 class CSCChamberTimeCorrections {
0010 public:
0011   CSCChamberTimeCorrections() {}
0012   ~CSCChamberTimeCorrections() {}
0013 
0014   struct ChamberTimeCorrections {
0015     short int cfeb_length;
0016     char cfeb_rev;
0017     short int alct_length;
0018     char alct_rev;
0019     short int cfeb_tmb_skew_delay;
0020     short int cfeb_timing_corr;
0021     short int cfeb_cable_delay;
0022     short int anode_bx_offset;
0023 
0024     COND_SERIALIZABLE;
0025   };
0026   int factor_precision;
0027 
0028   enum factors { FCORR = 100 };
0029 
0030   typedef std::vector<ChamberTimeCorrections> ChamberContainer;
0031   ChamberContainer chamberCorrections;
0032 
0033   const ChamberTimeCorrections& item(int index) const { return chamberCorrections[index]; }
0034   int precision() const { return factor_precision; }
0035 
0036   COND_SERIALIZABLE;
0037 };
0038 
0039 std::ostream& operator<<(std::ostream& os, const CSCChamberTimeCorrections& cscdb);
0040 
0041 #endif