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 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

◆ hashedIndex()

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

Definition at line 36 of file EcalPyUtils.cc.

References ztail::d, hcalRecHitTable_cff::ieta, and hcalRecHitTable_cff::iphi.

Referenced by EcalABAnalyzer::analyze(), EcalTestPulseAnalyzer::analyze(), EcalLaserAnalyzer::analyze(), EcalLaserAnalyzer2::analyze(), EcalURecHitHists::analyze(), SiStripLorentzAnglePCLMonitor::analyze(), EcalTPGParamBuilder::analyze(), EcalCondObjectContainer< Values >::barrel(), EcalCondTowerObjectContainer< T >::barrel(), CaloGeometryHelper::buildCrystal(), popcon::EcalLaserHandler::checkAPDPN(), popcon::EcalLaserHandler::checkAPDPNs(), EcalCondObjectContainer< Values >::endcap(), EcalCondTowerObjectContainer< T >::endcap(), EcalSimpleUncalibRecHitFilter::filter(), EcalMIPRecHitFilter::filter(), EcalHitMaker::getHits(), popcon::EcalLaserHandler::getNewObjects(), popcon::EcalLaserHandler::notifyProblems(), ESCondObjectContainer< ESStripGroupId >::preshower(), PFSimParticleProducer::produce(), PYBIND11_MODULE(), StoreEcalCondition::readEcalChannelStatusFromFile(), EcalUncalibRecHitWorkerRatio::run(), EcalUncalibRecHitWorkerWeights::run(), EcalUncalibRecHitWorkerGlobal::run(), EcalUncalibRecHitWorkerMultiFit::run(), EcalTimeDependentCorrections::setTime(), and EcalLaserAPDPNRatios::setTime().

36  {
37  EBDetId d(ieta, iphi);
38  return d.hashedIndex();
39  }
d
Definition: ztail.py:151

◆ hashedIndexEE()

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

Definition at line 41 of file EcalPyUtils.cc.

References ztail::d, 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  }
d
Definition: ztail.py:151
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248

◆ hashedIndexToEtaPhi()

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

Definition at line 16 of file EcalPyUtils.cc.

References hcalRecHitTable_cff::ieta, EBDetId::ieta(), hcalRecHitTable_cff::iphi, 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  }
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

◆ hashedIndexToXY()

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  }
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

◆ ism()

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