CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( CaloMiscalibMapEcal map)
inline

Definition at line 10 of file MiscalibReaderFromXMLEcalEndcap.h.

10 : MiscalibReaderFromXML(map){};
MiscalibReaderFromXML(CaloMiscalibMap &)

Member Function Documentation

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  try {
13  if (EEDetId::validDetId(ix, iy, iz)) {
14  EEDetId cell(ix, iy, iz);
15  return cell;
16  } else {
17  return EEDetId(0);
18  }
19  }
20 
21  catch (...)
22 
23  {
24  std::cout << "Null coordinates = " << ix << "," << iy << "," << iz << std::endl;
25  return EEDetId(0);
26  }
27 }
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
tuple cout
Definition: gather_cfg.py:144
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)