55 : g4Label_(ps.getUntrackedParameter<
std::
string>(
"moduleLabel",
"g4SimHits")),
56 hitLab_(ps.getUntrackedParameter<
std::
string>(
"hcCollection",
"HcalHits")),
57 testN_(ps.getUntrackedParameter<
bool>(
"testNumbering",
false)),
58 dumpHits_(ps.getUntrackedParameter<
bool>(
"dumpHits",
false)),
59 maxEvent_(ps.getUntrackedParameter<
int>(
"maxEvent", 100)),
68 <<
" MaxEvent: " <<
maxEvent_ <<
" Numbering scheme: " <<
testN_ <<
" (0 normal; 1 test)";
75 desc.addUntracked<
bool>(
"testNumbering",
false);
76 desc.addUntracked<
bool>(
"dumpHits",
false);
77 desc.addUntracked<
int>(
"maxEvent", 100);
78 descriptions.
add(
"hcalTestSimHitID",
desc);
83 edm::LogVerbatim(
"HcalSim") <<
"HcalTestSimHitID::Serial # " <<
nevt_ <<
" Run # " <<
e.id().run() <<
" Event # " 92 std::vector<PCaloHit> hcHits;
95 std::vector<PCaloHit>
hits;
96 hits.insert(
hits.end(), hitsCalo->begin(), hitsCalo->end());
100 unsigned int good(0);
101 for (
unsigned int i = 0;
i <
hits.size();
i++) {
102 unsigned int id =
hits[
i].id();
120 edm::LogVerbatim(
"HcalSim") <<
"Hit[" <<
i <<
"] " << hid <<
" ***** ERROR *****";
Log< level::Info, true > LogVerbatim
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_topo_
const std::string hitLab_
const std::string g4Label_
edm::EDGetTokenT< edm::PCaloHitContainer > toks_calo_
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_hrdd_
bool getData(T &iHolder) const
DetId relabel(const uint32_t testId) const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
auto const good
min quality of good
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HcalTestSimHitID(const edm::ParameterSet &ps)
bool validHcal(const HcalDetId &id) const
GlobalPoint getPosition(const DetId &id) const
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
~HcalTestSimHitID() override=default