CMS 3D CMS Logo

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

◆ arraystoXML()

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

Definition at line 56 of file EcalPyUtils.cc.

56  {
59  }

References EcalFloatCondObjectContainerXMLTranslator::dumpXML(), and h.

Referenced by BOOST_PYTHON_MODULE().

◆ hashedIndex()

int ecalpyutils::hashedIndex ( int  ieta,
int  iphi 
)

◆ hashedIndexEE()

int ecalpyutils::hashedIndexEE ( int  ix,
int  iy,
int  iz 
)

Definition at line 43 of file EcalPyUtils.cc.

43  {
44  if (EEDetId::validDetId(ix, iy, iz)) {
45  EEDetId d(ix, iy, iz);
46  return d.hashedIndex();
47  }
48  return 0;
49  }

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

Referenced by BOOST_PYTHON_MODULE().

◆ hashedIndexToEtaPhi()

std::vector<int> ecalpyutils::hashedIndexToEtaPhi ( int  hashedindex)

Definition at line 18 of file EcalPyUtils.cc.

18  {
19  int ieta = EBDetId::unhashIndex(hashedindex).ieta();
20  int iphi = EBDetId::unhashIndex(hashedindex).iphi();
21  std::vector<int> ret;
22  ret.push_back(ieta);
23  ret.push_back(iphi);
24  return ret;
25  }

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

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

◆ hashedIndexToXY()

std::vector<int> ecalpyutils::hashedIndexToXY ( int  hashedindex)

Definition at line 27 of file EcalPyUtils.cc.

27  {
28  int ix = EEDetId::unhashIndex(hashedindex).ix();
29  int iy = EEDetId::unhashIndex(hashedindex).iy();
30  int zside = EEDetId::unhashIndex(hashedindex).zside();
31  std::vector<int> ret;
32  ret.push_back(ix);
33  ret.push_back(iy);
34  ret.push_back(zside);
35  return ret;
36  }

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

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

◆ ism()

int ecalpyutils::ism ( int  ieta,
int  iphi 
)
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:367
EBDetId::ieta
int ieta() const
get the crystal ieta
Definition: EBDetId.h:49
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
EBDetId
Definition: EBDetId.h:17
EEDetId::unhashIndex
static EEDetId unhashIndex(int hi)
Definition: EEDetId.cc:65
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
EBDetId::unhashIndex
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:110
EEDetId::ix
int ix() const
Definition: EEDetId.h:77
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
h
EEDetId::zside
int zside() const
Definition: EEDetId.h:71
EEDetId
Definition: EEDetId.h:14
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
EcalCondHeader
Definition: EcalCondHeader.h:16
EEDetId::iy
int iy() const
Definition: EEDetId.h:83
EcalFloatCondObjectContainerXMLTranslator::dumpXML
static std::string dumpXML(const EcalCondHeader &header, const std::vector< float > &eb, const std::vector< float > &ee)
Definition: EcalFloatCondObjectContainerXMLTranslator.cc:156
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
EBDetId::iphi
int iphi() const
get the crystal iphi
Definition: EBDetId.h:51
ztail.d
d
Definition: ztail.py:151