Skip to content

Commit fa4e3e9

Browse files
Michael CarriganMichael Carrigan
authored andcommitted
first commit
1 parent e8cc2fa commit fa4e3e9

4 files changed

Lines changed: 14 additions & 1 deletion

File tree

icaruscode/TPC/Calorimetry/NormalizeDriftSQLite_tool.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,11 @@ double icarus::calo::NormalizeDriftSQLite::Normalize(double dQdx, const art::Eve
142142
// Get the hit time
143143
double thit = fClockData->TPCTick2TrigTime(hit.PeakTime()) - t0;
144144

145+
//std::cout << "TPC Tick2TrigTime: " << fClockData->TPCTick2TrigTime(hit.PeakTime()) << ", t0: " << t0 << ", hit: " << hit.PeakTime() << std::endl;
146+
145147
if (fVerbose) std::cout << "NormalizeDriftSQLite Tool -- Norm factor: " << exp(thit / thiselifetime) << " at TPC: " << tpc << " Cryo: " << cryo << " Time: " << thit << " Track T0: " << t0 << std::endl;
146148

149+
//std::cout << "dQdx before: " << dQdx << ", dQdx after: " << dQdx*exp(thit / thiselifetime) << ", thit: " << thit << ", lifetime: " << thiselifetime << std::endl;
147150
// Scale
148151
if (thiselifetime > 0) {
149152
dQdx = dQdx*exp(thit / thiselifetime);

icaruscode/TPC/Calorimetry/NormalizeTPCPerPlaneSQL_tool.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ double icarus::calo::NormalizeTPCPerPlaneSQL::Normalize(double dQdx, const art::
117117
case 4:
118118
runID = 12960;
119119
break;
120+
case 5:
121+
runID = 14079;
122+
break;
120123
default:
121124
runID = e.id().runID().run();
122125
break;

icaruscode/TPC/Calorimetry/NormalizeYZSQL_tool.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ void icarus::calo::NormalizeYZSQL::configure(const fhicl::ParameterSet& pset) {}
163163

164164
const icarus::calo::NormalizeYZSQL::ScaleInfo& icarus::calo::NormalizeYZSQL::GetScaleInfo(uint64_t run) {
165165

166+
//std::cout << "NormalizeYZSQL Tool -- Getting scale info for run: " << run << std::endl;
167+
166168
// check the cache
167169
if (fScaleInfos.count(run)) {
168170
return fScaleInfos.at(run);
@@ -232,6 +234,8 @@ const icarus::calo::NormalizeYZSQL::ScaleInfo& icarus::calo::NormalizeYZSQL::Get
232234
double icarus::calo::NormalizeYZSQL::Normalize(double dQdx, const art::Event &e,
233235
const recob::Hit &hit, const geo::Point_t &location, const geo::Vector_t &direction, double t0) {
234236

237+
//std::cout << "NormalizeYZSQL Tool -- MC Flag: " << fMC << " Run: " << e.id().runID().run() << ", Subrun: " << e.id().subRunID().run() << std::endl;
238+
235239
// Get the info
236240
uint64_t runID = -1;
237241
switch (fMC) {
@@ -247,6 +251,9 @@ double icarus::calo::NormalizeYZSQL::Normalize(double dQdx, const art::Event &e,
247251
case 4:
248252
runID = 12960;
249253
break;
254+
case 5:
255+
runID = 14079;
256+
break;
250257
default:
251258
runID = e.id().runID().run();
252259
break;

icaruscode/TPC/Calorimetry/normtools_icarus.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ driftnorm_sql: {
3434
tool_type: NormalizeDriftSQLite
3535
DBFileName: tpc_elifetime_data
3636
DBTag: @local::ICARUS_Calibration_GlobalTags.tpc_elifetime_data
37-
Verbose: false
37+
Verbose: true
3838
}
3939

4040
tpcgain_sql: {

0 commit comments

Comments
 (0)