26 std::cout <<
"--- Dumping QIEs - update ---" << std::endl;
30 std::ofstream outStream2(
dumprefs.c_str());
31 std::cout <<
"--- Dumping QIEs - reference ---" << std::endl;
40 std::vector<DetId>::iterator cell;
43 for (std::vector<DetId>::iterator
it = listRefChan.begin();
it != listRefChan.end();
it++) {
45 cell =
std::find(listNewChan.begin(), listNewChan.end(), mydetid);
46 if (cell == listNewChan.end())
48 throw cms::Exception(
"DataDoesNotMatch") <<
"Value not found in reference" << std::endl;
54 bool failflag =
false;
120 throw cms::Exception(
"DataDoesNotMatch") <<
"Values are do not match";
122 listNewChan.erase(cell);
125 std::cout <<
"These are identical" << std::endl;
133 for (std::vector<DetId>::iterator
it = listRefChan.begin();
it != listRefChan.end();
it++) {
135 cell =
std::find(listNewChan.begin(), listNewChan.end(), mydetid);
136 if (cell == listNewChan.end())
146 listNewChan.erase(cell);
149 for (std::vector<DetId>::iterator
it = listNewChan.begin();
it != listNewChan.end();
it++)
157 std::ofstream outStream3(
outfile.c_str());
158 std::cout <<
"--- Dumping QIEs - the combined ones ---" << std::endl;
167 std::vector<HcalGenericDetId> listEMap = myRefEMap->
allPrecisionId();
168 for (std::vector<HcalGenericDetId>::const_iterator
it = listEMap.begin();
it != listEMap.end();
it++) {
170 if (
std::find(listResult.begin(), listResult.end(), mydetid) == listResult.end()) {
HcalQIEDataCheck(edm::ParameterSet const &ps)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::ESGetToken< HcalQIEData, HcalQIEDataRcd > m_tok1
edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > m_tokmap
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool addCoder(const HcalQIECoder &fCoder)
T getUntrackedParameter(std::string const &, T const &) const
U second(std::pair< T, U > const &p)
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
const HcalTopology * topo() const
std::vector< DetId > getAllChannels() const
#define DEFINE_FWK_MODULE(type)
~HcalQIEDataCheck() override
void analyze(const edm::Event &ev, const edm::EventSetup &es) override
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::vector< HcalGenericDetId > allPrecisionId() const
edm::ESGetToken< HcalQIEData, HcalQIEDataRcd > m_tok2