|
|
Go to the documentation of this file.
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;
96 std::vector<PCaloHit>
hits;
97 hits.insert(
hits.end(), hitsCalo->begin(), hitsCalo->end());
101 unsigned int good(0);
102 for (
unsigned int i = 0;
i <
hits.size();
i++) {
103 unsigned int id =
hits[
i].id();
121 edm::LogVerbatim(
"HcalSim") <<
"Hit[" <<
i <<
"] " << hid <<
" ***** ERROR *****";
const auto good
min quality of good
const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_topo_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
edm::EDGetTokenT< edm::PCaloHitContainer > toks_calo_
bool validHcal(const HcalDetId &id) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
HcalTestSimHitID(const edm::ParameterSet &ps)
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
GlobalPoint getPosition(const DetId &id) const
bool getData(T &iHolder) const
DetId relabel(const uint32_t testId) const
Log< level::Info, true > LogVerbatim
const std::string hitLab_
const std::string g4Label_
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_hrdd_