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);
74 edm::LogVerbatim(
"HitStudy") <<
"HcalSimHitDump::Serial # " <<
nevt_ <<
" Run # " <<
e.id().run() <<
" Event # " 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();
95 unsigned int id_ =
hits[
i].id();
110 int side = (
z == 0) ? (-1) : (1);
112 << lay <<
") E " << edep <<
" T " <<
time;
Log< level::Info, true > LogVerbatim
std::vector< PCaloHit > PCaloHitContainer
const std::string g4Label_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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 > &)
#define DEFINE_FWK_MODULE(type)
~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)