53 : g4Label_(ps.getParameter<std::
string>(
"ModuleLabel")),
54 hitLab_(ps.getParameter<std::
string>(
"HCCollection")),
55 maxEvent_(ps.getParameter<int>(
"MaxEvent")),
56 testNumber_(ps.getParameter<bool>(
"TestNumber")),
67 desc.
add<
int>(
"MaxEvent", 10);
68 desc.
add<
bool>(
"TestNumber",
true);
69 descriptions.
add(
"hcalSimHitDump", desc);
78 std::vector<PCaloHit> hcHits;
82 std::vector<PCaloHit> caloHits;
83 caloHits.insert(caloHits.end(), hitsCalo->begin(), hitsCalo->end());
84 edm::LogVerbatim(
"HitStudy") <<
"HcalValidation: Hit buffer " << caloHits.size();
92 for (
unsigned int i = 0;
i < hits.size();
i++) {
93 double edep = hits[
i].energy();
94 double time = hits[
i].time();
95 unsigned int id_ = hits[
i].id();
110 int side = (z == 0) ? (-1) : (1);
111 edm::LogVerbatim(
"HitStudy") <<
"[" <<
i <<
"] (" << sub <<
" " << side * eta <<
"," << phi <<
"," << depth <<
","
112 << lay <<
") E " << edep <<
" T " << time;
Log< level::Info, true > LogVerbatim
EventNumber_t event() const
std::vector< PCaloHit > PCaloHitContainer
const edm::EventSetup & c
const std::string g4Label_
#define DEFINE_FWK_MODULE(type)
maxEvent_(ps.getParameter< int >("MaxEvent"))
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
const std::string hitLab_
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
void analyzeHits(std::vector< PCaloHit > &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~HcalSimHitDump() override=default
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< edm::PCaloHitContainer > toks_calo_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
HcalSimHitDump(const edm::ParameterSet &ps)