BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTofDigitizerV Class Reference

#include <BesTofDigitizerV.hh>

+ Inheritance diagram for BesTofDigitizerV:

Public Member Functions

 BesTofDigitizerV ()
 
 ~BesTofDigitizerV ()
 
void Initialize ()
 
virtual void Digitize (ScintSingle *, BesTofDigitsCollection *)
 
 BesTofDigitizerV ()
 
 ~BesTofDigitizerV ()
 
void Initialize ()
 
virtual void Digitize (ScintSingle *, BesTofDigitsCollection *)
 

Protected Attributes

BesTofDigitsCollectionm_besTofDigitsCollection
 
BesTofHitsCollectionm_THC
 
ITofCaliSvcm_tofCaliSvc
 
ITofSimSvcm_tofSimSvc
 
ITofQElecSvcm_tofQElecSvc
 
G4double m_ADC [2]
 
G4double m_TDC [2]
 
G4int m_trackIndex
 
G4double m_globalTime
 

Static Protected Attributes

static bool m_booked = false
 
static NTuple::Tuple * m_tupleTof1 = 0
 
static NTuple::Item< double > m_partId
 
static NTuple::Item< double > m_scinNb
 
static NTuple::Item< double > m_edep
 
static NTuple::Item< double > m_nHits
 
static NTuple::Item< double > m_time1st0
 
static NTuple::Item< double > m_time1st1
 
static NTuple::Item< double > m_timelast0
 
static NTuple::Item< double > m_timelast1
 
static NTuple::Item< double > m_totalPhot0
 
static NTuple::Item< double > m_totalPhot1
 
static NTuple::Item< double > m_NphAllSteps
 
static NTuple::Item< double > m_max0
 
static NTuple::Item< double > m_max1
 
static NTuple::Item< double > m_tdc0
 
static NTuple::Item< double > m_adc0
 
static NTuple::Item< double > m_tdc1
 
static NTuple::Item< double > m_adc1
 
static NTuple::Tuple * m_tupleTof2 = 0
 
static NTuple::Item< double > m_eTotal
 
static NTuple::Item< double > m_nDigi
 
static NTuple::Item< double > m_partIdMPV
 
static NTuple::Item< double > m_scinNbMPV
 
static NTuple::Item< double > m_edepMPV
 
static NTuple::Item< double > m_nDigiOut
 
static NTuple::Tuple * m_tupleTof3 = 0
 
static NTuple::Item< double > m_forb
 
static NTuple::Item< double > m_timeFlight
 
static NTuple::Item< double > m_ddT
 
static NTuple::Item< double > m_scinSwim
 
static NTuple::Item< double > m_scinTime
 
static NTuple::Item< double > m_transitTime
 
static NTuple::Item< double > m_endTime
 
static NTuple::Item< double > m_edepHit
 

Detailed Description

Constructor & Destructor Documentation

◆ BesTofDigitizerV() [1/2]

BesTofDigitizerV::BesTofDigitizerV ( )

Definition at line 83 of file BesTofDigitizerV.cc.

84{
85 IMessageSvc* msgSvc;
86 Gaudi::svcLocator()->service("MessageSvc", msgSvc);
87 MsgStream log(msgSvc, "BesTofDigitizerBrV1");
88
89 ISvcLocator* svcLocator = Gaudi::svcLocator();
90// StatusCode scc = svcLocator->service("TofCaliSvc", m_tofCaliSvc);
91// if (scc == StatusCode::SUCCESS) {
92// log << MSG::INFO << "TofSim Gets TofCaliSvc Service Sucessfully!! " << endreq;
93// }
94// else {
95// log << MSG::ERROR << "TofSim Gets TofCaliSvc Service Failed !! " << endreq;
96// }
97
98 StatusCode sim_scc = svcLocator->service("TofSimSvc", m_tofSimSvc);
99 if (sim_scc == StatusCode::SUCCESS) {
100 log << MSG::INFO << "TofSim Gets TofSimSvc Service Sucessfully!! " << endreq;
101 }
102 else {
103 log << MSG::ERROR << "TofSim Gets TofSimSvc Service Failed !! " << endreq;
104 }
105 StatusCode qelec_scc = svcLocator->service("TofQElecSvc", m_tofQElecSvc);
106 if (qelec_scc == StatusCode::SUCCESS) {
107 log << MSG::INFO << "TofRec Gets tofQElecSvc Sucessfully!! " << endreq;
108 }
109 else {
110 log << MSG::ERROR << "TofRec Gets tofQElecSvc Failed !! " << endreq;
111 }
112
113
114
115 //retrieve G4Svc
116 IG4Svc* tmpSvc;
117 StatusCode sc = svcLocator->service("G4Svc", tmpSvc);
118 m_G4Svc = dynamic_cast<G4Svc *>(tmpSvc);
119
120
121
122 //get Tof Ntuple from G4Svc
123 if (m_G4Svc->TofRootFlag() && (!m_booked))
124 {
125
126
127 m_tupleTof1 = m_G4Svc->GetTupleTof1();
128
129 sc = m_tupleTof1->addItem("partId",m_partId);
130 sc = m_tupleTof1->addItem("scinNb",m_scinNb);
131 sc = m_tupleTof1->addItem("edep",m_edep);
132 sc = m_tupleTof1->addItem("nHits",m_nHits);
133 sc = m_tupleTof1->addItem("time1st0",m_time1st0);
134 sc = m_tupleTof1->addItem("time1st1",m_time1st1);
135 sc = m_tupleTof1->addItem("timelast0",m_timelast0);
136 sc = m_tupleTof1->addItem("timelast1",m_timelast1);
137 sc = m_tupleTof1->addItem("totalPhot0",m_totalPhot0);
138 sc = m_tupleTof1->addItem("totalPhot1",m_totalPhot1);
139 sc = m_tupleTof1->addItem("NphAllSteps",m_NphAllSteps);
140 sc = m_tupleTof1->addItem("max0",m_max0);
141 sc = m_tupleTof1->addItem("max1",m_max1);
142 sc = m_tupleTof1->addItem("tdc0",m_tdc0);
143 sc = m_tupleTof1->addItem("adc0",m_adc0);
144 sc = m_tupleTof1->addItem("tdc1",m_tdc1);
145 sc = m_tupleTof1->addItem("adc1",m_adc1);
146
147
148
149 m_tupleTof2 = m_G4Svc->GetTupleTof2();
150 sc = m_tupleTof2->addItem("eTotal",m_eTotal);
151 sc = m_tupleTof2->addItem("nDigi",m_nDigi);
152 sc = m_tupleTof2->addItem("partIdMPV",m_partIdMPV);
153 sc = m_tupleTof2->addItem("scinNbMPV",m_scinNbMPV);
154 sc = m_tupleTof2->addItem("edepMPV",m_edepMPV);
155 sc = m_tupleTof2->addItem("nDigiOut",m_nDigiOut);
156 sc = m_tupleTof2->addItem("edepPerHit",m_edepHit);
157
158 m_tupleTof3 = m_G4Svc->GetTupleTof3();
159 //sc = m_tupleTof3->addItem("forb",m_forb);
160 sc = m_tupleTof3->addItem("timeFlight",m_timeFlight);
161 sc = m_tupleTof3->addItem("ddT",m_ddT);
162 sc = m_tupleTof3->addItem("scinSwim",m_scinSwim);
163 sc = m_tupleTof3->addItem("scinTime",m_scinTime);
164 sc = m_tupleTof3->addItem("transitTime",m_transitTime);
165 sc = m_tupleTof3->addItem("endTime",m_endTime);
166
167
168 //m_tupleTof4 = m_G4Svc->GetTupleTof4();
169 //sc = m_tupleTof4->addItem("partID",m_partIdmrpc);
170 //sc = m_tupleTof4->addItem("stripidentifier",m_stripidentifier);
171 //sc = m_tupleTof4->addItem("trackindex",m_trackindex);
172 //sc = m_tupleTof4->addItem("signal_pc",m_signal_pc);
173 //sc = m_tupleTof4->addItem("time_threshold",m_time_threshold);
174 //sc = m_tupleTof4->addItem("time_1sthit",m_time_1sthit);
175 //sc = m_tupleTof4->addItem("time_1",m_time_1);
176 //sc = m_tupleTof4->addItem("time_2",m_time_2);
177 //sc = m_tupleTof4->addItem("firedstrip",m_firedstrip);
178 //sc = m_tupleTof4->addItem("numberions",m_numberions);
179
180
181 m_booked = true;
182 }
183
184}
NTuple::Tuple * GetTupleTof3()
NTuple::Tuple * GetTupleTof2()
NTuple::Tuple * GetTupleTof1()

◆ ~BesTofDigitizerV() [1/2]

BesTofDigitizerV::~BesTofDigitizerV ( )

Definition at line 186 of file BesTofDigitizerV.cc.

187{;}

◆ BesTofDigitizerV() [2/2]

BesTofDigitizerV::BesTofDigitizerV ( )

◆ ~BesTofDigitizerV() [2/2]

BesTofDigitizerV::~BesTofDigitizerV ( )

Member Function Documentation

◆ Digitize() [1/2]

◆ Digitize() [2/2]

◆ Initialize() [1/2]

void BesTofDigitizerV::Initialize ( )

◆ Initialize() [2/2]

void BesTofDigitizerV::Initialize ( )

Member Data Documentation

◆ m_ADC

◆ m_adc0

◆ m_adc1

◆ m_besTofDigitsCollection

◆ m_booked

static bool BesTofDigitizerV::m_booked = false
staticprotected

◆ m_ddT

static NTuple::Item< double > BesTofDigitizerV::m_ddT
staticprotected

◆ m_edep

◆ m_edepHit

static NTuple::Item< double > BesTofDigitizerV::m_edepHit
staticprotected

◆ m_edepMPV

static NTuple::Item< double > BesTofDigitizerV::m_edepMPV
staticprotected

◆ m_endTime

static NTuple::Item< double > BesTofDigitizerV::m_endTime
staticprotected

◆ m_eTotal

static NTuple::Item< double > BesTofDigitizerV::m_eTotal
staticprotected

◆ m_forb

static NTuple::Item< double > BesTofDigitizerV::m_forb
staticprotected

◆ m_globalTime

◆ m_max0

◆ m_max1

◆ m_nDigi

static NTuple::Item< double > BesTofDigitizerV::m_nDigi
staticprotected

◆ m_nDigiOut

static NTuple::Item< double > BesTofDigitizerV::m_nDigiOut
staticprotected

◆ m_nHits

◆ m_NphAllSteps

◆ m_partId

◆ m_partIdMPV

static NTuple::Item< double > BesTofDigitizerV::m_partIdMPV
staticprotected

◆ m_scinNb

◆ m_scinNbMPV

static NTuple::Item< double > BesTofDigitizerV::m_scinNbMPV
staticprotected

◆ m_scinSwim

static NTuple::Item< double > BesTofDigitizerV::m_scinSwim
staticprotected

◆ m_scinTime

static NTuple::Item< double > BesTofDigitizerV::m_scinTime
staticprotected

◆ m_TDC

◆ m_tdc0

◆ m_tdc1

◆ m_THC

◆ m_time1st0

static NTuple::Item< double > BesTofDigitizerV::m_time1st0
staticprotected

◆ m_time1st1

static NTuple::Item< double > BesTofDigitizerV::m_time1st1
staticprotected

◆ m_timeFlight

static NTuple::Item< double > BesTofDigitizerV::m_timeFlight
staticprotected

◆ m_timelast0

static NTuple::Item< double > BesTofDigitizerV::m_timelast0
staticprotected

◆ m_timelast1

static NTuple::Item< double > BesTofDigitizerV::m_timelast1
staticprotected

◆ m_tofCaliSvc

◆ m_tofQElecSvc

◆ m_tofSimSvc

◆ m_totalPhot0

static NTuple::Item< double > BesTofDigitizerV::m_totalPhot0
staticprotected

◆ m_totalPhot1

static NTuple::Item< double > BesTofDigitizerV::m_totalPhot1
staticprotected

◆ m_trackIndex

◆ m_transitTime

static NTuple::Item< double > BesTofDigitizerV::m_transitTime
staticprotected

◆ m_tupleTof1

static NTuple::Tuple * BesTofDigitizerV::m_tupleTof1 = 0
staticprotected

◆ m_tupleTof2

static NTuple::Tuple * BesTofDigitizerV::m_tupleTof2 = 0
staticprotected

◆ m_tupleTof3

static NTuple::Tuple * BesTofDigitizerV::m_tupleTof3 = 0
staticprotected

The documentation for this class was generated from the following files: