Skip to content

Commit

Permalink
Merge pull request #699 from SBNSoftware/feature/jskim_UseRunNumForTP…
Browse files Browse the repository at this point in the history
…CCalib

Use run number for TPC calibration
  • Loading branch information
mmrosenberg authored Mar 11, 2024
2 parents 15116e0 + 2566732 commit e56097f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion icaruscode/TPC/Calorimetry/NormalizeTPCSQL_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ icarus::calo::NormalizeTPCSQL::ScaleInfo icarus::calo::NormalizeTPCSQL::GetScale
double icarus::calo::NormalizeTPCSQL::Normalize(double dQdx, const art::Event &e,
const recob::Hit &hit, const geo::Point_t &location, const geo::Vector_t &direction, double t0) {
// Get the info
ScaleInfo i = GetScaleInfo(e.time().timeHigh());
ScaleInfo i = GetScaleInfo(e.id().runID().run());

// Lookup the TPC, cryo
unsigned tpc = hit.WireID().TPC;
Expand Down
2 changes: 1 addition & 1 deletion icaruscode/TPC/Calorimetry/NormalizeYZSQL_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const icarus::calo::NormalizeYZSQL::ScaleInfo& icarus::calo::NormalizeYZSQL::Get
double icarus::calo::NormalizeYZSQL::Normalize(double dQdx, const art::Event &e,
const recob::Hit &hit, const geo::Point_t &location, const geo::Vector_t &direction, double t0) {
// Get the info
ScaleInfo const& i = GetScaleInfo(e.time().timeHigh());
ScaleInfo const& i = GetScaleInfo(e.id().runID().run());

// compute itpc
int cryo = hit.WireID().Cryostat;
Expand Down
4 changes: 2 additions & 2 deletions icaruscode/TPC/Calorimetry/normtools_icarus.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ yznorm_sql: {
Verbose: false
}

icarus_calonormtools: [@local::driftnorm, @local::yznorm, @local::tpcgain]
# icarus_calonormtools: [@local::driftnorm_sql, @local::yznorm_sql, @local::tpcgain_sql]
#icarus_calonormtools: [@local::driftnorm, @local::yznorm, @local::tpcgain]
icarus_calonormtools: [@local::driftnorm_sql, @local::yznorm_sql, @local::tpcgain_sql]

# Gain with angular dep. recombination
# Assume equal on planes -- this is __wrong__ -- will need to be fixed when they are calibrated
Expand Down

0 comments on commit e56097f

Please sign in to comment.