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

Definition at line 10 of file MiscalibReaderFromXMLEcalEndcap.h.

Member Function Documentation

◆ getCellFromAttributes()

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

Definition at line 11 of file MiscalibReaderXMLEcalEndcap.cc.

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 }

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

Referenced by parseCellEntry().

◆ parseCellEntry()

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

Implements MiscalibReaderFromXML.

Definition at line 4 of file MiscalibReaderXMLEcalEndcap.cc.

4  {
6  getIntAttribute(attribute, "y_index"),
7  getIntAttribute(attribute, "z_index"));
8  return cell;
9 }

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

gather_cfg.cout
cout
Definition: gather_cfg.py:144
MiscalibReaderFromXML::MiscalibReaderFromXML
MiscalibReaderFromXML(CaloMiscalibMap &)
Definition: MiscalibReaderXML.cc:24
MiscalibReaderFromXMLEcalEndcap::getCellFromAttributes
EEDetId getCellFromAttributes(int ix, int iy, int iz)
Definition: MiscalibReaderXMLEcalEndcap.cc:11
EEDetId
Definition: EEDetId.h:14
MiscalibReaderFromXML::getIntAttribute
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)
Definition: MiscalibReaderXML.cc:41
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
genParticles_cff.map
map
Definition: genParticles_cff.py:11