CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 61 of file EcalPyUtils.cc.

References EcalFloatCondObjectContainerXMLTranslator::dumpXML(), and h.

Referenced by BOOST_PYTHON_MODULE().

61  {
64  }
static std::string dumpXML(const EcalCondHeader &header, const EcalFloatCondObjectContainer &record)
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 47 of file EcalPyUtils.cc.

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

Referenced by BOOST_PYTHON_MODULE().

47  {
48 
49  if (EEDetId::validDetId(ix,iy,iz)) {
50  EEDetId d(ix,iy,iz);
51  return d.hashedIndex();
52  }
53  return 0;
54  }
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.cc:562
std::vector<int> ecalpyutils::hashedIndexToEtaPhi ( int  hashedindex)

Definition at line 21 of file EcalPyUtils.cc.

References EBDetId::ieta(), EBDetId::iphi(), run_regression::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(), run_regression::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 56 of file EcalPyUtils.cc.

References EBDetId::ism().

Referenced by EcalBarrelGeometry::alignmentTransformIndexLocal(), EBSelectiveReadoutTask::anaDigi(), EESelectiveReadoutTask::anaDigi(), EBCosmicTask::analyze(), EEPedestalTask::analyze(), EERawDataTask::analyze(), EEStatusFlagsTask::analyze(), EETestPulseTask::analyze(), EBStatusFlagsTask::analyze(), EBLaserTask::analyze(), EBOccupancyTask::analyze(), EEClusterTask::analyze(), EECosmicTask::analyze(), EBPedestalOnlineTask::analyze(), EBPedestalTask::analyze(), EELaserTask::analyze(), EELedTask::analyze(), EBRawDataTask::analyze(), EEPedestalOnlineTask::analyze(), EBTestPulseTask::analyze(), EBIntegrityTask::analyze(), EcalEndcapMonitorModule::analyze(), EcalBarrelMonitorModule::analyze(), EEIntegrityTask::analyze(), EBClusterTaskExtras::analyze(), EEClusterTaskExtras::analyze(), EBTimingTask::analyze(), EBSelectiveReadoutTask::analyze(), EETimingTask::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), EEOccupancyTask::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(), EBPedestalClient::cleanup(), EBPedestalOnlineClient::cleanup(), EECosmicClient::cleanup(), EEIntegrityClient::cleanup(), EBTestPulseClient::cleanup(), EBCosmicClient::cleanup(), EEOccupancyClient::cleanup(), EEPedestalClient::cleanup(), EEPedestalOnlineClient::cleanup(), EETestPulseClient::cleanup(), EBIntegrityClient::cleanup(), EBOccupancyClient::cleanup(), EBTriggerTowerClient::cleanup(), EETriggerTowerClient::cleanup(), EETimingClient::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(), EBDataCertificationTask::endRun(), EBDaqInfoTask::fillMonitorElements(), EBDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::fillMonitorElements(), EEDcsInfoTask::fillMonitorElements(), ecaldqm::getBinME(), MEGeom::getBoundary(), MEEBGeom::getGraphBoundary(), MEGeom::getHist(), popcon::EcalTPGBadTTHandler::getNewObjects(), NumbersPn::getPNs(), Numbers::iEB(), Numbers::iEE(), NumbersPn::iLM(), NumbersPn::ipnEE(), Numbers::iSM(), MEEEGeom::lmmodFromLmr(), MEEBGeom::lmr(), Masks::maskChannel(), Masks::maskPn(), EETriggerTowerTask::processDigis(), FakeCaloAlignmentEP::produceEBAli(), TestCaloAlignmentEP::produceEBAli(), StoreEcalCondition::readEcalChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMTowerStatusFromFile(), Numbers::RtHalf(), ecaldqm::MeInfoMap::set(), EELaserClient::setup(), EELedClient::setup(), EBLaserClient::setup(), EBTimingClient::setup(), EEPedestalClient::setup(), EBPedestalClient::setup(), EETestPulseClient::setup(), EEPedestalOnlineClient::setup(), EEIntegrityClient::setup(), EBPedestalOnlineClient::setup(), EBTestPulseClient::setup(), EBIntegrityClient::setup(), EETriggerTowerClient::setup(), EBTriggerTowerClient::setup(), EETimingClient::setup(), MEEBGeom::sm(), MEEBGeom::smFromDcc(), MEEEGeom::smFromDcc(), MEEBGeom::smName(), MEEEGeom::smName(), ME::smName(), and TEcnaHistos::ViewHisto().

56  {
57  EBDetId d(ieta,iphi);
58  return d.ism();
59  }