13 declareInterface<IJetDecorator>(
this);
21 ATH_MSG_ERROR(
"HIJetSignificanceTool needs to have its input jet container name configured!");
22 return StatusCode::FAILURE;
38 return StatusCode::SUCCESS;
58 int cell_sig_sampling=-1;
63 size_t num =
jet->numConstituents();
64 for(
size_t i = 0; i < num; i++)
71 unsigned int samp_max=CaloSampling::Unknown;
74 double cl_E=cl->altE();
82 significance+=sigma_cl*sigma_cl;
86 samp_max=
static_cast<unsigned int>(m2);
90 sig_tile+=sigma_cl*sigma_cl;
99 if(samp_max!=CaloSampling::Unknown) cell_sig_sampling=samp_max;
104 sig_tile=E_tile/std::sqrt(sig_tile);
107 jetSignificanceDecorHandle(*
jet) = significance;
108 jetCellSignificanceDecorHandle(*
jet) = cell_sig;
109 jetCellSigSamplingDecorHandle(*
jet) = cell_sig_sampling;
110 jetNMaxSigTileDecorHandle(*
jet) = n_sig_max_tile;
111 jetSignificanceTileDecorHandle(*
jet) = sig_tile;
115 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for adding a decoration to an object.
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
Handle class for adding a decoration to an object.
@ CELL_SIGNIFICANCE
Cell significance = E/sig of the cell with the largest |E|/sig.
@ CELL_SIG_SAMPLING
CaloSample of the cell with the largest |E|/sig.
@ SIGNIFICANCE
Cluster significance.
std::string find(const std::string &s)
return a remapped string
Jet_v1 Jet
Definition of the current "jet version".
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
JetContainer_v1 JetContainer
Definition of the current "jet container version".