CMS 3D CMS Logo

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

Functions

int hashedIndex (int ieta, int iphi)
 
std::vector< int > hashedIndexToEtaPhi (int hashedindex)
 
std::vector< int > hashedIndexToXY (int hashedindex)
 
int ism (int ieta, int iphi)
 

Function Documentation

int ecalpyutils::hashedIndex ( int  ieta,
int  iphi 
)
std::vector<int> ecalpyutils::hashedIndexToEtaPhi ( int  hashedindex)

Definition at line 21 of file EcalPyUtils.cc.

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

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

21  {
22  int ieta= EBDetId::unhashIndex(hashedindex).ieta();
23  int iphi= EBDetId::unhashIndex(hashedindex).iphi();
24  std::vector<int> ret;
25  ret.push_back(ieta);
26  ret.push_back(iphi);
27  return ret;
28  }
int iphi() const
get the crystal iphi
Definition: EBDetId.h:46
int ieta() const
get the crystal ieta
Definition: EBDetId.h:44
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.cc:12
std::vector<int> ecalpyutils::hashedIndexToXY ( int  hashedindex)

Definition at line 30 of file EcalPyUtils.cc.

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

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

30  {
31  int ix= EEDetId::unhashIndex(hashedindex).ix();
32  int iy= EEDetId::unhashIndex(hashedindex).iy();
33  int zside = EEDetId::unhashIndex(hashedindex).zside();
34  std::vector<int> ret;
35  ret.push_back(ix);
36  ret.push_back(iy);
37  ret.push_back(zside);
38  return ret;
39  }
int ix() const
Definition: EEDetId.h:71
static EEDetId unhashIndex(int hi)
Definition: EEDetId.cc:115
int zside() const
Definition: EEDetId.h:65
int iy() const
Definition: EEDetId.h:77
int ecalpyutils::ism ( int  ieta,
int  iphi 
)

Definition at line 47 of file EcalPyUtils.cc.

References EBDetId::ism().

Referenced by EcalBarrelGeometry::alignmentTransformIndexLocal(), EBSelectiveReadoutTask::anaDigi(), EESelectiveReadoutTask::anaDigi(), EBCosmicTask::analyze(), EBTimingTask::analyze(), EEPedestalTask::analyze(), EERawDataTask::analyze(), EEPedestalOnlineTask::analyze(), EEStatusFlagsTask::analyze(), EETestPulseTask::analyze(), EBStatusFlagsTask::analyze(), EBLaserTask::analyze(), EBOccupancyTask::analyze(), EEClusterTask::analyze(), EBPedestalOnlineTask::analyze(), EBPedestalTask::analyze(), EECosmicTask::analyze(), EBRawDataTask::analyze(), EELaserTask::analyze(), EELedTask::analyze(), EBTestPulseTask::analyze(), EcalBarrelMonitorModule::analyze(), EBIntegrityTask::analyze(), EcalEndcapMonitorModule::analyze(), EEIntegrityTask::analyze(), EBSelectiveReadoutTask::analyze(), EBClusterTaskExtras::analyze(), EEClusterTaskExtras::analyze(), EETimingTask::analyze(), L1TdeECAL::analyze(), EEOccupancyTask::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), EBCosmicClient::analyze(), EECosmicClient::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), EcalBarrelRecHitsValidation::analyze(), testChannel::analyze(), EESelectiveReadoutTask::analyze(), TreeProducerCalibSimul::analyze(), EcalDQMStatusReader::beginRun(), BOOST_PYTHON_MODULE(), EBSummaryClient::cleanup(), EESummaryClient::cleanup(), EBStatusFlagsClient::cleanup(), EBTimingClient::cleanup(), EELaserClient::cleanup(), EELedClient::cleanup(), EBLaserClient::cleanup(), EEStatusFlagsClient::cleanup(), EETimingClient::cleanup(), EBPedestalOnlineClient::cleanup(), EBPedestalClient::cleanup(), EBCosmicClient::cleanup(), EECosmicClient::cleanup(), EBTestPulseClient::cleanup(), EEIntegrityClient::cleanup(), EEOccupancyClient::cleanup(), EBIntegrityClient::cleanup(), EEPedestalClient::cleanup(), EEPedestalOnlineClient::cleanup(), EETestPulseClient::cleanup(), EBOccupancyClient::cleanup(), EBTriggerTowerClient::cleanup(), EETriggerTowerClient::cleanup(), MEEBGeom::dcc(), MEEBGeom::dccFromSm(), MEGeom::drawGlobalBoundaries(), EBCosmicClient::EBCosmicClient(), EBIntegrityClient::EBIntegrityClient(), EBLaserClient::EBLaserClient(), EBOccupancyClient::EBOccupancyClient(), EBPedestalClient::EBPedestalClient(), EBPedestalOnlineClient::EBPedestalOnlineClient(), EBStatusFlagsClient::EBStatusFlagsClient(), EBSummaryClient::EBSummaryClient(), EBTestPulseClient::EBTestPulseClient(), EBTimingClient::EBTimingClient(), EBTriggerTowerClient::EBTriggerTowerClient(), EECosmicClient::EECosmicClient(), EEIntegrityClient::EEIntegrityClient(), EELaserClient::EELaserClient(), EELedClient::EELedClient(), EEOccupancyClient::EEOccupancyClient(), EEPedestalClient::EEPedestalClient(), EEPedestalOnlineClient::EEPedestalOnlineClient(), EEStatusFlagsClient::EEStatusFlagsClient(), EESummaryClient::EESummaryClient(), EETestPulseClient::EETestPulseClient(), EETimingClient::EETimingClient(), EETriggerTowerClient::EETriggerTowerClient(), EBDataCertificationTask::endLuminosityBlock(), EEDataCertificationTask::endLuminosityBlock(), EBDataCertificationTask::endRun(), EBDaqInfoTask::fillMonitorElements(), EEDcsInfoTask::fillMonitorElements(), EBDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::fillMonitorElements(), MEGeom::getBoundary(), MEEBGeom::getGraphBoundary(), MEGeom::getHist(), popcon::EcalTPGBadTTHandler::getNewObjects(), NumbersPn::getPNs(), Numbers::icEE(), Numbers::iEB(), Numbers::iEE(), NumbersPn::iLM(), NumbersPn::ipnEE(), Numbers::iSC(), Numbers::iSM(), Numbers::iTCC(), Numbers::iTT(), MEEEGeom::lmmodFromLmr(), MEEBGeom::lmr(), Masks::maskChannel(), Masks::maskPn(), EETriggerTowerTask::processDigis(), TestCaloAlignmentEP::produceEBAli(), FakeCaloAlignmentEP::produceEBAli(), StoreEcalCondition::readEcalChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMTowerStatusFromFile(), Numbers::RtHalf(), EELedClient::setup(), EELaserClient::setup(), EBTimingClient::setup(), EBLaserClient::setup(), EETimingClient::setup(), EEIntegrityClient::setup(), EBPedestalClient::setup(), EEPedestalOnlineClient::setup(), EBTestPulseClient::setup(), EBIntegrityClient::setup(), EBPedestalOnlineClient::setup(), EEPedestalClient::setup(), EETestPulseClient::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::setup(), MEEBGeom::sm(), MEEBGeom::smFromDcc(), MEEEGeom::smFromDcc(), MEEBGeom::smName(), MEEEGeom::smName(), and ME::smName().

47  {
48  EBDetId d(ieta,iphi);
49  return d.ism();
50  }