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.h:248
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:53
int ieta() const
get the crystal ieta
Definition: EBDetId.h:51
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:114
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:76
static EEDetId unhashIndex(int hi)
Definition: EEDetId.cc:99
int zside() const
Definition: EEDetId.h:70
int iy() const
Definition: EEDetId.h:82
int ecalpyutils::ism ( int  ieta,
int  iphi 
)

Definition at line 56 of file EcalPyUtils.cc.

References EBDetId::ism().

Referenced by EBSelectiveReadoutTask::anaDigi(), EESelectiveReadoutTask::anaDigi(), EBPedestalOnlineTask::analyze(), EBStatusFlagsTask::analyze(), EEStatusFlagsTask::analyze(), EEPedestalOnlineTask::analyze(), EERawDataTask::analyze(), EEPedestalTask::analyze(), EBIntegrityTask::analyze(), EECosmicTask::analyze(), EBPedestalTask::analyze(), EEIntegrityTask::analyze(), EBRawDataTask::analyze(), EETestPulseTask::analyze(), EELaserTask::analyze(), EELedTask::analyze(), EBCosmicTask::analyze(), EBOccupancyTask::analyze(), EBTestPulseTask::analyze(), EBLaserTask::analyze(), EcalEndcapMonitorModule::analyze(), EcalBarrelMonitorModule::analyze(), EBTimingTask::analyze(), EBSelectiveReadoutTask::analyze(), EBClusterTaskExtras::analyze(), EEClusterTaskExtras::analyze(), EEClusterTask::analyze(), EBSummaryClient::analyze(), EESummaryClient::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), EETimingTask::analyze(), EEOccupancyTask::analyze(), EBCosmicClient::analyze(), EECosmicClient::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(), EEDcsInfoTask::fillMonitorElements(), EEDaqInfoTask::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(), EBTimingClient::setup(), EELedClient::setup(), EBLaserClient::setup(), EBPedestalOnlineClient::setup(), EETestPulseClient::setup(), EBPedestalClient::setup(), EEPedestalClient::setup(), EEIntegrityClient::setup(), EBIntegrityClient::setup(), EBTestPulseClient::setup(), EEPedestalOnlineClient::setup(), EBTriggerTowerClient::setup(), EETriggerTowerClient::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  }