51 : nameDetector_(ps.getParameter<
std::
string>(
"detectorName")),
52 missingFile_(ps.getParameter<
std::
string>(
"missingFile")),
61 std::ifstream fInput(
fileName.c_str());
66 while (fInput.getline(
buffer, 80)) {
68 if (
items.size() > 2) {
73 }
else if (
items.size() == 1) {
74 int dumpdet = std::atoi(
items[0].c_str());
91 descriptions.
add(
"hgcalRecHitPartialEE",
desc);
98 int firstLayer =
hgc.getLayerOffset();
101 bool getHits = (theRecHitContainers.
isValid());
102 uint32_t
nhits = (getHits) ? theRecHitContainers->
size() : 0;
103 uint32_t
good(0), allSi(0),
all(0);
104 edm::LogVerbatim(
"HGCalSim") <<
"HGCalTestPartialWaferRecHits: Input flags Hits " << getHits <<
" with " <<
nhits 105 <<
" hits: Layer Offset " << firstLayer;
109 for (
const auto& it : *(theRecHitContainers.
product())) {
132 bool valid1 =
geom->topology().valid(
id);
135 <<
" Wafer Type:Part:Orient:Cassette " <<
info.type <<
":" <<
info.part <<
":" 136 <<
info.orient <<
":" <<
info.cassette <<
" at (" <<
pos.x() <<
", " <<
pos.y()
137 <<
", " <<
pos.z() <<
") Validity " << valid1 <<
":" << valid2;
Log< level::Info, true > LogVerbatim
const edm::EDGetTokenT< HGCRecHitCollection > recHitSource_
auto const good
min quality of good
const std::string nameDetector_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
int32_t waferU(const int32_t index)
const edm::InputTag source_
int cellU() const
get the cell #'s in u,v or in x,y
std::vector< int > wafers_
T const * product() const
std::vector< int > dumpDets_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
~HGCalTestPartialWaferRecHits() override=default
int layer() const
get the layer #
static constexpr int32_t WaferFull
std::vector< std::string > splitString(const std::string &)
HGCalTestPartialWaferRecHits(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
void analyze(edm::Event const &, edm::EventSetup const &) override
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
const std::string missingFile_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int32_t waferV(const int32_t index)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > tok_hgcGeom_