CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCalibCheck.cxx
Go to the documentation of this file.
1#include "tofcalgsec/TofCalibCheck.h"
2
3TofCalibCheck::TofCalibCheck( NTuple::Tuple*& tuple ):m_tuple(tuple) {
4 if( !m_tuple ) {
5 std::cerr << " Error: invalid pionter in TofCalibCheck(NTuple::Tuple*) for m_tuple " << std::endl;
6 }
7 else {
8 m_tuple->addItem("run", m_run );
9 m_tuple->addItem("event", m_event );
10 m_tuple->addItem("tofid", m_tofid );
11 m_tuple->addItem("qleft", m_q1 );
12 m_tuple->addItem("qright", m_q2 );
13 m_tuple->addItem("tleft", m_t1 );
14 m_tuple->addItem("tright", m_t2 );
15 m_tuple->addItem("zrhit", m_zrhit );
16 m_tuple->addItem("texp", m_texp );
17 m_tuple->addItem("path", m_path );
18 m_tuple->addItem("phi", m_phi );
19 m_tuple->addItem("theta", m_theta );
20 m_tuple->addItem("p", m_p );
21 m_tuple->addItem("t0", m_t0 );
22 m_tuple->addItem("q0", m_q0 );
23 m_tuple->addItem("hitcase", m_hitcase );
24 }
25}
26
27
29 if( m_tuple ) {
30 RecBTofCalHitCol::iterator iter = bhitcol.begin();
31 for( ; iter!=bhitcol.end(); iter++ ) {
32 m_run = (*iter)->run();
33 m_event = (*iter)->event();
34 m_tofid = (*iter)->mod();
35 m_q1 = (*iter)->adc1();
36 m_q2 = (*iter)->adc2();
37 m_t1 = (*iter)->tdc1();
38 m_t2 = (*iter)->tdc2();
39 m_zrhit = (*iter)->zHit();
40 m_texp = (*iter)->tpred();
41 m_path = (*iter)->path();
42 m_phi = (*iter)->deltaPhi();
43 m_theta = (*iter)->sinTheta();
44 m_p = (*iter)->p();
45 m_t0 = -99.0;
46 m_q0 = -99.0;
47 m_hitcase = (*iter)->qual();
48 m_tuple->write();
49 }
50 }
51 return;
52}
53
54
56 if( m_tuple ) {
57 RecETofCalHitCol::iterator iter = ehitcol.begin();
58 for( ; iter!=ehitcol.end(); iter++ ) {
59 m_run = (*iter)->run();
60 m_event = (*iter)->event();
61 m_tofid = (*iter)->mod();
62 m_q1 = (*iter)->adc();
63 m_q2 = -99.0;
64 m_t1 = (*iter)->tdc();
65 m_t2 = -99.0;
66 m_zrhit = (*iter)->rHit();
67 m_texp = (*iter)->tpred();
68 m_path = (*iter)->path();
69 m_phi = (*iter)->deltaPhi();
70 m_theta = (*iter)->cosTheta();
71 m_p = (*iter)->p();
72 m_t0 = -99.0;
73 m_q0 = -99.0;
74 m_hitcase = (*iter)->qual();
75 m_tuple->write();
76 }
77 }
78 return;
79}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
ObjectVector< RecBTofCalHit > RecBTofCalHitCol
ObjectVector< RecETofCalHit > RecETofCalHitCol
TofCalibCheck(NTuple::Tuple *&tuple)
void FillCol(RecBTofCalHitCol &)