Skip to content

Commit 44b52ae

Browse files
committed
revert all changes except those in CaloTowerCalib
1 parent 306e9d3 commit 44b52ae

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

offline/packages/CaloReco/CaloTowerCalib.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ int CaloTowerCalib::process_event(PHCompositeNode *topNode)
237237
float calibconst = cdbttree->GetFloatValue(key, m_fieldname);
238238
bool isZS = caloinfo_raw->get_isZS();
239239

240+
if (calibconst <= 0)
241+
{
242+
_calib_towers->get_tower_at_channel(channel)->set_energy(0.0);
243+
_calib_towers->get_tower_at_channel(channel)->set_isNoCalib(true);
244+
continue;
245+
}
246+
240247
if (isZS && m_doZScrosscalib)
241248
{
242249
float crosscalibconst = cdbttree_ZScrosscalib->GetFloatValue(key, m_fieldname_ZScrosscalib);
@@ -250,11 +257,6 @@ int CaloTowerCalib::process_event(PHCompositeNode *topNode)
250257
{
251258
_calib_towers->get_tower_at_channel(channel)->set_energy(raw_amplitude * calibconst);
252259
}
253-
254-
if (calibconst == 0)
255-
{
256-
_calib_towers->get_tower_at_channel(channel)->set_isNoCalib(true);
257-
}
258260
if(m_dotimecalib)
259261
{
260262
//timing is not useful for ZS towers

0 commit comments

Comments
 (0)