CMS 3D CMS Logo

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

◆ Type

Enumerator
csc 
dt 
rpc 
omtf 

Definition at line 16 of file OmtfDataWord64.h.

16 { csc = 0xC, dt = 0xD, rpc = 0xE, omtf = 0xF };

Function Documentation

◆ operator<<()

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

Definition at line 4 of file OmtfDataWord64.cc.

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  }

References TauDecayModes::dec, dt, EcalTangentSkim_cfg::o, MillePedeFileConverter_cfg::out, and rpc.

◆ type()

template<typename T >
Type omtf::DataWord64::type ( const T )

◆ type< unsigned int >()

template<>
Type omtf::DataWord64::type< unsigned int > ( const unsigned int &  intType)
inline

Definition at line 24 of file OmtfDataWord64.h.

24  {
25  return static_cast<Type>(intType);
26  }

References reco::method::intType.

◆ type< Word64 >()

template<>
Type omtf::DataWord64::type< Word64 > ( const Word64 data)
inline

Definition at line 20 of file OmtfDataWord64.h.

20  {
21  return static_cast<Type>(data >> 60);
22  }

References data.

EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
dt
float dt
Definition: AMPTWrapper.h:136
csc
Definition: L1Track.h:19
reco::method::intType
Definition: TypeCode.h:16
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
omtf::DataWord64::rpc
Definition: OmtfDataWord64.h:16
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
omtf
Definition: OmtfCscDataWord64.h:7