ATLAS Offline Software
Obj1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id$
14 #include "D3PDMakerTest/Obj1.h"
15 #include <sstream>
16 
17 
18 namespace D3PDTest {
19 
20 
22  : m_cstr(0),
23  m_c(0),
24  m_uc(0),
25  m_s(0),
26  m_us(0),
27  m_i(0),
28  m_ui(0),
29  m_f(0),
30  m_d(0),
31  m_ll(0),
32  m_ull(0),
33  m_b(0)
34 {
35 }
36 
37 
39  : m_o2 (x + 50)
40 {
41  std::ostringstream ss;
42  ss << x;
43  m_str = ss.str();
44  m_cstr = m_str.c_str();
45 
46  m_c = x;
47  m_uc = x+1;
48  m_s = x+2;
49  m_us = x+3;
50  m_i = x+4;
51  m_ui = x+5;
52  m_f = x+6.5;
53  m_d = x+7.5;
54  m_ll = x+8;
55  m_ull = x+9;
56  m_b = !!x;
57 }
58 
59 
60 } // namespace D3PDTest
D3PDTest::Obj1::m_c
char m_c
Definition: Obj1.h:45
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
D3PDTest::Obj1::m_b
bool m_b
Definition: Obj1.h:55
x
#define x
D3PDTest::Obj1::m_str
std::string m_str
Definition: Obj1.h:43
D3PDTest::Obj1::Obj1
Obj1()
Definition: Obj1.cxx:21
D3PDTest::Obj1::m_us
unsigned short m_us
Definition: Obj1.h:48
D3PDTest::Obj1::m_uc
unsigned char m_uc
Definition: Obj1.h:46
D3PDTest::Obj1::m_ui
unsigned int m_ui
Definition: Obj1.h:50
D3PDTest::Obj1::m_i
int m_i
Definition: Obj1.h:49
D3PDTest::Obj1::m_cstr
const char * m_cstr
Definition: Obj1.h:44
Obj1.h
Test class for D3PD maker.
D3PDTest::Obj1::m_s
short m_s
Definition: Obj1.h:47
D3PDTest::Obj1::m_f
float m_f
Definition: Obj1.h:51
D3PDTest
Definition: MapDumper.h:25
D3PDTest::Obj1::m_ll
long long m_ll
Definition: Obj1.h:53
D3PDTest::Obj1::m_ull
unsigned long long m_ull
Definition: Obj1.h:54
D3PDTest::Obj1::m_d
double m_d
Definition: Obj1.h:52