CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Enumerations | Functions
omtf::DataWord64 Namespace Reference

Enumerations

enum  Type { csc = 0xC, dt = 0xD, rpc = 0xE, omtf = 0xF }
 

Functions

std::ostream & operator<< (std::ostream &out, const Type &o)
 
template<typename T >
Type type (const T &)
 
template<>
Type type< unsigned int > (const unsigned int &intType)
 
template<>
Type type< Word64 > (const Word64 &data)
 

Enumeration Type Documentation

Enumerator
csc 
dt 
rpc 
omtf 

Definition at line 16 of file OmtfDataWord64.h.

Function Documentation

std::ostream & omtf::DataWord64::operator<< ( std::ostream &  out,
const Type &  o 
)

Definition at line 4 of file OmtfDataWord64.cc.

References csc, TauDecayModes::dec, dt, class-composition::o, omtf, submitPVResolutionJobs::out, and rpc.

4  {
5  switch (o) {
6  case (csc):
7  out << "csc ";
8  break;
9  case (rpc):
10  out << "rpc ";
11  break;
12  case (dt):
13  out << "dt ";
14  break;
15  case (omtf):
16  out << "omtf";
17  break;
18  default:
19  out << "unkn";
20  break;
21  }
22  out << "(0x" << std::hex << static_cast<int>(o) << std::dec << ")";
23  return out;
24  }
float dt
Definition: AMPTWrapper.h:136
template<typename T >
Type omtf::DataWord64::type ( const T )
template<>
Type omtf::DataWord64::type< unsigned int > ( const unsigned int &  intType)
inline

Definition at line 24 of file OmtfDataWord64.h.

References reco::method::intType.

24  {
25  return static_cast<Type>(intType);
26  }
template<>
Type omtf::DataWord64::type< Word64 > ( const Word64 data)
inline

Definition at line 20 of file OmtfDataWord64.h.

References data.

20  {
21  return static_cast<Type>(data >> 60);
22  }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79