15#include "CaloEvent/CaloCluster.h"
30 (
const std::string&
type,
31 const std::string& name,
32 const IInterface* parent)
36 "Should energies be written?");
37 declareProperty (
"WriteEta",
m_writeEta =
true,
38 "Should eta values be written?");
39 declareProperty (
"WritePhi",
m_writePhi =
true,
40 "Should phi values be written?");
42 "List of samplings to write (in the range 0-3). "
43 "An empty list means to write everything.");
58 for (
unsigned int i = 0; i <
NEMSAMP; i++)
62 for (
unsigned int i = 0; i <
m_samplings.size(); i++) {
66 return StatusCode::FAILURE;
70 std::ostringstream ename;
71 ename <<
"Es" << samp;
76 std::ostringstream etaname;
77 etaname <<
"etas" << samp;
82 std::ostringstream phiname;
83 phiname <<
"phis" << samp;
88 return StatusCode::SUCCESS;
103 return StatusCode::SUCCESS;
118 return StatusCode::SUCCESS;
131 for (
unsigned int i = 0; i <
m_samplings.size(); i++) {
134 *
m_Es[samp] =
static_cast<float> (p.energyBE (samp));
136 *
m_etas[samp] =
static_cast<float> (p.etaBE (samp));
140 *
m_phis[samp] =
static_cast<float> (p.phiBE (samp));
145 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define CHECK(...)
Evaluate an expression and check for errors.
Principal data class for CaloCell clusters.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Block filler tool for noisy FEB information.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.