51 : g4Label_(ps.getParameter<
std::
string>(
"moduleLabel")),
52 caloHitSource_(ps.getParameter<
std::
string>(
"caloHitSource")),
53 nameSense_(ps.getParameter<
std::
string>(
"nameSense")),
54 missingFile_(ps.getParameter<
std::
string>(
"missingFile")),
62 std::ifstream fInput(
fileName.c_str());
67 while (fInput.getline(
buffer, 80)) {
69 if (
items.size() > 2) {
74 }
else if (
items.size() == 1) {
75 int dumpdet = std::atoi(
items[0].c_str());
93 descriptions.
add(
"hgcalHitPartialEE",
desc);
100 int firstLayer =
hgc.getLayerOffset();
103 bool getHits = (hitsCalo.
isValid());
104 uint32_t
nhits = (getHits) ? hitsCalo->size() : 0;
105 uint32_t
good(0), allSi(0),
all(0);
106 edm::LogVerbatim(
"HGCalSim") <<
"HGCalTestPartialWaferHits: Input flags Hits " << getHits <<
" with " <<
nhits 107 <<
" hits: Layer Offset " << firstLayer;
110 std::vector<PCaloHit>
hits;
111 hits.insert(
hits.end(), hitsCalo->begin(), hitsCalo->end());
137 bool valid1 =
geom->topology().valid(
id);
140 <<
" Wafer Type:Part:Orient:Cassette " <<
info.type <<
":" <<
info.part <<
":" 141 <<
info.orient <<
":" <<
info.cassette <<
" at (" <<
pos.x() <<
", " <<
pos.y()
142 <<
", " <<
pos.z() <<
") Validity " << valid1 <<
":" << valid2;
Log< level::Info, true > LogVerbatim
std::vector< PCaloHit > PCaloHitContainer
std::vector< int > wafers_
int32_t waferU(const int32_t index)
int cellU() const
get the cell #'s in u,v or in x,y
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const std::string caloHitSource_
constexpr std::array< uint8_t, layerIndexSize > layer
const std::string g4Label_
void analyze(edm::Event const &, edm::EventSetup const &) override
int layer() const
get the layer #
static constexpr int32_t WaferFull
std::vector< std::string > splitString(const std::string &)
const std::string missingFile_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HGCalTestPartialWaferHits(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
const std::string nameSense_
const edm::EDGetTokenT< edm::PCaloHitContainer > tok_calo_
auto const good
min quality of good
~HGCalTestPartialWaferHits() override=default
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int32_t waferV(const int32_t index)
std::vector< int > dumpDets_
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > geomToken_