From c08e609e8f98451e97b4564859030f161f04e6bb Mon Sep 17 00:00:00 2001 From: tmengel Date: Wed, 5 Mar 2025 16:44:58 -0500 Subject: [PATCH] add tower prefix to rho calculation --- common/HIJetReco.C | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/common/HIJetReco.C b/common/HIJetReco.C index 3c88d2bb8..e2d29b300 100644 --- a/common/HIJetReco.C +++ b/common/HIJetReco.C @@ -179,9 +179,19 @@ void DoRhoCalculation() DetermineTowerRho* towRhoCalc = new DetermineTowerRho(); towRhoCalc -> add_method(TowerRho::Method::AREA); towRhoCalc -> add_method(TowerRho::Method::MULT); - towRhoCalc -> add_tower_input( new TowerJetInput(Jet::CEMC_TOWERINFO_RETOWER) ); - towRhoCalc -> add_tower_input( new TowerJetInput(Jet::HCALIN_TOWERINFO) ); - towRhoCalc -> add_tower_input( new TowerJetInput(Jet::HCALOUT_TOWERINFO) ); + TowerJetInput * rho_incemc = new TowerJetInput(Jet::CEMC_TOWERINFO_RETOWER,HIJETS::tower_prefix); + TowerJetInput * rho_inihcal = new TowerJetInput(Jet::HCALIN_TOWERINFO,HIJETS::tower_prefix); + TowerJetInput * rho_inohcal = new TowerJetInput(Jet::HCALOUT_TOWERINFO,HIJETS::tower_prefix); + if (HIJETS::do_vertex_type) + { + rho_incemc->set_GlobalVertexType(HIJETS::vertex_type); + rho_inihcal->set_GlobalVertexType(HIJETS::vertex_type); + rho_inohcal->set_GlobalVertexType(HIJETS::vertex_type); + } + + towRhoCalc -> add_tower_input( rho_incemc ); + towRhoCalc -> add_tower_input( rho_inihcal ); + towRhoCalc -> add_tower_input( rho_inohcal ); se -> registerSubsystem( towRhoCalc ); // exit back to main macro