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