CMS 3D CMS Logo

OmtfDataWord64.h
Go to the documentation of this file.
1 #ifndef DataFormat_L1TMuon_Omtf_DataWord64_H
2 #define DataFormat_L1TMuon_Omtf_DataWord64_H
3 
4 #include<cstdint>
5 #include<iostream>
6 #include<vector>
7 #include<map>
8 
9 namespace omtf {
10 
11 typedef uint64_t Word64;
12 
13 typedef std::map< std::pair<unsigned int, unsigned int>, std::vector<Word64> > FedAmcRawsMap;
14 
15 namespace DataWord64 {
16  enum Type { csc=0xC, dt= 0xD, rpc=0xE, omtf=0xF };
17  template <typename T> Type type(const T&);
18  template<> inline Type type<Word64>(const Word64 & data) { return static_cast<Type> (data>>60); }
19  template<> inline Type type<unsigned int>(const unsigned int & intType) { return static_cast<Type> (intType); }
20  std::ostream & operator<< (std::ostream &out, const Type &o);
21 };
22 
23 } //namespace Omtf
24 #endif
type
Definition: HCALResponse.h:21
std::map< std::pair< unsigned int, unsigned int >, std::vector< Word64 > > FedAmcRawsMap
std::ostream & operator<<(std::ostream &out, const Type &o)
Type type(const T &)
Definition: L1Track.h:19
uint64_t Word64
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
long double T