Skip to content
Snippets Groups Projects

implemented mu-dependent menu of PhotonID

212+ files
+ 56023
19880
Compare changes
  • Side-by-side
  • Inline
Files
212+
@@ -219,7 +219,10 @@ void CaloCellPacker_400_500::pack_time
@@ -219,7 +219,10 @@ void CaloCellPacker_400_500::pack_time
CaloCompactCell::value_type data = pars.m_logat_field.in (ltime);
CaloCompactCell::value_type data = pars.m_logat_field.in (ltime);
// Set the sign bit.
// Set the sign bit.
if ( time < 0 )
// Only set the sign bit if saved value is non-zero.
 
// Otherwise, it'll be read as zero regardless, and if we write
 
// again, the sign bit'll be different.
 
if ( time < 0 && data != 0 )
data |= pars.m_tsign_mask;
data |= pars.m_tsign_mask;
// Fill output.
// Fill output.
@@ -294,15 +297,19 @@ void CaloCellPacker_400_500::pack_lar
@@ -294,15 +297,19 @@ void CaloCellPacker_400_500::pack_lar
// Pack the energy, gain, and quality into the output word.
// Pack the energy, gain, and quality into the output word.
double crtae = cbrt(fabs(energy));
double crtae = cbrt(fabs(energy));
CaloCompactCell::value_type data =
CaloCompactCell::value_type data =
pars.m_egain_field.in (gainflag) |
pars.m_qualy_field.in (qualflag) |
(cbrt_flag ? pars.m_crtae_high_field.in (crtae)
(cbrt_flag ? pars.m_crtae_high_field.in (crtae)
: pars.m_crtae_norm_field.in (crtae));
: pars.m_crtae_norm_field.in (crtae));
// Set the sign bit.
// Set the sign bit.
if (energy < 0)
// Only set the sign bit if saved value is non-zero.
 
// Otherwise, it'll be read as zero regardless, and if we write
 
// again, the sign bit'll be different.
 
if (energy < 0 && data != 0)
data |= pars.m_esign_mask;
data |= pars.m_esign_mask;
 
data |= pars.m_egain_field.in (gainflag) |
 
pars.m_qualy_field.in (qualflag);
 
if (data == pars.m_lar_dummy)
if (data == pars.m_lar_dummy)
data = pars.m_lar_dummy_subst;
data = pars.m_lar_dummy_subst;
@@ -371,15 +378,18 @@ void CaloCellPacker_400_500::pack_tile
@@ -371,15 +378,18 @@ void CaloCellPacker_400_500::pack_tile
else
else
data = pars.m_crtae_tile_low_field.in (crtae);
data = pars.m_crtae_tile_low_field.in (crtae);
 
// Add the sign bit.
 
// Only set the sign bit if saved value is non-zero.
 
// Otherwise, it'll be read as zero regardless, and if we write
 
// again, the sign bit'll be different.
 
if (ene[ipmt] < 0 && data != 0)
 
data |= pars.m_esign_tile_mask;
 
// Add in the gain and quality.
// Add in the gain and quality.
data |=
data |=
pars.m_egain_tile_field.in (gain[ipmt]) |
pars.m_egain_tile_field.in (gain[ipmt]) |
pars.m_qualy_field.in (qualflag);
pars.m_qualy_field.in (qualflag);
// Add the sign bit.
if (ene[ipmt] < 0)
data |= pars.m_esign_tile_mask;
if (data == pars.m_tile_dummy)
if (data == pars.m_tile_dummy)
data = pars.m_tile_dummy_subst;
data = pars.m_tile_dummy_subst;
}
}
Loading