CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
ecalpyutils Namespace Reference

Functions

std::string arraystoXML (const std::vector< float > &eb, const std::vector< float > &ee)
 
int hashedIndex (int ieta, int iphi)
 
int hashedIndexEE (int ix, int iy, int iz)
 
std::vector< int > hashedIndexToEtaPhi (int hashedindex)
 
std::vector< int > hashedIndexToXY (int hashedindex)
 
int ism (int ieta, int iphi)
 

Function Documentation

std::string ecalpyutils::arraystoXML ( const std::vector< float > &  eb,
const std::vector< float > &  ee 
)

Definition at line 54 of file EcalPyUtils.cc.

References EcalFloatCondObjectContainerXMLTranslator::dumpXML(), and h.

Referenced by PYBIND11_MODULE().

54  {
57  }
static std::string dumpXML(const EcalCondHeader &header, const std::vector< float > &eb, const std::vector< float > &ee)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
int ecalpyutils::hashedIndex ( int  ieta,
int  iphi 
)
int ecalpyutils::hashedIndexEE ( int  ix,
int  iy,
int  iz 
)

Definition at line 41 of file EcalPyUtils.cc.

References ztail::d, EEDetId::hashedIndex(), and EEDetId::validDetId().

Referenced by PYBIND11_MODULE().

41  {
42  if (EEDetId::validDetId(ix, iy, iz)) {
43  EEDetId d(ix, iy, iz);
44  return d.hashedIndex();
45  }
46  return 0;
47  }
tuple d
Definition: ztail.py:151
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
std::vector<int> ecalpyutils::hashedIndexToEtaPhi ( int  hashedindex)

Definition at line 16 of file EcalPyUtils.cc.

References EBDetId::ieta(), EBDetId::iphi(), runTheMatrix::ret, and EBDetId::unhashIndex().

Referenced by PYBIND11_MODULE(), and EcalPyUtils::unhashEBIndex().

16  {
17  int ieta = EBDetId::unhashIndex(hashedindex).ieta();
18  int iphi = EBDetId::unhashIndex(hashedindex).iphi();
19  std::vector<int> ret;
20  ret.push_back(ieta);
21  ret.push_back(iphi);
22  return ret;
23  }
tuple ret
prodAgent to be discontinued
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:110
std::vector<int> ecalpyutils::hashedIndexToXY ( int  hashedindex)

Definition at line 25 of file EcalPyUtils.cc.

References EEDetId::ix(), EEDetId::iy(), runTheMatrix::ret, EEDetId::unhashIndex(), EEDetId::zside(), and ecaldqm::zside().

Referenced by PYBIND11_MODULE(), and EcalPyUtils::unhashEEIndex().

25  {
26  int ix = EEDetId::unhashIndex(hashedindex).ix();
27  int iy = EEDetId::unhashIndex(hashedindex).iy();
28  int zside = EEDetId::unhashIndex(hashedindex).zside();
29  std::vector<int> ret;
30  ret.push_back(ix);
31  ret.push_back(iy);
32  ret.push_back(zside);
33  return ret;
34  }
tuple ret
prodAgent to be discontinued
int ix() const
Definition: EEDetId.h:77
int zside(DetId const &)
static EEDetId unhashIndex(int hi)
Definition: EEDetId.cc:65
int zside() const
Definition: EEDetId.h:71
int iy() const
Definition: EEDetId.h:83
int ecalpyutils::ism ( int  ieta,
int  iphi 
)