CMS 3D CMS Logo

List of all members | Public Member Functions
MiscalibReaderFromXMLEcalEndcap Class Reference

#include <MiscalibReaderFromXMLEcalEndcap.h>

Inheritance diagram for MiscalibReaderFromXMLEcalEndcap:
MiscalibReaderFromXML

Public Member Functions

EEDetId getCellFromAttributes (int ix, int iy, int iz)
 
 MiscalibReaderFromXMLEcalEndcap (CaloMiscalibMapEcal &map)
 
DetId parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute) override
 
- Public Member Functions inherited from MiscalibReaderFromXML
double getFloatAttribute (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
 
int getIntAttribute (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
 
double getScalingFactor (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
 
 MiscalibReaderFromXML (CaloMiscalibMap &)
 
bool parseXMLMiscalibFile (std::string configFile)
 
virtual ~MiscalibReaderFromXML ()
 

Detailed Description

Definition at line 8 of file MiscalibReaderFromXMLEcalEndcap.h.

Constructor & Destructor Documentation

◆ MiscalibReaderFromXMLEcalEndcap()

MiscalibReaderFromXMLEcalEndcap::MiscalibReaderFromXMLEcalEndcap ( CaloMiscalibMapEcal map)
inline

Member Function Documentation

◆ getCellFromAttributes()

EEDetId MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes ( int  ix,
int  iy,
int  iz 
)

Definition at line 11 of file MiscalibReaderXMLEcalEndcap.cc.

References gather_cfg::cout, and EEDetId::validDetId().

Referenced by parseCellEntry().

11  {
12  if (EEDetId::validDetId(ix, iy, iz)) {
13  EEDetId cell(ix, iy, iz);
14  return cell;
15  } else {
16  std::cout << "Null coordinates = " << ix << "," << iy << "," << iz << std::endl;
17  return EEDetId(0);
18  }
19 }
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248

◆ parseCellEntry()

DetId MiscalibReaderFromXMLEcalEndcap::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute)
overridevirtual

Implements MiscalibReaderFromXML.

Definition at line 4 of file MiscalibReaderXMLEcalEndcap.cc.

References getCellFromAttributes(), and MiscalibReaderFromXML::getIntAttribute().

4  {
6  getIntAttribute(attribute, "y_index"),
7  getIntAttribute(attribute, "z_index"));
8  return cell;
9 }
EEDetId getCellFromAttributes(int ix, int iy, int iz)
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)