File tree Expand file tree Collapse file tree
offline/packages/CaloReco Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments