ATLAS Offline Software
Loading...
Searching...
No Matches
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$
12
13
14#include "D3PDMakerTest/Obj1.h"
15#include <sstream>
16
17
18namespace 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
static Double_t ss
Test class for D3PD maker.
#define x
float m_f
Definition Obj1.h:51
long long m_ll
Definition Obj1.h:53
unsigned char m_uc
Definition Obj1.h:46
unsigned int m_ui
Definition Obj1.h:50
bool m_b
Definition Obj1.h:55
std::string m_str
Definition Obj1.h:43
short m_s
Definition Obj1.h:47
unsigned long long m_ull
Definition Obj1.h:54
char m_c
Definition Obj1.h:45
unsigned short m_us
Definition Obj1.h:48
Obj2 m_o2
Definition Obj1.h:57
const char * m_cstr
Definition Obj1.h:44
double m_d
Definition Obj1.h:52