17 {
18 if ( _ntuple )
19 {
20 NTuplePtr nt1(
ntupleSvc(),
"FILE_KalValid/n101" );
21 StatusCode status;
22 if ( nt1 ) m_nt1 = nt1;
23 else
24 {
25 m_nt1 =
ntupleSvc()->book(
"FILE_KalValid/n101", CLID_ColumnWiseTuple,
"KalFitValid" );
26 if ( m_nt1 )
27 {
28 status = m_nt1->addItem( "stat", 5, 2, m_stat );
29 status = m_nt1->addItem( "ndf", 5, 2, m_ndf );
30 status = m_nt1->addItem( "chisq", 5, 2, m_chisq );
31 status = m_nt1->addItem( "length", 5, m_length );
32 status = m_nt1->addItem( "tof", 5, m_tof );
33 status = m_nt1->addItem( "nhits", 5, m_nhits );
34 status = m_nt1->addItem( "zhelix", 5, m_zhelix );
35 status = m_nt1->addItem( "zhelixe", 5, m_zhelixe );
36 status = m_nt1->addItem( "zhelixmu", 5, m_zhelixmu );
37 status = m_nt1->addItem( "zhelixk", 5, m_zhelixk );
38 status = m_nt1->addItem( "zhelixp", 5, m_zhelixp );
39 status = m_nt1->addItem( "zptot", m_zptot );
40 status = m_nt1->addItem( "zptote", m_zptote );
41 status = m_nt1->addItem( "zptotmu", m_zptotmu );
42 status = m_nt1->addItem( "zptotk", m_zptotk );
43 status = m_nt1->addItem( "zptotp", m_zptotp );
44
45 status = m_nt1->addItem( "zpt", m_zpt );
46 status = m_nt1->addItem( "zpte", m_zpte );
47 status = m_nt1->addItem( "zptmu", m_zptmu );
48 status = m_nt1->addItem( "zptk", m_zptk );
49 status = m_nt1->addItem( "zptp", m_zptp );
50
51 status = m_nt1->addItem( "fptot", m_fptot );
52 status = m_nt1->addItem( "fptote", m_fptote );
53 status = m_nt1->addItem( "fptotmu", m_fptotmu );
54 status = m_nt1->addItem( "fptotk", m_fptotk );
55 status = m_nt1->addItem( "fptotp", m_fptotp );
56 status = m_nt1->addItem( "fpt", m_fpt );
57 status = m_nt1->addItem( "fpte", m_fpte );
58 status = m_nt1->addItem( "fptmu", m_fptmu );
59
60 status = m_nt1->addItem( "fptk", m_fptk );
61 status = m_nt1->addItem( "fptp", m_fptp );
62 status = m_nt1->addItem( "lptot", m_lptot );
63 status = m_nt1->addItem( "lptote", m_lptote );
64 status = m_nt1->addItem( "lptotmu", m_lptotmu );
65 status = m_nt1->addItem( "lptotk", m_lptotk );
66 status = m_nt1->addItem( "lptotp", m_lptotp );
67 status = m_nt1->addItem( "lpt", m_lpt );
68 status = m_nt1->addItem( "lpte", m_lpte );
69 status = m_nt1->addItem( "lptmu", m_lptmu );
70 status = m_nt1->addItem( "lptk", m_lptk );
71 status = m_nt1->addItem( "lptp", m_lptp );
72
73 status = m_nt1->addItem( "zsigp", m_zsigp );
74 status = m_nt1->addItem( "zsigpe", m_zsigpe );
75 status = m_nt1->addItem( "zsigpmu", m_zsigpmu );
76 status = m_nt1->addItem( "zsigpk", m_zsigpk );
77 status = m_nt1->addItem( "zsigpp", m_zsigpp );
78 status = m_nt1->addItem( "fhelix", 5, m_fhelix );
79 status = m_nt1->addItem( "fhelixe", 5, m_fhelixe );
80 status = m_nt1->addItem( "fhelixmu", 5, m_fhelixmu );
81 status = m_nt1->addItem( "fhelixk", 5, m_fhelixk );
82 status = m_nt1->addItem( "fhelixp", 5, m_fhelixp );
83 status = m_nt1->addItem( "lhelix", 5, m_lhelix );
84 status = m_nt1->addItem( "lhelixe", 5, m_lhelixe );
85 status = m_nt1->addItem( "lhelixmu", 5, m_lhelixmu );
86 status = m_nt1->addItem( "lhelixk", 5, m_lhelixk );
87 status = m_nt1->addItem( "lhelixp", 5, m_lhelixp );
88
89 status = m_nt1->addItem( "zerror", 15, m_zerror );
90 status = m_nt1->addItem( "zerrore", 15, m_zerrore );
91 status = m_nt1->addItem( "zerrormu", 15, m_zerrormu );
92 status = m_nt1->addItem( "zerrork", 15, m_zerrork );
93 status = m_nt1->addItem( "zerrorp", 15, m_zerrorp );
94 status = m_nt1->addItem( "ferror", 15, m_ferror );
95 status = m_nt1->addItem( "ferrore", 15, m_ferrore );
96 status = m_nt1->addItem( "ferrormu", 15, m_ferrormu );
97 status = m_nt1->addItem( "ferrork", 15, m_ferrork );
98 status = m_nt1->addItem( "ferrorp", 15, m_ferrorp );
99 status = m_nt1->addItem( "lerror", 15, m_lerror );
100 status = m_nt1->addItem( "lerrore", 15, m_lerrore );
101 status = m_nt1->addItem( "lerrormu", 15, m_lerrormu );
102 status = m_nt1->addItem( "lerrork", 15, m_lerrork );
103 status = m_nt1->addItem( "lerrorp", 15, m_lerrorp );
104
105 if ( status.isFailure() ) cout << "Ntuple m_nt1 add item failed!" << endl;
106 }
107 }
108
109 NTuplePtr nt2(
ntupleSvc(),
"FILE_KalValid/n102" );
110 StatusCode status2;
111 if ( nt2 ) m_nt2 = nt2;
112 else
113 {
114 m_nt2 =
ntupleSvc()->book(
"FILE_KalValid/n102", CLID_ColumnWiseTuple,
"KalFitValid" );
115 if ( m_nt2 )
116 {
117 if ( status2.isFailure() ) cout << "Ntuple2 add item failed!" << endl;
118 }
119 }
120 }
121}