CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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)
 
virtual DetId parseCellEntry (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute)
 
- 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 10 of file MiscalibReaderFromXMLEcalEndcap.h.

Constructor & Destructor Documentation

MiscalibReaderFromXMLEcalEndcap::MiscalibReaderFromXMLEcalEndcap ( CaloMiscalibMapEcal map)
inline

Definition at line 13 of file MiscalibReaderFromXMLEcalEndcap.h.

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

Member Function Documentation

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

Definition at line 16 of file MiscalibReaderXMLEcalEndcap.cc.

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

Referenced by parseCellEntry().

17 {
18 
19  try
20  {
21  if (EEDetId::validDetId(ix, iy, iz)) {
22  EEDetId cell(ix,iy,iz);
23  return cell;
24  } else {
25  return EEDetId(0);
26  }
27  }
28 
29  catch (...)
30 
31  {
32  std::cout << "Null coordinates = "<< ix << "," << iy << "," << iz << std::endl;
33  return EEDetId(0);
34  }
35 
36 
37 }
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:249
tuple cout
Definition: gather_cfg.py:121
DetId MiscalibReaderFromXMLEcalEndcap::parseCellEntry ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  attribute)
virtual

Implements MiscalibReaderFromXML.

Definition at line 5 of file MiscalibReaderXMLEcalEndcap.cc.

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

6 {
7 
9  getIntAttribute(attribute,"x_index"),
10  getIntAttribute(attribute,"y_index"),
11  getIntAttribute(attribute,"z_index")
12  );
13 return cell;
14 }
EEDetId getCellFromAttributes(int ix, int iy, int iz)
int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attribute, const std::string &attribute_name)