#include <PayLoadInspector.h>
Public Types | |
typedef DataT | Class |
typedef ValueExtractor< DataT > | Extractor |
Public Member Functions | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
template<> | |
std::string | dump () const |
std::string | dumpFile (std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &, std::vector< std::string > const &) const |
template<> | |
std::string | dumpFile (std::string const &filename, std::string const &opt_string, std::vector< int > const &nts, std::vector< float > const &floats, std::vector< std::string > const &strings) const |
std::string | dumpXML (std::string filename) const |
void | extract (Extractor &extractor) const |
Class const & | object () const |
ora::Object const & | ora_object () const |
PayLoadInspector () | |
PayLoadInspector (const cond::IOVElementProxy &elem) | |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &str, std::vector< int > const &vInt, std::vector< float > const &vFlt) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &str, std::vector< int > const &vInt, std::vector< float > const &vFlt) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &str, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
std::string | plot (std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | plot (std::string const &filename, std::string const &, std::vector< int > const &, std::vector< float > const &) const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary () const |
std::string | summary () const |
template<> | |
std::string | summary () const |
template<> | |
std::string | summary_adv (std::string const &opt_str, std::vector< int > const &vInts, std::vector< float > const &vFloats, std::vector< std::string > const &vStrings) const |
std::string | summary_adv (std::string const &, std::vector< int > const &, std::vector< float > const &, std::vector< std::string > const &) const |
template<> | |
std::string | trend_plot (std::string const &filename, std::string const &opt_string, std::vector< int > const &nts, std::vector< float > const &floats, std::vector< std::string > const &strings) const |
template<> | |
std::string | trend_plot (std::string const &filename, std::string const &opt_string, std::vector< int > const &nts, std::vector< float > const &floats, std::vector< std::string > const &strings) const |
std::string | trend_plot (std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &, std::vector< std::string > const &) const |
template<> | |
std::string | trend_plot (std::string const &filename, std::string const &opt_string, std::vector< int > const &nts, std::vector< float > const &floats, std::vector< std::string > const &strings) const |
template<> | |
std::string | trend_plot (std::string const &filename, std::string const &opt_string, std::vector< int > const &nts, std::vector< float > const &floats, std::vector< std::string > const &strings) const |
~PayLoadInspector () | |
Private Member Functions | |
bool | load (cond::DbSession &db, std::string const &token) |
Private Attributes | |
ora::Object | m_object |
cond::Time_t | m_since |
std::string | m_token |
Definition at line 83 of file PayLoadInspector.h.
typedef DataT cond::PayLoadInspector< DataT >::Class |
Definition at line 85 of file PayLoadInspector.h.
typedef ValueExtractor<DataT> cond::PayLoadInspector< DataT >::Extractor |
Definition at line 86 of file PayLoadInspector.h.
cond::PayLoadInspector< DataT >::PayLoadInspector | ( | ) | [inline] |
Definition at line 88 of file PayLoadInspector.h.
{}
cond::PayLoadInspector< DataT >::~PayLoadInspector | ( | ) | [inline] |
Definition at line 90 of file PayLoadInspector.h.
References ora::Object::destruct(), and cond::PayLoadInspector< DataT >::m_object.
cond::PayLoadInspector< DataT >::PayLoadInspector | ( | const cond::IOVElementProxy & | elem | ) | [inline] |
Definition at line 94 of file PayLoadInspector.h.
References cond::DbTransaction::commit(), EcalCondDB::db, cond::IOVElementProxy::db(), cond::PayLoadInspector< DataT >::load(), cond::PayLoadInspector< DataT >::m_token, cond::DbTransaction::start(), and cond::DbSession::transaction().
: m_since(elem.since()), m_token(elem.token()) { ROOT::Cintex::Cintex::Enable(); cond::DbSession db = elem.db(); db.transaction().start(true); load(db,m_token); db.transaction().commit(); }
std::string cond::PayLoadInspector< DataT >::dump | ( | void | ) | const [inline] |
Definition at line 114 of file PayLoadInspector.h.
References cond::PayLoadInspector< DataT >::dumpXML(), cond::PayLoadInspector< DataT >::m_since, cond::PayLoadInspector< DataT >::m_token, and cond::parseToken().
{ std::ostringstream ss; //token parser std::pair<std::string,int> oidData = parseToken( m_token ); ss << m_since << "_"<< oidData.first << "_" << oidData.second; //std::string filename(ss.str()+".xml"); return this->dumpXML(ss.str()+".xml"); }
std::string cond::PayLoadInspector< DTDeadFlag >::dump | ( | void | ) | const |
Definition at line 34 of file DTDeadFlagPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTHVStatus >::dump | ( | void | ) | const |
Definition at line 34 of file DTHVStatusPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTReadOutMapping >::dump | ( | void | ) | const |
Definition at line 34 of file DTReadOutMappingPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalGainRatios >::dump | ( | void | ) | const |
Definition at line 43 of file EcalGainRatiosPyWrapper.cc.
References EcalCondTools::dumpXML().
{ std::stringstream ss; EcalCondHeader header; ss<<EcalGainRatiosXMLTranslator::dumpXML(header,object()); return ss.str(); }
std::string cond::PayLoadInspector< SiStripNoises >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripNoisesPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalLaserAPDPNRatios >::dump | ( | void | ) | const |
Definition at line 36 of file EcalLaserAPDPNRatiosPyWrapper.cc.
References EcalCondTools::dumpXML().
{ std::stringstream ss; EcalCondHeader header; ss<<EcalLaserAPDPNRatiosXMLTranslator::dumpXML(header,object()); return ss.str(); }
std::string cond::PayLoadInspector< SiStripPedestals >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripPedestalsPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalMappingElectronics >::dump | ( | void | ) | const |
Definition at line 34 of file EcalMappingElectronicsPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripRunSummary >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripRunSummaryPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripSummary >::dump | ( | void | ) | const |
Definition at line 71 of file SiStripSummaryPyWrapper.cc.
References i, and dbtoconf::object.
void DAClusterizerInZ::dump | ( | void | ) | const |
Definition at line 34 of file SiStripThresholdPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTStatusFlag >::dump | ( | void | ) | const |
Definition at line 34 of file DTStatusFlagPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalPedestals >::dump | ( | void | ) | const |
Definition at line 127 of file EcalPedestalsPyWrapper.cc.
References EcalCondTools::dumpXML().
{ std::stringstream ss; EcalCondHeader header; ss<<EcalPedestalsXMLTranslator::dumpXML(header,object()); return ss.str(); } // dump
std::string cond::PayLoadInspector< EcalTBWeights >::dump | ( | void | ) | const |
Definition at line 34 of file EcalTBWeightsPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss<< EcalTBWeightsXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< EcalWeightXtalGroups >::dump | ( | void | ) | const |
Definition at line 34 of file EcalWeightXtalGroupsPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss<<EcalWeightGroupXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< DTLVStatus >::dump | ( | void | ) | const |
Definition at line 34 of file DTLVStatusPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTT0 >::dump | ( | void | ) | const |
Definition at line 34 of file DTT0PyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTTPGParameters >::dump | ( | void | ) | const |
Definition at line 34 of file DTTPGParametersPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTTtrig >::dump | ( | void | ) | const |
Definition at line 34 of file DTTtrigPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< Pedestals >::dump | ( | void | ) | const |
Definition at line 91 of file PedestalPyWrapper.cc.
References dbtoconf::object, and L1TEmulatorMonitor_cff::p.
std::string cond::PayLoadInspector< DTCCBConfig >::dump | ( | void | ) | const |
Definition at line 34 of file DTCCBConfigPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTMtime >::dump | ( | void | ) | const |
Definition at line 34 of file DTMtimePyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalADCToGeVConstant >::dump | ( | void | ) | const |
Definition at line 34 of file EcalADCToGeVConstantPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss<<EcalADCToGeVXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< L1TriggerScaler >::dump | ( | void | ) | const |
Definition at line 34 of file L1TriggerScalerPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< RunInfo >::dump | ( | void | ) | const |
Definition at line 42 of file RunInfoPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalChannelStatus >::dump | ( | void | ) | const |
Definition at line 131 of file EcalChannelStatusPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss << EcalChannelStatusXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< RunNumber >::dump | ( | void | ) | const |
Definition at line 36 of file RunNumberPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< RunSummary >::dump | ( | void | ) | const |
Definition at line 34 of file RunSummaryPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalDAQTowerStatus >::dump | ( | void | ) | const |
Definition at line 121 of file EcalDAQTowerStatusPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss << EcalDAQTowerStatusXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< AlCaRecoTriggerBits >::dump | ( | void | ) | const |
Definition at line 34 of file AlCaRecoTriggerBitsPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTPerformance >::dump | ( | void | ) | const |
Definition at line 34 of file DTPerformancePyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalDCSTowerStatus >::dump | ( | void | ) | const |
Definition at line 122 of file EcalDCSTowerStatusPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss << EcalDCSTowerStatusXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< SiStripApvGain >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripApvGainPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripBadStrip >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripBadStripPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripConfObject >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripConfObjectPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTRangeT0 >::dump | ( | void | ) | const |
Definition at line 34 of file DTRangeT0PyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalFloatCondObjectContainer >::dump | ( | void | ) | const |
Definition at line 147 of file EcalFloatCondObjectContainerPyWrapper.cc.
References EcalCondTools::dumpXML().
{ std::stringstream ss; EcalCondHeader header; ss<<EcalFloatCondObjectContainerXMLTranslator::dumpXML(header,object()); return ss.str(); // Printer p; // std::for_each(object().barrelItems().begin(),object().barrelItems().end(),boost::bind(&Printer::doB,boost::ref(p),_1)); // p.ss <<"\n"; // p.reset(); // std::for_each(object().endcapItems().begin(),object().endcapItems().end(),boost::bind(&Printer::doE,boost::ref(p),_1)); // p.ss << std::endl; // return p.ss.str(); }
std::string cond::PayLoadInspector< SiStripDetVOff >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripDetVOffPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripFedCabling >::dump | ( | void | ) | const |
Definition at line 34 of file SiStripFedCablingPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< RPCObGas >::dumpFile | ( | std::string const & | filename, |
std::string const & | opt_string, | ||
std::vector< int > const & | nts, | ||
std::vector< float > const & | floats, | ||
std::vector< std::string > const & | strings | ||
) | const |
Definition at line 547 of file RPCObGasPyWrapper.cc.
References lut2db_cfg::filename.
{ return filename; }
std::string cond::PayLoadInspector< DataT >::dumpFile | ( | std::string const & | , |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | , | ||
std::vector< std::string > const & | |||
) | const [inline] |
Definition at line 147 of file PayLoadInspector.h.
{return "";}
std::string cond::PayLoadInspector< DataT >::dumpXML | ( | std::string | filename | ) | const [inline] |
FIXME: use TBuffer
Definition at line 102 of file PayLoadInspector.h.
References ora::Object::address(), lut2db_cfg::filename, cond::PayLoadInspector< DataT >::m_object, pos, and ora::Object::typeName().
Referenced by cond::PayLoadInspector< DataT >::dump().
void cond::PayLoadInspector< DataT >::extract | ( | Extractor & | extractor | ) | const [inline] |
Definition at line 151 of file PayLoadInspector.h.
References cond::BaseValueExtractor< T >::computeW().
{extractor.computeW(object()); }
bool cond::PayLoadInspector< DataT >::load | ( | cond::DbSession & | db, |
std::string const & | token | ||
) | [inline, private] |
Definition at line 162 of file PayLoadInspector.h.
References ora::Object::address(), cond::DbSession::getObject(), cond::PayLoadInspector< DataT >::m_object, and convertSQLiteXML::ok.
Referenced by cond::PayLoadInspector< DataT >::PayLoadInspector().
Class const& cond::PayLoadInspector< DataT >::object | ( | ) | const [inline] |
Definition at line 153 of file PayLoadInspector.h.
References ora::Object::cast(), and cond::PayLoadInspector< DataT >::m_object.
ora::Object const& cond::PayLoadInspector< DataT >::ora_object | ( | ) | const [inline] |
Definition at line 157 of file PayLoadInspector.h.
References cond::PayLoadInspector< DataT >::m_object.
{ return m_object; }
std::string cond::PayLoadInspector< SiStripThreshold >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripThresholdPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripLorentzAngle >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file SiStripLorentzAnglePyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DataT >::plot | ( | std::string const & | , |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const [inline] |
Definition at line 131 of file PayLoadInspector.h.
{return "";}
std::string cond::PayLoadInspector< SiStripNoises >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripNoisesPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalGainRatios >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 62 of file EcalGainRatiosPyWrapper.cc.
References svgfig::canvas(), lut2db_cfg::filename, i, ExpressReco_HICollisions_FallBack::id, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, VarParsing::obj, EEDetId::validDetId(), ExpressReco_HICollisions_FallBack::x, and ExpressReco_HICollisions_FallBack::y.
{ gStyle->SetPalette(1); TCanvas canvas("CC map","CC map",840,600); float xmi[3] = {0.0 , 0.22, 0.78}; float xma[3] = {0.22, 0.78, 1.00}; TPad*** pad = new TPad**[2]; for (int gId = 0; gId < 2; gId++) { pad[gId] = new TPad*[3]; for (int obj = 0; obj < 3; obj++) { float yma = 1.- (0.34 * gId); float ymi = yma - 0.32; pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId), xmi[obj], ymi, xma[obj], yma); pad[gId][obj]->Draw(); } } TPad** pad1 = new TPad*[4]; for (int obj = 0; obj < 4; obj++) { float xmi = 0.26 * obj; float xma = xmi + 0.22; pad1[obj] = new TPad(Form("p1_%i", obj),Form("p1_%i", obj), xmi, 0.0, xma, 0.32); pad1[obj]->Draw(); } const int kSides = 2; const int kBarlRings = EBDetId::MAX_IETA; const int kBarlWedges = EBDetId::MAX_IPHI; const int kEndcWedgesX = EEDetId::IX_MAX; const int kEndcWedgesY = EEDetId::IY_MAX; TH2F* barrel_12O6 = new TH2F("EB_12O6","EB gain 12/6",360,0,360, 170, -85,85); TH2F* endc_p_12O6 = new TH2F("EE+_12O6","EE+ gain 12/6",100,1,101,100,1,101); TH2F* endc_m_12O6 = new TH2F("EE-_12O6","EE- gain 12/6",100,1,101,100,1,101); TH2F* barrel_6O1 = new TH2F("EB_6O1","EB gain 6/1",360,0,360, 170, -85,85); TH2F* endc_p_6O1 = new TH2F("EE+_6O1","EE+ gain 6/1",100,1,101,100,1,101); TH2F* endc_m_6O1 = new TH2F("EE-_6O1","EE- gain 6/1",100,1,101,100,1,101); TH1F* b_12O6 = new TH1F("b_12O6","EB gain 12/6", 50, 1.8, 2.1); TH1F* e_12O6 = new TH1F("e_12O6","EE gain 12/6", 50, 1.8, 2.1); TH1F* b_6O1 = new TH1F("b_6O1","EB gain 6/1", 50, 5.35, 5.85); TH1F* e_6O1 = new TH1F("e_6O1","EE gain 6/1", 50, 5.35, 5.85); for (int sign=0; sign < kSides; sign++) { int thesign = sign==1 ? 1:-1; for (int ieta=0; ieta<kBarlRings; ieta++) { for (int iphi=0; iphi<kBarlWedges; iphi++) { EBDetId id((ieta+1)*thesign, iphi+1); float y = -1 - ieta; if(sign == 1) y = ieta; barrel_12O6->Fill(iphi, y, object()[id.rawId()].gain12Over6()); barrel_6O1->Fill(iphi, y, object()[id.rawId()].gain6Over1()); b_12O6->Fill(object()[id.rawId()].gain12Over6()); b_6O1->Fill(object()[id.rawId()].gain6Over1()); } // iphi } // ieta for (int ix=0; ix<kEndcWedgesX; ix++) { for (int iy=0; iy<kEndcWedgesY; iy++) { if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue; EEDetId id(ix+1,iy+1,thesign); if (thesign==1) { endc_p_12O6->Fill(ix+1,iy+1,object()[id.rawId()].gain12Over6()); endc_p_6O1->Fill(ix+1,iy+1,object()[id.rawId()].gain6Over1()); } else{ endc_m_12O6->Fill(ix+1,iy+1,object()[id.rawId()].gain12Over6()); endc_m_6O1->Fill(ix+1,iy+1,object()[id.rawId()].gain6Over1()); } e_12O6->Fill(object()[id.rawId()].gain12Over6()); e_6O1->Fill(object()[id.rawId()].gain6Over1()); } // iy } // ix } // side TLine* l = new TLine(0., 0., 0., 0.); l->SetLineWidth(1); int ixSectorsEE[202] = { 62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96, 96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66, 91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44, 41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36, 36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66}; int iySectorsEE[202] = { 51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26, 36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56, 56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6}; float min12O6 = 1.9, max12O6 = 2.0, min6O1 = 5.4, max6O1 = 5.8; pad[0][0]->cd(); endc_m_12O6->SetStats(0); endc_m_12O6->SetMaximum(max12O6); endc_m_12O6->SetMinimum(min12O6); endc_m_12O6->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); l->SetLineWidth(0.2); } } pad[0][1]->cd(); barrel_12O6->SetStats(0); barrel_12O6->SetMaximum(max12O6); barrel_12O6->SetMinimum(min12O6); barrel_12O6->Draw("colz"); for(int i = 0; i <17; i++) { Double_t x = 20.+ (i *20); l = new TLine(x,-85.,x,86.); l->Draw(); } l = new TLine(0.,0.,360.,0.); l->Draw(); pad[0][2]->cd(); endc_p_12O6->SetStats(0); endc_p_12O6->SetMaximum(max12O6); endc_p_12O6->SetMinimum(min12O6); endc_p_12O6->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); l->SetLineWidth(0.2); } } pad[1][0]->cd(); endc_m_6O1->SetStats(0); endc_m_6O1->SetMaximum(max6O1); endc_m_6O1->SetMinimum(min6O1); endc_m_6O1->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); l->SetLineWidth(0.2); } } pad[1][1]->cd(); barrel_6O1->SetStats(0); barrel_6O1->SetMaximum(max6O1); barrel_6O1->SetMinimum(min6O1); barrel_6O1->Draw("colz"); for(int i = 0; i <17; i++) { Double_t x = 20.+ (i *20); l = new TLine(x,-85.,x,86.); l->Draw(); } l = new TLine(0.,0.,360.,0.); l->Draw(); pad[1][2]->cd(); endc_p_6O1->SetStats(0); endc_p_6O1->SetMaximum(max6O1); endc_p_6O1->SetMinimum(min6O1); endc_p_6O1->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); l->SetLineWidth(0.2); } } gStyle->SetOptStat(111110); pad1[0]->cd(); b_12O6->Draw(); pad1[0]->Update(); TPaveStats *st = (TPaveStats*)b_12O6->FindObject("stats"); st->SetX1NDC(0.6); //new x start position st->SetY1NDC(0.75); //new y start position pad1[1]->cd(); e_12O6->Draw(); pad1[0]->Update(); st = (TPaveStats*)e_12O6->FindObject("stats"); st->SetX1NDC(0.6); //new x start position st->SetY1NDC(0.75); //new y start position pad1[2]->cd(); b_6O1->Draw(); pad1[0]->Update(); st = (TPaveStats*)b_6O1->FindObject("stats"); st->SetX1NDC(0.6); //new x start position st->SetY1NDC(0.75); //new y start position pad1[3]->cd(); e_6O1->Draw(); pad1[0]->Update(); st = (TPaveStats*)e_6O1->FindObject("stats"); st->SetX1NDC(0.6); //new x start position st->SetY1NDC(0.75); //new y start position canvas.SaveAs(filename.c_str()); return filename; }
std::string cond::PayLoadInspector< DTRangeT0 >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTRangeT0PyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalLaserAPDPNRatios >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 53 of file EcalLaserAPDPNRatiosPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripRunSummary >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file SiStripRunSummaryPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripSummary >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 97 of file SiStripSummaryPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< RunInfo >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 75 of file RunInfoPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripPedestals >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripPedestalsPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalMappingElectronics >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file EcalMappingElectronicsPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTReadOutMapping >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTReadOutMappingPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTDeadFlag >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTDeadFlagPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalPedestals >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 148 of file EcalPedestalsPyWrapper.cc.
References svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, ExpressReco_HICollisions_FallBack::id, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, cond::ecalped::mean_x12, cond::ecalped::mean_x6, VarParsing::obj, EEDetId::validDetId(), ExpressReco_HICollisions_FallBack::x, and ExpressReco_HICollisions_FallBack::y.
{ gStyle->SetPalette(1); // TCanvas canvas("CC map","CC map",840,600); TCanvas canvas("CC map","CC map",800,1200); float xmi[3] = {0.0 , 0.22, 0.78}; float xma[3] = {0.22, 0.78, 1.00}; TPad*** pad = new TPad**[6]; for (int gId = 0; gId < 6; gId++) { pad[gId] = new TPad*[3]; for (int obj = 0; obj < 3; obj++) { float yma = 1.- (0.17 * gId); float ymi = yma - 0.15; pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId), xmi[obj], ymi, xma[obj], yma); pad[gId][obj]->Draw(); } } const int kGains = 3; const int gainValues[3] = {12, 6, 1}; const int kSides = 2; const int kBarlRings = EBDetId::MAX_IETA; const int kBarlWedges = EBDetId::MAX_IPHI; const int kEndcWedgesX = EEDetId::IX_MAX; const int kEndcWedgesY = EEDetId::IY_MAX; TH2F** barrel_m = new TH2F*[3]; TH2F** endc_p_m = new TH2F*[3]; TH2F** endc_m_m = new TH2F*[3]; TH2F** barrel_r = new TH2F*[3]; TH2F** endc_p_r = new TH2F*[3]; TH2F** endc_m_r = new TH2F*[3]; for (int gainId = 0; gainId < kGains; gainId++) { barrel_m[gainId] = new TH2F(Form("EBm%i",gainId),Form("mean %i EB",gainValues[gainId]),360,0,360, 170, -85,85); endc_p_m[gainId] = new TH2F(Form("EE+m%i",gainId),Form("mean %i EE+",gainValues[gainId]),100,1,101,100,1,101); endc_m_m[gainId] = new TH2F(Form("EE-m%i",gainId),Form("mean %i EE-",gainValues[gainId]),100,1,101,100,1,101); barrel_r[gainId] = new TH2F(Form("EBr%i",gainId),Form("rms %i EB",gainValues[gainId]),360,0,360, 170, -85,85); endc_p_r[gainId] = new TH2F(Form("EE+r%i",gainId),Form("rms %i EE+",gainValues[gainId]),100,1,101,100,1,101); endc_m_r[gainId] = new TH2F(Form("EE-r%i",gainId),Form("rms %i EE-",gainValues[gainId]),100,1,101,100,1,101); } for (int sign=0; sign < kSides; sign++) { int thesign = sign==1 ? 1:-1; for (int ieta=0; ieta<kBarlRings; ieta++) { for (int iphi=0; iphi<kBarlWedges; iphi++) { EBDetId id((ieta+1)*thesign, iphi+1); float y = -1 - ieta; if(sign == 1) y = ieta; barrel_m[0]->Fill(iphi, y, object()[id.rawId()].mean_x12); barrel_r[0]->Fill(iphi, y, object()[id.rawId()].rms_x12); barrel_m[1]->Fill(iphi, y, object()[id.rawId()].mean_x6); barrel_r[1]->Fill(iphi, y, object()[id.rawId()].rms_x6); barrel_m[2]->Fill(iphi, y, object()[id.rawId()].mean_x1); barrel_r[2]->Fill(iphi, y, object()[id.rawId()].rms_x1); } // iphi } // ieta for (int ix=0; ix<kEndcWedgesX; ix++) { for (int iy=0; iy<kEndcWedgesY; iy++) { if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue; EEDetId id(ix+1,iy+1,thesign); if (thesign==1) { endc_p_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x12); endc_p_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x12); endc_p_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6); endc_p_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x6); endc_p_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1); endc_p_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x1); } else{ endc_m_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x12); endc_m_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x12); endc_m_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6); endc_m_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x6); endc_m_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1); endc_m_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x1); } } // iy } // ix } // side //canvas.cd(1); float bmin[3] ={0.7, 0.5, 0.4}; float bmax[3] ={1.7, 1.0, 0.8}; float emin[3] ={1.5, 0.8, 0.4}; float emax[3] ={2.5, 1.5, 0.8}; TLine* l = new TLine(0., 0., 0., 0.); l->SetLineWidth(1); int ixSectorsEE[202] = { 62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96, 96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66, 91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44, 41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36, 36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66}; int iySectorsEE[202] = { 51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26, 36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56, 56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6}; for (int gId = 0; gId < 3; gId++) { pad[gId][0]->cd(); endc_m_m[gId]->SetStats(0); endc_m_m[gId]->SetMaximum(225); endc_m_m[gId]->SetMinimum(175); endc_m_m[gId]->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); l->SetLineWidth(0.2); } } pad[gId + 3][0]->cd(); endc_m_r[gId]->SetStats(0); endc_m_r[gId]->SetMaximum(emax[gId]); endc_m_r[gId]->SetMinimum(emin[gId]); endc_m_r[gId]->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } //canvas.cd(2); pad[gId][1]->cd(); barrel_m[gId]->SetStats(0); barrel_m[gId]->SetMaximum(225); barrel_m[gId]->SetMinimum(175); barrel_m[gId]->Draw("colz"); for(int i = 0; i <17; i++) { Double_t x = 20.+ (i *20); l = new TLine(x,-85.,x,86.); l->Draw(); } l = new TLine(0.,0.,360.,0.); l->Draw(); pad[gId + 3][1]->cd(); barrel_r[gId]->SetStats(0); barrel_r[gId]->SetMaximum(bmax[gId]); barrel_r[gId]->SetMinimum(bmin[gId]); barrel_r[gId]->Draw("colz"); for(int i = 0; i <17; i++) { Double_t x = 20.+ (i *20); l = new TLine(x,-85.,x,86.); l->Draw(); } l = new TLine(0.,0.,360.,0.); l->Draw(); //canvas.cd(3); pad[gId][2]->cd(); endc_p_m[gId]->SetStats(0); endc_p_m[gId]->SetMaximum(225); endc_p_m[gId]->SetMinimum(175); endc_p_m[gId]->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } pad[gId + 3][2]->cd(); endc_p_r[gId]->SetStats(0); endc_p_r[gId]->SetMaximum(emax[gId]); endc_p_r[gId]->SetMinimum(emin[gId]); endc_p_r[gId]->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } } canvas.SaveAs(filename.c_str()); return filename; } // plot
std::string cond::PayLoadInspector< EcalTBWeights >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 54 of file EcalTBWeightsPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTStatusFlag >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTStatusFlagPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripFedCabling >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripFedCablingPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTHVStatus >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTHVStatusPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalWeightXtalGroups >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 50 of file EcalWeightXtalGroupsPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< RPCObGas >::plot | ( | std::string const & | filename, |
std::string const & | str, | ||
std::vector< int > const & | vInt, | ||
std::vector< float > const & | vFlt | ||
) | const |
Definition at line 269 of file RPCObGasPyWrapper.cc.
{ // gStyle->SetPalette(1); // TH1D *iDistr=new TH1D("iDistr","IOV-averaged Current Distribution;Average Current (#muA);Entries/0.2 #muA",500,0.,100.); // TH1D *rmsDistr=new TH1D("rmsDistr","RMS over IOV-Current Distribution;Current RMS (#muA);Entries/0.2 #muA",5000,0.,1000.); // //BEGIN OF NEW DB-SESSION PART // //hardcoded values // std::string authPath="/afs/cern.ch/cms/DB/conddb"; // std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; // //frontend sends token instead of filename // std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; // //make connection object // DbConnection dbConn; // //set in configuration object authentication path // dbConn.configuration().setAuthenticationPath(authPath); // dbConn.configure(); // //create session object from connection // DbSession dbSes=dbConn.createSession(); // //try to make connection // dbSes.open(conString,true); // //start a transaction (true=readOnly) // dbSes.transaction().start(true); // //get the actual object // boost::shared_ptr<RPCObPVSSmap> pvssPtr; // pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); // //we have the object... // std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; // //END OF NEW DB-SESSION PART // std::vector<RPCObGas::Item> const & gas = object().ObGas_rpc; // RPCRunIOV *iovHelp=new RPCRunIOV(); // std::map<int,std::pair<std::vector<double>,std::vector<double> > > dpidMap; // for(unsigned int i = 0;i < gas.size(); ++i){ // for(unsigned int p = 0; p < pvssCont.size(); ++p){ // if(gas[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue; // if(dpidMap.find(gas[i].dpid)==dpidMap.end()){ // std::vector<double> dumVec1;dumVec1.push_back(gas[i].value); // std::vector<double> dumVec2;dumVec2.push_back((double)iovHelp->toUNIX(gas[i].day,gas[i].time)); // dpidMap[gas[i].dpid]=make_pair(dumVec1,dumVec2); // } // else { // dpidMap[gas[i].dpid].first.push_back(gas[i].value); // dpidMap[gas[i].dpid].second.push_back((double)iovHelp->toUNIX(gas[i].day,gas[i].time)); // } // } // } // delete iovHelp; // double maxMean(-1.),maxRms(-1.); // double minMean(9999.),minRms(9999.); // std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator minIt,maxIt; // std::vector<float> means,rmss; // for(std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator mIt=dpidMap.begin(); // mIt!=dpidMap.end();mIt++){ // std::pair<double, std::vector<double> > meanAndVals = // make_pair(accumulate(mIt->second.first.begin(),mIt->second.first.end(),0.)/(double)mIt->second.first.size(),mIt->second.first); // iDistr->Fill(meanAndVals.first); // if(meanAndVals.first>maxMean)maxMean=meanAndVals.first; // if(meanAndVals.first<minMean)minMean=meanAndVals.first; // double rms(0.); // for(std::vector<double>::iterator rmsIt=meanAndVals.second.begin(); // rmsIt!=meanAndVals.second.end();++rmsIt){ // rms+=pow((*rmsIt-meanAndVals.first)/(double)meanAndVals.second.size(),2); // } // rmsDistr->Fill(sqrt(rms)); // if(sqrt(rms)>maxRms){ // maxRms=sqrt(rms); // maxIt=mIt; // } // if(sqrt(rms)<minRms){ // minRms=sqrt(rms); // if(mIt->second.first.size()>10) // minIt=mIt; // } // means.push_back(meanAndVals.first); // rmss.push_back(sqrt(rms)); // } // if(maxMean<100.) // iDistr->GetXaxis()->SetRangeUser(minMean-0.00001,maxMean+1.); // if(maxRms<1000.) // rmsDistr->GetXaxis()->SetRangeUser(minRms-0.00001,maxRms+1.); // TCanvas c("Gas","Gas",1200,700); // c.Divide(2,2); // TVirtualPad *p1=c.cd(1); // p1->SetLogy(1); // iDistr->SetFillColor(4); // iDistr->SetLineColor(4); // iDistr->Draw(); // c.cd(1); // TVirtualPad *p2=c.cd(2); // p2->SetLogy(1); // rmsDistr->SetFillColor(3); // rmsDistr->SetLineColor(3); // rmsDistr->Draw(); // c.cd(3); // TGraph *iRmsDistr=new TGraph(means.size(),static_cast<const float *>(&rmss[0]),static_cast<const float *>(&means[0])); // iRmsDistr->SetMarkerStyle(7); // iRmsDistr->SetMarkerColor(2); // TF1 *func=new TF1("linearF",linearF,minRms,maxRms,1); // iRmsDistr->Fit("linearF","r"); // iRmsDistr->GetXaxis()->SetTitle("Current RMS (#muA)"); // iRmsDistr->GetYaxis()->SetTitle("Current Means (#muA)"); // iRmsDistr->Draw("AP"); // TVirtualPad *p4=c.cd(4); // p4->SetLogy(1); // TMultiGraph *mProf=new TMultiGraph(); // TLegend *leg=new TLegend(0.65,0.91,0.99,0.99); // TGraph *minProf=new TGraph(minIt->second.first.size(),&minIt->second.second[0],&minIt->second.first[0]); // TGraph *maxProf=new TGraph(maxIt->second.first.size(),&maxIt->second.second[0],&maxIt->second.first[0]); // minProf->SetMarkerStyle(20); // maxProf->SetMarkerStyle(20); // minProf->SetMarkerColor(2); // maxProf->SetMarkerColor(4); // mProf->Add(minProf); // leg->AddEntry(minProf,"I vs IOV for Min RMS case","lpf"); // mProf->Add(maxProf); // leg->AddEntry(maxProf,"I vs IOV for Max RMS case","lpf"); // leg->Draw(); // mProf->Draw("AP"); // mProf->GetXaxis()->SetTitle("IOV"); // mProf->GetYaxis()->SetTitle("I (#muA)"); // c.SaveAs(filename.c_str()); // return filename.c_str(); return ""; }
std::string cond::PayLoadInspector< DTT0 >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTT0PyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< RPCObImon >::plot | ( | std::string const & | filename, |
std::string const & | str, | ||
std::vector< int > const & | vInt, | ||
std::vector< float > const & | vFlt | ||
) | const |
Definition at line 275 of file RPCObImonPyWrapper.cc.
References builder_last_value_cfg::authPath, trackerHits::c, cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), cond::rpcobgas::day, cond::DbSession::getTypedObject(), i, cond::linearF(), Association::map, RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, p1, p2, p4, funct::pow(), plotscripts::rms(), cond::DbConnectionConfiguration::setAuthenticationPath(), mathSSE::sqrt(), cond::DbTransaction::start(), cond::rpcobgas::time, cond::toUNIX(), cond::DbSession::transaction(), and relativeConstraints::value.
{ gStyle->SetPalette(1); TH1D *iDistr=new TH1D("iDistr","IOV-averaged Current Distribution;Average Current (#muA);Entries/0.2 #muA",500,0.,100.); TH1D *rmsDistr=new TH1D("rmsDistr","RMS over IOV-Current Distribution;Current RMS (#muA);Entries/0.2 #muA",5000,0.,1000.); //BEGIN OF NEW DB-SESSION PART //hardcoded values std::string authPath="/afs/cern.ch/cms/DB/conddb"; std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; //frontend sends token instead of filename std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); //get the actual object boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); //we have the object... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; //END OF NEW DB-SESSION PART std::vector<RPCObImon::I_Item> const & imon = object().ObImon_rpc; // RPCRunIOV *iovHelp=new RPCRunIOV(); std::map<int,std::pair<std::vector<double>,std::vector<double> > > dpidMap; for(unsigned int i = 0;i < imon.size(); ++i){ for(unsigned int p = 0; p < pvssCont.size(); ++p){ if(imon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue; if(dpidMap.find(imon[i].dpid)==dpidMap.end()){ std::vector<double> dumVec1;dumVec1.push_back(imon[i].value); std::vector<double> dumVec2;dumVec2.push_back((double)/*iovHelp->*/toUNIX(imon[i].day,imon[i].time)); dpidMap[imon[i].dpid]=make_pair(dumVec1,dumVec2); } else { dpidMap[imon[i].dpid].first.push_back(imon[i].value); dpidMap[imon[i].dpid].second.push_back((double)/*iovHelp->*/toUNIX(imon[i].day,imon[i].time)); } } } // delete iovHelp; double maxMean(-1.),maxRms(-1.); double minMean(9999.),minRms(9999.); std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator minIt,maxIt; std::vector<float> means,rmss; for(std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator mIt=dpidMap.begin(); mIt!=dpidMap.end();mIt++){ std::pair<double, std::vector<double> > meanAndVals = make_pair(accumulate(mIt->second.first.begin(),mIt->second.first.end(),0.)/(double)mIt->second.first.size(),mIt->second.first); iDistr->Fill(meanAndVals.first); if(meanAndVals.first>maxMean)maxMean=meanAndVals.first; if(meanAndVals.first<minMean)minMean=meanAndVals.first; double rms(0.); for(std::vector<double>::iterator rmsIt=meanAndVals.second.begin(); rmsIt!=meanAndVals.second.end();++rmsIt){ rms+=pow((*rmsIt-meanAndVals.first)/(double)meanAndVals.second.size(),2); } rmsDistr->Fill(sqrt(rms)); if(sqrt(rms)>maxRms){ maxRms=sqrt(rms); maxIt=mIt; } if(sqrt(rms)<minRms){ minRms=sqrt(rms); if(mIt->second.first.size()>10) minIt=mIt; } means.push_back(meanAndVals.first); rmss.push_back(sqrt(rms)); } if(maxMean<100.) iDistr->GetXaxis()->SetRangeUser(minMean-0.00001,maxMean+1.); if(maxRms<1000.) rmsDistr->GetXaxis()->SetRangeUser(minRms-0.00001,maxRms+1.); TCanvas c("Imon","Imon",1200,700); c.Divide(2,2); TVirtualPad *p1=c.cd(1); p1->SetLogy(1); iDistr->SetFillColor(4); iDistr->SetLineColor(4); iDistr->Draw(); c.cd(1); TVirtualPad *p2=c.cd(2); p2->SetLogy(1); rmsDistr->SetFillColor(3); rmsDistr->SetLineColor(3); rmsDistr->Draw(); c.cd(3); TGraph *iRmsDistr=new TGraph(means.size(),static_cast<const float *>(&rmss[0]),static_cast<const float *>(&means[0])); iRmsDistr->SetMarkerStyle(7); iRmsDistr->SetMarkerColor(2); TF1 *func=new TF1("linearF",linearF,minRms,maxRms,1); iRmsDistr->Fit(func,"r"); iRmsDistr->GetXaxis()->SetTitle("Current RMS (#muA)"); iRmsDistr->GetYaxis()->SetTitle("Current Means (#muA)"); iRmsDistr->Draw("AP"); TVirtualPad *p4=c.cd(4); p4->SetLogy(1); TMultiGraph *mProf=new TMultiGraph(); TLegend *leg=new TLegend(0.65,0.91,0.99,0.99); TGraph *minProf=new TGraph(minIt->second.first.size(),&minIt->second.second[0],&minIt->second.first[0]); TGraph *maxProf=new TGraph(maxIt->second.first.size(),&maxIt->second.second[0],&maxIt->second.first[0]); minProf->SetMarkerStyle(20); maxProf->SetMarkerStyle(20); minProf->SetMarkerColor(2); maxProf->SetMarkerColor(4); mProf->Add(minProf); leg->AddEntry(minProf,"I vs IOV for Min RMS case","lpf"); mProf->Add(maxProf); leg->AddEntry(maxProf,"I vs IOV for Max RMS case","lpf"); leg->Draw(); mProf->Draw("AP"); mProf->GetXaxis()->SetTitle("IOV"); mProf->GetYaxis()->SetTitle("I (#muA)"); c.SaveAs(filename.c_str()); return filename.c_str(); }
std::string cond::PayLoadInspector< DTTPGParameters >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTTPGParametersPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< RPCObPVSSmap >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 47 of file RPCObPVSSmapPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< RPCObTemp >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 240 of file RPCObTempPyWrapper.cc.
References builder_last_value_cfg::authPath, begin, trackerHits::c, cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), end, spr::find(), first, cond::DbSession::getTypedObject(), trackerHits::histo, i, recoMuon::in, geometryCSVtoXML::line, Association::map, max(), min, RPCGeomServ::name(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, pos, ExpressReco_HICollisions_FallBack::pt, relativeConstraints::ring, edm::second(), cond::DbConnectionConfiguration::setAuthenticationPath(), mathSSE::sqrt(), cond::DbTransaction::start(), relativeConstraints::station, cond::rpcobtemp::temp, cond::DbSession::transaction(), relativeConstraints::value, xPos, and yPos.
{ std::map<std::string,std::pair<float,float> > geoMap; std::ifstream mapFile("/afs/cern.ch/user/s/stupputi/public/barDetPositions.txt",ifstream::in); std::string chamb; float xPos,yPos; while(mapFile >> chamb >> xPos >> yPos) geoMap[chamb]=make_pair(xPos,yPos); std::cout<<"size "<<geoMap.size()<<std::endl; gStyle->SetPalette(1); //BEGIN OF NEW DB-SESSION PART //hardcoded values std::string authPath="/afs/cern.ch/cms/DB/conddb"; std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; //frontend sends token instead of filename std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); //get the actual object boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); //we have the object... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; //END OF NEW DB-SESSION PART std::vector<RPCObTemp::T_Item> const & temp = object().ObTemp_rpc; std::map<int,std::map<int,std::vector<double> > > valMap; std::map<int,std::string> detMap; for(unsigned int i = 0;i < temp.size(); ++i){ for(unsigned int p = 0; p < pvssCont.size(); ++p){ if(temp[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=4 || pvssCont[p].region!=0)continue; int whl(pvssCont[p].ring); if(valMap.find(whl)==valMap.end()){ std::map<int,std::vector<double> > dumMap; std::vector<double> dumVec;dumVec.push_back(temp[i].value); dumMap[temp[i].dpid]=dumVec; valMap[whl]=dumMap; } else { if(valMap[whl].find(temp[i].dpid)==valMap[whl].end()){ std::vector<double> dumVec;dumVec.push_back(temp[i].value); (valMap[whl])[temp[i].dpid]=dumVec; } else (valMap[whl])[temp[i].dpid].push_back(temp[i].value); } if(detMap.find(temp[i].dpid)==detMap.end()){ RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1); RPCGeomServ chGS(rpcId); std::string chName(chGS.name()); std::string::size_type pos(chName.find("_S")); if(pos!=std::string::npos) chName=chName.substr(0,pos+5); else chName=chName.substr(0,chName.find("_CH")+5); detMap[temp[i].dpid]=chName; } } } float histoScale(710),axisScale(750); int flip(-1); float incr(0.045*histoScale); float midSc(0.267949192431123),diagSc(sqrt((1.+(midSc*midSc))/2.)); float dists[]={0.558f*histoScale,0.607f*histoScale,0.697f*histoScale,/*0.6971f*xSc,0.7464f*xSc,*/0.823f*histoScale,0.967f*histoScale}; TCanvas *c=new TCanvas("Temp","Temp",1200,700); c->Divide(3,2); for(int w=-2;w<3;w++){ // if(w!=1)continue; int canv(w+3); c->cd(canv); char wNumb[8]; sprintf(wNumb,"Wheel %i",w); TH2F *histo= new TH2F("","",(2*axisScale)/incr,(-1)*axisScale,axisScale,(2*axisScale)/incr,(-1)*axisScale,axisScale); histo->GetXaxis()->SetTickLength(0);histo->GetXaxis()->SetLabelColor(0);histo->GetXaxis()->SetTitle("Temperature (#circC)"); histo->GetYaxis()->SetTickLength(0);histo->GetYaxis()->SetLabelColor(0); double min(1000),max(-1); for(std::map<int,std::vector<double> >::const_iterator mIt=valMap[w].begin(); mIt!=valMap[w].end();mIt++){ std::pair<double, std::vector<double> > meanAndVals = make_pair(accumulate(mIt->second.begin(),mIt->second.end(),0.)/(double)mIt->second.size(),mIt->second); std::string chName(detMap[mIt->first]); histo->Fill(geoMap[chName].first,geoMap[chName].second,meanAndVals.first); if(meanAndVals.first<min)min=meanAndVals.first; if(meanAndVals.first>max)max=meanAndVals.first; std::cout<<chName<<" "<<geoMap[chName].first<<" "<<geoMap[chName].second<<" "<<meanAndVals.first<<std::endl; } histo->GetZaxis()->SetRangeUser(min,max); histo->Draw("colz"); TPaveStats *ptstats = new TPaveStats(0.98,0.98,0.99,0.99,"br"); histo->GetListOfFunctions()->Add(ptstats); histo->Draw("same"); TPaveText *pt=new TPaveText(-235,763,248,860,"br"); pt->SetFillColor(19); pt->AddText(wNumb); pt->Draw("same"); TLine *line = new TLine(); for(int i=0;i<5;i++){ float scDist(midSc*dists[i]),onDiag(diagSc*dists[i]); float furDist(dists[i]+incr),scFurDist(midSc*furDist),furOnDiag(diagSc*furDist); line=new TLine(dists[i],flip*scDist,dists[i],scDist);line->Draw();//S01 line=new TLine(dists[i],flip*scDist,furDist,flip*scDist);line->Draw(); line=new TLine(dists[i],scDist,furDist,scDist);line->Draw(); line=new TLine(furDist,flip*scDist,furDist,scDist);line->Draw(); line=new TLine(flip*dists[i],flip*scDist,flip*dists[i],scDist);line->Draw();//S07 line=new TLine(flip*dists[i],flip*scDist,flip*furDist,flip*scDist);line->Draw(); line=new TLine(flip*dists[i],scDist,flip*furDist,scDist);line->Draw(); line=new TLine(flip*furDist,flip*scDist,flip*furDist,scDist);line->Draw(); line=new TLine(onDiag,onDiag,dists[i],scDist);line->Draw();//S02 line=new TLine(onDiag,onDiag,furOnDiag,furOnDiag);line->Draw(); line=new TLine(dists[i],scDist,furDist,scFurDist);line->Draw(); line=new TLine(furOnDiag,furOnDiag,furDist,scFurDist);line->Draw(); line=new TLine(flip*onDiag,flip*onDiag,flip*dists[i],flip*scDist);line->Draw();//S08 line=new TLine(flip*onDiag,flip*onDiag,flip*furOnDiag,flip*furOnDiag);line->Draw(); line=new TLine(flip*dists[i],flip*scDist,flip*furDist,flip*scFurDist);line->Draw(); line=new TLine(flip*furOnDiag,flip*furOnDiag,flip*furDist,flip*scFurDist);line->Draw(); line=new TLine(onDiag,onDiag,scDist,dists[i]);line->Draw();//S03 line=new TLine(onDiag,onDiag,furOnDiag,furOnDiag);line->Draw(); line=new TLine(scDist,dists[i],scFurDist,furDist);line->Draw(); line=new TLine(furOnDiag,furOnDiag,scFurDist,furDist);line->Draw(); line=new TLine(flip*onDiag,flip*onDiag,flip*scDist,flip*dists[i]);line->Draw();//S09 line=new TLine(flip*onDiag,flip*onDiag,flip*furOnDiag,flip*furOnDiag);line->Draw(); line=new TLine(flip*scDist,flip*dists[i],flip*scFurDist,flip*furDist);line->Draw(); line=new TLine(flip*furOnDiag,flip*furOnDiag,flip*scFurDist,flip*furDist);line->Draw(); if(i==4){ line=new TLine(flip*scDist,dists[i],-0.005,dists[i]);line->Draw();//S04- line=new TLine(flip*scDist,dists[i],flip*scDist,furDist);line->Draw(); line=new TLine(-0.005,dists[i],-0.005,furDist);line->Draw(); line=new TLine(flip*scDist,furDist,-0.005,furDist);line->Draw(); line=new TLine(0.005,dists[i],scDist,dists[i]);line->Draw();//S04+ line=new TLine(scDist,dists[i],scDist,furDist);line->Draw(); line=new TLine(0.005,dists[i],0.005,furDist);line->Draw(); line=new TLine(scDist,furDist,0.005,furDist);line->Draw(); line=new TLine(flip*scDist,flip*dists[i],-0.005,flip*dists[i]);line->Draw();//S10+ line=new TLine(flip*scDist,flip*dists[i],flip*scDist,flip*furDist);line->Draw(); line=new TLine(-0.005,flip*dists[i],-0.005,flip*furDist);line->Draw(); line=new TLine(flip*scDist,flip*furDist,-0.005,flip*furDist);line->Draw(); line=new TLine(0.005,flip*dists[i],scDist,flip*dists[i]);line->Draw();//S10- line=new TLine(0.005,flip*dists[i],0.005,flip*furDist);line->Draw(); line=new TLine(scDist,flip*dists[i],scDist,flip*furDist);line->Draw(); line=new TLine(scDist,flip*furDist,0.005,flip*furDist);line->Draw(); } else{ line=new TLine(flip*scDist,dists[i],scDist,dists[i]);line->Draw();//S04 line=new TLine(flip*scDist,dists[i],flip*scDist,furDist);line->Draw(); line=new TLine(scDist,dists[i],scDist,furDist);line->Draw(); line=new TLine(flip*scDist,furDist,scDist,furDist);line->Draw(); line=new TLine(flip*scDist,flip*dists[i],scDist,flip*dists[i]);line->Draw();//S10 line=new TLine(flip*scDist,flip*dists[i],flip*scDist,flip*furDist);line->Draw(); line=new TLine(scDist,flip*dists[i],scDist,flip*furDist);line->Draw(); line=new TLine(flip*scDist,flip*furDist,scDist,flip*furDist);line->Draw(); } line=new TLine(flip*onDiag,onDiag,flip*scDist,dists[i]);line->Draw();//S05 line=new TLine(flip*onDiag,onDiag,flip*furOnDiag,furOnDiag);line->Draw(); line=new TLine(flip*scDist,dists[i],flip*scFurDist,furDist);line->Draw(); line=new TLine(flip*furOnDiag,furOnDiag,flip*scFurDist,furDist);line->Draw(); line=new TLine(onDiag,flip*onDiag,scDist,flip*dists[i]);line->Draw();//S11 line=new TLine(onDiag,flip*onDiag,furOnDiag,flip*furOnDiag);line->Draw(); line=new TLine(scDist,flip*dists[i],scFurDist,flip*furDist);line->Draw(); line=new TLine(furOnDiag,flip*furOnDiag,scFurDist,flip*furDist);line->Draw(); line=new TLine(flip*onDiag,onDiag,flip*dists[i],scDist);line->Draw();//S06 line=new TLine(flip*onDiag,onDiag,flip*furOnDiag,furOnDiag);line->Draw(); line=new TLine(flip*dists[i],scDist,flip*furDist,scFurDist);line->Draw(); line=new TLine(flip*furOnDiag,furOnDiag,flip*furDist,scFurDist);line->Draw(); line=new TLine(onDiag,flip*onDiag,dists[i],flip*scDist);line->Draw();//S12 line=new TLine(onDiag,flip*onDiag,furOnDiag,flip*furOnDiag);line->Draw(); line=new TLine(dists[i],flip*scDist,furDist,flip*scFurDist);line->Draw(); line=new TLine(furOnDiag,flip*furOnDiag,furDist,flip*scFurDist);line->Draw(); } } c->SaveAs(filename.c_str()); return filename.c_str(); }
std::string cond::PayLoadInspector< EcalDCSTowerStatus >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 143 of file EcalDCSTowerStatusPyWrapper.cc.
References Reference_intrackfit_cff::barrel, svgfig::canvas(), EcalTrigTowerDetId::detIdFromDenseIndex(), end, lut2db_cfg::filename, spr::find(), cmsRelvalreport::green(), i, EcalTrigTowerDetId::ieta(), EcalTrigTowerDetId::iphi(), EcalScDetId::ix(), EcalScDetId::iy(), EcalTrigTowerDetId::kEBTotalTowers, EcalTrigTowerDetId::kEETotalTowers, prof2calltree::l, cmsRelvalreport::red(), EcalScDetId::unhashIndex(), EcalScDetId::validHashIndex(), ExpressReco_HICollisions_FallBack::x, and EcalScDetId::zside().
{ // std::string fname = filename + ".txt"; // EcalDCSTowerStatusXMLTranslator::plot(fname, object()); // return fname; // use David's palette gStyle->SetPalette(1); const Int_t NRGBs = 5; const Int_t NCont = 255; Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 }; Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 }; Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 }; Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 }; TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont); gStyle->SetNumberContours(NCont); TCanvas canvas("CC map","CC map",800,800); TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.); padb->Draw(); TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45); padem->Draw(); TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45); padep->Draw(); // TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 35, -17, 18); TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 34, -17, 17); TH2F* endc_p = new TH2F("EE+","EE+ Tower Status",22, 0, 22, 22, 0, 22); TH2F* endc_m = new TH2F("EE-","EE- Tower Status",22, 0, 22, 22, 0, 22); for(uint cellid = 0; cellid < EcalTrigTowerDetId::kEBTotalTowers; ++cellid) { EcalTrigTowerDetId rawid = EcalTrigTowerDetId::detIdFromDenseIndex(cellid); if (object().find(rawid) == object().end()) continue; int ieta = rawid.ieta(); if(ieta > 0) ieta--; // 1 to 17 int iphi = rawid.iphi() - 1; // 0 to 71 barrel->Fill(iphi, ieta, object()[rawid].getStatusCode()); } for(uint cellid = 0; cellid < EcalTrigTowerDetId::kEETotalTowers; ++cellid) { if(EcalScDetId::validHashIndex(cellid)) { EcalScDetId rawid = EcalScDetId::unhashIndex(cellid); int ix = rawid.ix(); // 1 to 20 int iy = rawid.iy(); // 1 to 20 int side = rawid.zside(); if(side == -1) endc_m->Fill(ix, iy, object()[rawid].getStatusCode()); else endc_p->Fill(ix, iy, object()[rawid].getStatusCode()); } } TLine* l = new TLine(0., 0., 0., 0.); l->SetLineWidth(1); padb->cd(); barrel->SetStats(0); barrel->SetMaximum(14); barrel->SetMinimum(0); barrel->Draw("colz"); // barrel->Draw("col"); for(int i = 0; i <17; i++) { Double_t x = 4.+ (i * 4); l = new TLine(x, -17., x, 17.); l->Draw(); } l = new TLine(0., 0., 72., 0.); l->Draw(); int ixSectorsEE[136] = { 8,14,14,17,17,18,18,19,19,20,20,21,21,20,20,19,19,18,18,17, 17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8, 8, 9, 9,10,10,12,12,13,13,12,12,10,10, 9, 9, 10,10, 0,11,11, 0,10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 0,12,13, 13,14,14,15,15,16,16,17,17, 0, 9, 8, 8, 3, 3, 1, 0,13,14,14, 19,19,21, 0, 9, 8, 8, 7, 7, 5, 5, 3, 3, 2, 0,13,14,14,15,15, 17,17,19,19,20, 0,14,14,13,13,12,12,0}; int iySectorsEE[136] = { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8,14,14,17,17,18,18,19,19, 20,20,21,21,20,20,19,19,18,18,17,17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 4, 4, 7, 7, 9, 9,10,10,12,12,13,13,12,12,10, 10, 9, 0,13,21, 0,13,13,14,14,15,15,16,16,18,18,19, 0,13,13, 14,14,15,15,16,16,18,18,19, 0,11,11,12,12,13,13, 0,11,11,12, 12,13,13, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0, 2, 4, 4, 7, 7, 9, 0} ; padem->cd(); endc_m->SetStats(0); endc_m->SetMaximum(14); endc_m->SetMinimum(0); endc_m->Draw("colz"); for ( int i = 0; i < 136; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } padep->cd(); endc_p->SetStats(0); endc_p->SetMaximum(14); endc_p->SetMinimum(0); endc_p->Draw("colz"); for ( int i = 0; i < 136; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } canvas.SaveAs(filename.c_str()); return filename; }
std::string cond::PayLoadInspector< RPCObVmon >::plot | ( | std::string const & | filename, |
std::string const & | str, | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 293 of file RPCObVmonPyWrapper.cc.
References builder_last_value_cfg::authPath, trackerHits::c, cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), i, Association::map, RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, funct::pow(), plotscripts::rms(), cond::DbConnectionConfiguration::setAuthenticationPath(), mathSSE::sqrt(), cond::DbTransaction::start(), cond::toUNIX(), cond::DbSession::transaction(), and relativeConstraints::value.
{ //std::vector<std::string> strs; //std::string str1 = "123@321@edr"; //boost::split(strs, str1, boost::is_any_of("@")); //std::cout << strs[0] << strs[1] << strs[2]; gStyle->SetPalette(1); TH1D *vDistr=new TH1D("vDistr","IOV-averaged HV Distribution;Average HV (V);Entries/0.2 #muA",100,5000.,10000.); TH1D *rmsDistr=new TH1D("rmsDistr","RMS over IOV-HV Distribution;HV RMS (V);Entries/0.2 #muA",1000,0.,1000.);//rmsDistr->SetBit(TH1::kCanRebin); //BEGIN OF NEW DB-SESSION PART //hardcoded values std::string authPath="/afs/cern.ch/cms/DB/conddb"; std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; //frontend sends token instead of filename std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); //get the actual object boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); //we have the object... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; //END OF NEW DB-SESSION PART std::vector<RPCObVmon::V_Item> const & vmon = object().ObVmon_rpc; std::map<int,std::pair<std::vector<double>,std::vector<double> > > dpidMap; for(unsigned int i = 0;i < vmon.size(); ++i){ for(unsigned int p = 0; p < pvssCont.size(); ++p){ if(vmon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue; if(dpidMap.find(vmon[i].dpid)==dpidMap.end()){ std::vector<double> dumVec1;dumVec1.push_back(vmon[i].value); std::vector<double> dumVec2;dumVec2.push_back((double)toUNIX(vmon[i].day,vmon[i].time)); dpidMap[vmon[i].dpid]=make_pair(dumVec1,dumVec2); } else { dpidMap[vmon[i].dpid].first.push_back(vmon[i].value); dpidMap[vmon[i].dpid].second.push_back((double)toUNIX(vmon[i].day,vmon[i].time)); } } } double maxMean(-1.),maxRms(-1.); double minMean(9999.),minRms(9999.); std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator minIt,maxIt; std::vector<float> means,rmss; for(std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator mIt=dpidMap.begin(); mIt!=dpidMap.end();mIt++){ std::pair<double, std::vector<double> > meanAndVals = make_pair(accumulate(mIt->second.first.begin(),mIt->second.first.end(),0.)/(double)mIt->second.first.size(),mIt->second.first); vDistr->Fill(meanAndVals.first); if(meanAndVals.first>maxMean)maxMean=meanAndVals.first; if(meanAndVals.first<minMean)minMean=meanAndVals.first; double rms(0.); for(std::vector<double>::iterator rmsIt=meanAndVals.second.begin(); rmsIt!=meanAndVals.second.end();++rmsIt){ rms+=pow((*rmsIt-meanAndVals.first)/(double)meanAndVals.second.size(),2); } rmsDistr->Fill(sqrt(rms));std::cout<<sqrt(rms)<<std::endl; if(sqrt(rms)>maxRms){ maxRms=sqrt(rms); maxIt=mIt; } if(sqrt(rms)<minRms){ minRms=sqrt(rms); if(mIt->second.first.size()>5) minIt=mIt; } means.push_back(meanAndVals.first); rmss.push_back(sqrt(rms)); } if(maxMean<100.) vDistr->GetXaxis()->SetRangeUser(minMean-0.00001,maxMean+1.); if(maxRms<1000.) rmsDistr->GetXaxis()->SetRangeUser(minRms-0.00001,maxRms+1.); TCanvas c("Vmon","Vmon",1200,700); c.Divide(2,2); //TVirtualPad *p1=c.cd(1); // p1->SetLogy(1); c.cd(1); vDistr->SetFillColor(4); vDistr->SetLineColor(4); vDistr->Draw(); //TVirtualPad *p2=c.cd(2); // p2->SetLogy(1); c.cd(2); rmsDistr->SetFillColor(3); rmsDistr->SetLineColor(3); rmsDistr->Draw(); c.cd(3); TGraph *vRmsDistr=new TGraph(means.size(),static_cast<const float *>(&rmss[0]),static_cast<const float *>(&means[0])); vRmsDistr->SetMarkerStyle(7); vRmsDistr->SetMarkerColor(2); //TF1 *func=new TF1("linearF",linearF,minRms,maxRms,1); // vRmsDistr->Fit("linearF","r"); vRmsDistr->GetXaxis()->SetTitle("HV RMS (V)"); vRmsDistr->GetYaxis()->SetTitle("HV Means (V)"); vRmsDistr->Draw("AP"); c.cd(4); TMultiGraph *mProf=new TMultiGraph(); TLegend *leg=new TLegend(0.65,0.91,0.99,0.99); TGraph *minProf=new TGraph(minIt->second.first.size(),&minIt->second.second[0],&minIt->second.first[0]); TGraph *maxProf=new TGraph(maxIt->second.first.size(),&maxIt->second.second[0],&maxIt->second.first[0]); minProf->SetMarkerStyle(20); maxProf->SetMarkerStyle(20); minProf->SetMarkerColor(2); maxProf->SetMarkerColor(4); mProf->Add(minProf); leg->AddEntry(minProf,"V vs IOV for Min RMS case","lpf"); mProf->Add(maxProf); leg->AddEntry(maxProf,"V vs IOV for Max RMS case","lpf"); leg->Draw(); mProf->Draw("AP"); mProf->GetXaxis()->SetTitle("IOV"); mProf->GetYaxis()->SetTitle("I (V)"); c.SaveAs(filename.c_str()); return filename.c_str(); }
std::string cond::PayLoadInspector< SiStripDetVOff >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripDetVOffPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTTtrig >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTTtrigPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTLVStatus >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTLVStatusPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< L1TriggerScaler >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 125 of file L1TriggerScalerPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalADCToGeVConstant >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 51 of file EcalADCToGeVConstantPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< RunNumber >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 66 of file RunNumberPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalChannelStatus >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 148 of file EcalChannelStatusPyWrapper.cc.
References Reference_intrackfit_cff::barrel, svgfig::canvas(), lut2db_cfg::filename, cmsRelvalreport::green(), i, ExpressReco_HICollisions_FallBack::id, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, cmsRelvalreport::red(), EEDetId::validDetId(), and ExpressReco_HICollisions_FallBack::x.
{ // use David's palette gStyle->SetPalette(1); const Int_t NRGBs = 5; const Int_t NCont = 255; Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 }; Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 }; Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 }; Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 }; TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont); gStyle->SetNumberContours(NCont); TCanvas canvas("CC map","CC map",800,800); TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.); padb->Draw(); TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45); padem->Draw(); TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45); padep->Draw(); const int kSides = 2; const int kBarlRings = EBDetId::MAX_IETA; const int kBarlWedges = EBDetId::MAX_IPHI; const int kEndcWedgesX = EEDetId::IX_MAX; const int kEndcWedgesY = EEDetId::IY_MAX; TH2F* barrel = new TH2F("EB","EB Channel Status",360,0,360, 171, -85,86); TH2F* endc_p = new TH2F("EE+","EE+ Channel Status",100,1,101,100,1,101); TH2F* endc_m = new TH2F("EE-","EE- Channel Status",100,1,101,100,1,101); for (int sign=0; sign < kSides; sign++) { int thesign = sign==1 ? 1:-1; for (int ieta=0; ieta<kBarlRings; ieta++) { for (int iphi=0; iphi<kBarlWedges; iphi++) { EBDetId id((ieta+1)*thesign, iphi+1); barrel->Fill(iphi, ieta*thesign + thesign, object()[id.rawId()].getStatusCode()); // if(iphi < 20 && object()[id.rawId()].getStatusCode() > 10) // std::cout << " phi " << iphi << " eta " << ieta << " status " << object()[id.rawId()].getStatusCode() << std::endl; } // iphi } // ieta for (int ix=0; ix<kEndcWedgesX; ix++) { for (int iy=0; iy<kEndcWedgesY; iy++) { if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue; EEDetId id(ix+1,iy+1,thesign); if (thesign==1) { endc_p->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode()); } else{ endc_m->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode()); } } // iy } // ix } // side TLine* l = new TLine(0., 0., 0., 0.); l->SetLineWidth(1); padb->cd(); barrel->SetStats(0); barrel->SetMaximum(14); barrel->SetMinimum(0); barrel->Draw("colz"); for(int i = 0; i <17; i++) { Double_t x = 20.+ (i *20); l = new TLine(x,-85.,x,86.); l->Draw(); } l = new TLine(0.,0.,360.,0.); l->Draw(); int ixSectorsEE[202] = { 62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96, 96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66, 91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44, 41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36, 36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66}; int iySectorsEE[202] = { 51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26, 36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56, 56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6}; padem->cd(); endc_m->SetStats(0); endc_m->SetMaximum(14); endc_m->SetMinimum(0); endc_m->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } padep->cd(); endc_p->SetStats(0); endc_p->SetMaximum(14); endc_p->SetMinimum(0); endc_p->Draw("colz"); for ( int i=0; i<201; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } canvas.SaveAs(filename.c_str()); return filename; }
std::string cond::PayLoadInspector< EcalFloatCondObjectContainer >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
there's a cleaner way to plot this map...
Definition at line 176 of file EcalFloatCondObjectContainerPyWrapper.cc.
References svgfig::canvas(), lut2db_cfg::filename, ExpressReco_HICollisions_FallBack::id, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, and EEDetId::validDetId().
{ gStyle->SetPalette(1); TCanvas canvas("CC map","CC map",840,280); //canvas.Divide(3,1); TPad pad1("p1","p1", 0.0, 0.0, 0.2, 1.0); TPad pad2("p2","p2", 0.2, 0.0, 0.8, 1.0); TPad pad3("p3","p3", 0.8, 0.0, 1.0, 1.0); pad1.Draw(); pad2.Draw(); pad3.Draw(); TH2F barrelmap("EB","EB",360,1,360, 171, -85,86); TH2F endcmap_p("EE+","EE+",100,1,101,100,1,101); TH2F endcmap_m("EE-","EE-",100,1,101,100,1,101); const int kSides = 2; const int kBarlRings = EBDetId::MAX_IETA; const int kBarlWedges = EBDetId::MAX_IPHI; const int kEndcWedgesX = EEDetId::IX_MAX; const int kEndcWedgesY = EEDetId::IY_MAX; for (int sign=0; sign<kSides; sign++) { int thesign = sign==1 ? 1:-1; for (int ieta=0; ieta<kBarlRings; ieta++) { for (int iphi=0; iphi<kBarlWedges; iphi++) { EBDetId id((ieta+1)*thesign, iphi+1); barrelmap.Fill(iphi+1,ieta*thesign + thesign, object()[id.rawId()]); } } for (int ix=0; ix<kEndcWedgesX; ix++) { for (int iy=0; iy<kEndcWedgesY; iy++) { if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue; EEDetId id(ix+1,iy+1,thesign); if (thesign==1) { endcmap_p.Fill(ix+1,iy+1,object()[id.rawId()]); } else{ endcmap_m.Fill(ix+1,iy+1,object()[id.rawId()]); } }//iy }//ix } //canvas.cd(1); pad1.cd(); endcmap_m.SetStats(0); endcmap_m.Draw("colz"); //canvas.cd(2); pad2.cd(); barrelmap.SetStats(0); barrelmap.Draw("colz"); //canvas.cd(3); pad3.cd(); endcmap_p.SetStats(0); endcmap_p.Draw("colz"); canvas.SaveAs(filename.c_str()); return filename; }
std::string cond::PayLoadInspector< RunSummary >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 82 of file RunSummaryPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripBadStrip >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripBadStripPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< EcalDAQTowerStatus >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 142 of file EcalDAQTowerStatusPyWrapper.cc.
References Reference_intrackfit_cff::barrel, svgfig::canvas(), EcalTrigTowerDetId::detIdFromDenseIndex(), end, lut2db_cfg::filename, spr::find(), i, EcalTrigTowerDetId::ieta(), EcalTrigTowerDetId::iphi(), EcalScDetId::ix(), EcalScDetId::iy(), EcalTrigTowerDetId::kEBTotalTowers, EcalTrigTowerDetId::kEETotalTowers, prof2calltree::l, EcalScDetId::unhashIndex(), EcalScDetId::validHashIndex(), ExpressReco_HICollisions_FallBack::x, and EcalScDetId::zside().
{ // std::string fname = filename + ".txt"; // EcalDAQTowerStatusXMLTranslator::plot(fname, object()); // return fname; TCanvas canvas("CC map","CC map",800,800); TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.); padb->Draw(); TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45); padem->Draw(); TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45); padep->Draw(); TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 34, -17, 17); TH2F* endc_p = new TH2F("EE+","EE+ Tower Status",22, 0, 22, 22, 0, 22); TH2F* endc_m = new TH2F("EE-","EE- Tower Status",22, 0, 22, 22, 0, 22); for(uint cellid = 0; cellid < EcalTrigTowerDetId::kEBTotalTowers; ++cellid) { EcalTrigTowerDetId rawid = EcalTrigTowerDetId::detIdFromDenseIndex(cellid); if (object().find(rawid) == object().end()) continue; int ieta = rawid.ieta(); if(ieta > 0) ieta--; // 1 to 17 int iphi = rawid.iphi() - 1; // 0 to 71 barrel->Fill(iphi, ieta, object()[rawid].getStatusCode()); } for(uint cellid = 0; cellid < EcalTrigTowerDetId::kEETotalTowers; ++cellid) { if(EcalScDetId::validHashIndex(cellid)) { EcalScDetId rawid = EcalScDetId::unhashIndex(cellid); int ix = rawid.ix(); // 1 to 20 int iy = rawid.iy(); // 1 to 20 int side = rawid.zside(); if(side == -1) endc_m->Fill(ix, iy, object()[rawid].getStatusCode()); else endc_p->Fill(ix, iy, object()[rawid].getStatusCode()); } } TLine* l = new TLine(0., 0., 0., 0.); l->SetLineWidth(1); padb->cd(); barrel->SetStats(0); // barrel->SetMaximum(14); // barrel->SetMinimum(0); // barrel->Draw("colz"); barrel->Draw("col"); for(int i = 0; i <17; i++) { Double_t x = 4.+ (i * 4); l = new TLine(x, -17., x, 17.); l->Draw(); } l = new TLine(0., 0., 72., 0.); l->Draw(); int ixSectorsEE[136] = { 8,14,14,17,17,18,18,19,19,20,20,21,21,20,20,19,19,18,18,17, 17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8, 8, 9, 9,10,10,12,12,13,13,12,12,10,10, 9, 9, 10,10, 0,11,11, 0,10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 0,12,13, 13,14,14,15,15,16,16,17,17, 0, 9, 8, 8, 3, 3, 1, 0,13,14,14, 19,19,21, 0, 9, 8, 8, 7, 7, 5, 5, 3, 3, 2, 0,13,14,14,15,15, 17,17,19,19,20, 0,14,14,13,13,12,12,0}; int iySectorsEE[136] = { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8,14,14,17,17,18,18,19,19, 20,20,21,21,20,20,19,19,18,18,17,17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 4, 4, 7, 7, 9, 9,10,10,12,12,13,13,12,12,10, 10, 9, 0,13,21, 0,13,13,14,14,15,15,16,16,18,18,19, 0,13,13, 14,14,15,15,16,16,18,18,19, 0,11,11,12,12,13,13, 0,11,11,12, 12,13,13, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0, 2, 4, 4, 7, 7, 9, 0} ; padem->cd(); endc_m->SetStats(0); endc_m->Draw("col"); for ( int i = 0; i < 136; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } padep->cd(); endc_p->SetStats(0); endc_p->Draw("col"); for ( int i = 0; i < 136; i=i+1) { if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) && (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) { l->DrawLine(ixSectorsEE[i], iySectorsEE[i], ixSectorsEE[i+1], iySectorsEE[i+1]); } } canvas.SaveAs(filename.c_str()); return filename; }
std::string cond::PayLoadInspector< AlCaRecoTriggerBits >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 59 of file AlCaRecoTriggerBitsPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripApvGain >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripApvGainPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTCCBConfig >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTCCBConfigPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTMtime >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTMtimePyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripConfObject >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 49 of file SiStripConfObjectPyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< DTPerformance >::plot | ( | std::string const & | filename, |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | |||
) | const |
Definition at line 48 of file DTPerformancePyWrapper.cc.
References f, and alignmentValidation::fname.
std::string cond::PayLoadInspector< SiStripBadStrip >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripBadStripPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< RPCObTemp >::summary | ( | void | ) | const |
Definition at line 180 of file RPCObTempPyWrapper.cc.
References builder_last_value_cfg::authPath, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), i, RPCGeomServ::name(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, relativeConstraints::ring, cond::DbConnectionConfiguration::setAuthenticationPath(), cond::DbTransaction::start(), relativeConstraints::station, and cond::DbSession::transaction().
{ std::stringstream ss; //hardcoded values std::string authPath="/afs/cern.ch/cms/DB/conddb"; std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; //frontend sends token instead of filename std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); //get the actual object boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); //we have the object... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; std::vector<RPCObTemp::T_Item> const & tmon = object().ObTemp_rpc; ss <<"DetID\t\t"<<"T(C)\t"<<"Time\t"<<"Day\n"; for(unsigned int i = 0; i < tmon.size(); ++i ){ for(unsigned int p = 0; p < pvssCont.size(); ++p){ if(tmon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=4 || pvssCont[p].region!=0)continue; RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1); RPCGeomServ rGS(rpcId); std::string chName(rGS.name().substr(0,rGS.name().find("_Backward"))); ss <<chName <<"\t"<<tmon[i].value<<"\t"<<tmon[i].time<<"\t"<<tmon[i].day<<"\n"; } } dbSes.close(); return ss.str(); }
std::string cond::PayLoadInspector< DTT0 >::summary | ( | void | ) | const |
Definition at line 41 of file DTT0PyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTDeadFlag >::summary | ( | void | ) | const |
Definition at line 41 of file DTDeadFlagPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTLVStatus >::summary | ( | void | ) | const |
Definition at line 41 of file DTLVStatusPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripDetVOff >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripDetVOffPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< DTTtrig >::summary | ( | void | ) | const |
Definition at line 41 of file DTTtrigPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripLorentzAngle >::summary | ( | void | ) | const |
Definition at line 40 of file SiStripLorentzAnglePyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< RunInfo >::summary | ( | void | ) | const |
Definition at line 49 of file RunInfoPyWrapper.cc.
References i, and dbtoconf::object.
{ std::stringstream ss; ss << "RUN: "<<object().m_run; ss << ", START TIME: " << object().m_start_time_str; ss << ", STOP TIME:" << object().m_stop_time_str; ss << ", START CURRENT: " << object().m_start_current; ss << ", STOP CURRENT: " << object().m_stop_current; ss << ", AVG CURRENT: " << object().m_avg_current; ss << ", MIN CURRENT: " << object().m_min_current; ss << ", MAX CURRENT: " << object().m_max_current; ss << ", RUN INTERVALL IN MICROSECONDS: "<< object().m_run_intervall_micros; /* ss << ", ALL CURRENT VALUE FROM STOP TO START (BACKWARD) :" ; for (size_t i=0; i< object().m_current.size() ; i++){ ss<< object().m_current[i] << ", "; } */ ss << ", FED IN :" ; for (size_t i=0; i<object().m_fed_in.size(); i++){ ss<< object().m_fed_in[i] << ", "; } return ss.str(); }
std::string cond::PayLoadInspector< DTTPGParameters >::summary | ( | void | ) | const |
Definition at line 41 of file DTTPGParametersPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTReadOutMapping >::summary | ( | void | ) | const |
Definition at line 41 of file DTReadOutMappingPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalGainRatios >::summary | ( | void | ) | const |
Definition at line 54 of file EcalGainRatiosPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< RPCObGas >::summary | ( | void | ) | const |
Definition at line 200 of file RPCObGasPyWrapper.cc.
{ // std::stringstream ss; // //BEGIN OF NEW DB-SESSION PART // //hardcoded values // std::string authPath="/afs/cern.ch/cms/DB/conddb"; // std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; // //frontend sends token instead of filename // std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; // //make connection object // DbConnection dbConn; // //set in configuration object authentication path // dbConn.configuration().setAuthenticationPath(authPath); // dbConn.configure(); // //create session object from connection // DbSession dbSes=dbConn.createSession(); // //try to make connection // dbSes.open(conString,true); // //start a transaction (true=readOnly) // //cond::DbTransaction dbTr= // dbSes.transaction().start(true); // //get the actual object // boost::shared_ptr<RPCObPVSSmap> pvssPtr; // pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); // //we have the object... // std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; // //END OF NEW DB-SESSION PART // std::vector<RPCObGas::Item> const & gas = object().ObGas_rpc; // ss<<"DetID\t\t\tI(uA)\tTime\tDay\n"; // for(unsigned int i = 0; i < gas.size(); ++i ){ // for(unsigned int p = 0; p < pvssCont.size(); ++p){ // if(gas[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue; // RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1); // RPCGeomServ rGS(rpcId); // std::string chName(rGS.name().substr(0,rGS.name().find("_Backward"))); // ss <<chName <<"\t"<<gas[i].value<<"\t"<<gas[i].time<<"\t"<<gas[i].day<<"\n"; // } // } // //close db session // dbSes.close(); // return ss.str(); return ""; }
std::string cond::PayLoadInspector< L1TriggerScaler >::summary | ( | void | ) | const |
Definition at line 41 of file L1TriggerScalerPyWrapper.cc.
References i, and dbtoconf::object.
{ std::stringstream ss; ss << object().m_run.size() <<", "; if (!object().m_run.empty()) { ss << object().m_run.front().m_rn; ss << ", "; ss << object().m_run.front().m_lumisegment; ss << ", " << object().m_run.front().m_date; ss << ", " << object().m_run.front().m_date; for(size_t i=0; i<object().m_run.front().m_GTAlgoCounts.size(); i++ ){ ss << "m_GTAlgoCounts["<<i<<"] = "<< object().m_run.front().m_GTAlgoCounts[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTAlgoRates.size(); i++ ){ ss << "m_GTAlgoRates["<<i<<"] = "<< object().m_run.front().m_GTAlgoRates[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTAlgoPrescaling.size(); i++ ){ ss << "m_GTAlgoPrescaling["<<i<<"] = "<< object().m_run.front().m_GTAlgoPrescaling[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTTechCounts.size(); i++ ){ ss << " m_GTTechCounts["<<i<<"] = "<< object().m_run.front().m_GTTechCounts[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTTechRates.size(); i++ ){ ss << " m_GTTechRates["<<i<<"] = "<< object().m_run.front().m_GTTechRates[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTTechPrescaling.size(); i++ ){ ss << " m_GTTechPrescaling["<<i<<"] = "<< object().m_run.front().m_GTTechPrescaling[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTPartition0TriggerCounts.size(); i++ ){ ss << " m_GTPartition0TriggerCounts["<<i<<"] = "<< object().m_run.front().m_GTPartition0TriggerCounts[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTPartition0TriggerRates.size(); i++ ){ ss << " m_GTPartition0TriggerRates["<<i<<"] = "<< object().m_run.front().m_GTPartition0TriggerRates[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTPartition0DeadTime.size(); i++ ){ ss << " m_GTPartition0DeadTime["<<i<<"] = "<< object().m_run.front().m_GTPartition0DeadTime[i]<<std::endl; } for(size_t i=0; i<object().m_run.front().m_GTPartition0DeadTimeRatio.size(); i++ ){ ss << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< object().m_run.front().m_GTPartition0DeadTimeRatio[i]<<std::endl; } ss << "; "; ss << object().m_run.back().m_rn; ss << ", "; ss << object().m_run.back().m_lumisegment; ss << ", " << object().m_run.back().m_date; for(size_t i=0; i<object().m_run.back().m_GTAlgoCounts.size(); i++ ){ ss << "m_GTAlgoCounts["<<i<<"] = "<< object().m_run.back().m_GTAlgoCounts[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTAlgoRates.size(); i++ ){ ss << "m_GTAlgoRates["<<i<<"] = "<< object().m_run.back().m_GTAlgoRates[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTAlgoPrescaling.size(); i++ ){ ss << "m_GTAlgoPrescaling["<<i<<"] = "<< object().m_run.back().m_GTAlgoPrescaling[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTTechCounts.size(); i++ ){ ss << " m_GTTechCounts["<<i<<"] = "<< object().m_run.back().m_GTTechCounts[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTTechRates.size(); i++ ){ ss << " m_GTTechRates["<<i<<"] = "<< object().m_run.back().m_GTTechRates[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTTechPrescaling.size(); i++ ){ ss << " m_GTTechPrescaling["<<i<<"] = "<< object().m_run.back().m_GTTechPrescaling[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTPartition0TriggerCounts.size(); i++ ){ ss << " m_GTPartition0TriggerCounts["<<i<<"] = "<< object().m_run.back().m_GTPartition0TriggerCounts[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTPartition0TriggerRates.size(); i++ ){ ss << " m_GTPartition0TriggerRates["<<i<<"] = "<< object().m_run.back().m_GTPartition0TriggerRates[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTPartition0DeadTime.size(); i++ ){ ss << " m_GTPartition0DeadTime["<<i<<"] = "<< object().m_run.back().m_GTPartition0DeadTime[i]<<std::endl; } for(size_t i=0; i<object().m_run.back().m_GTPartition0DeadTimeRatio.size(); i++ ){ ss << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< object().m_run.back().m_GTPartition0DeadTimeRatio[i]<<std::endl; } } return ss.str(); }
std::string cond::PayLoadInspector< RPCObImon >::summary | ( | void | ) | const |
Definition at line 177 of file RPCObImonPyWrapper.cc.
References builder_last_value_cfg::authPath, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), i, RPCGeomServ::name(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, relativeConstraints::ring, cond::DbConnectionConfiguration::setAuthenticationPath(), cond::DbTransaction::start(), relativeConstraints::station, and cond::DbSession::transaction().
{ std::stringstream ss; //BEGIN OF NEW DB-SESSION PART //hardcoded values std::string authPath="/afs/cern.ch/cms/DB/conddb"; std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; //frontend sends token instead of filename std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) //cond::DbTransaction dbTr= dbSes.transaction().start(true); //get the actual object boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); //we have the object... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; //END OF NEW DB-SESSION PART std::vector<RPCObImon::I_Item> const & imon = object().ObImon_rpc; ss<<"DetID\t\t\tI(uA)\tTime\tDay\n"; for(unsigned int i = 0; i < imon.size(); ++i ){ for(unsigned int p = 0; p < pvssCont.size(); ++p){ if(imon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue; RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1); RPCGeomServ rGS(rpcId); std::string chName(rGS.name().substr(0,rGS.name().find("_Backward"))); ss <<chName <<"\t"<<imon[i].value<<"\t"<<imon[i].time<<"\t"<<imon[i].day<<"\n"; } } //close db session dbSes.close(); return ss.str(); }
std::string cond::PayLoadInspector< EcalMappingElectronics >::summary | ( | void | ) | const |
Definition at line 41 of file EcalMappingElectronicsPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalPedestals >::summary | ( | void | ) | const |
Definition at line 135 of file EcalPedestalsPyWrapper.cc.
References gather_cfg::cout, and dbtoconf::object.
std::string cond::PayLoadInspector< SiStripThreshold >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripThresholdPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< RPCObVmon >::summary | ( | void | ) | const |
Definition at line 200 of file RPCObVmonPyWrapper.cc.
References builder_last_value_cfg::authPath, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), i, RPCGeomServ::name(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, relativeConstraints::ring, cond::DbConnectionConfiguration::setAuthenticationPath(), cond::DbTransaction::start(), relativeConstraints::station, and cond::DbSession::transaction().
{ //hardcoded values std::string authPath="/afs/cern.ch/cms/DB/conddb"; std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC"; //frontend sends token instead of filename std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); //get the actual object boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token); //we have the object... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc; std::stringstream ss; std::vector<RPCObVmon::V_Item> const & vmon = object().ObVmon_rpc; ss <<"DetID\t\t"<<"V(V)\t"<<"Time\t"<<"Day\n"; for(unsigned int i = 0; i < vmon.size(); ++i ){ for(unsigned int p = 0; p < pvssCont.size(); ++p){ if(vmon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue; RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1); RPCGeomServ rGS(rpcId); std::string chName(rGS.name().substr(0,rGS.name().find("_Backward"))); ss <<chName <<"\t"<<vmon[i].value<<"\t"<<vmon[i].time<<"\t"<<vmon[i].day<<"\n"; } } dbSes.close(); return ss.str(); }
std::string cond::PayLoadInspector< SiStripSummary >::summary | ( | void | ) | const |
Definition at line 81 of file SiStripSummaryPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; ss << "Nr.Det " << object().getRegistryVectorEnd()-object().getRegistryVectorBegin() << "\nNr.Quantities " << object().getUserDBContent().size() << "\nNr.values " << object().getDataVectorEnd()-object().getDataVectorBegin() << "\nRunNr= " << object().getRunNr() << "\ntimeValue= " << object().getTimeValue(); //ss << "names of DBquantities "; //std::vector<std::string> listWhat= object().getUserDBContent(); //for(size_t i=0;i<listWhat.size();++i) // ss << listWhat[i] << "\n"; return ss.str(); }
std::string cond::PayLoadInspector< SiStripRunSummary >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripRunSummaryPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTRangeT0 >::summary | ( | void | ) | const |
Definition at line 41 of file DTRangeT0PyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DataT >::summary | ( | ) | const [inline] |
Definition at line 124 of file PayLoadInspector.h.
{
std::ostringstream os;
os << std::endl;
return os.str();
}
std::string cond::PayLoadInspector< DTCCBConfig >::summary | ( | void | ) | const |
Definition at line 41 of file DTCCBConfigPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< RunSummary >::summary | ( | void | ) | const |
Definition at line 41 of file RunSummaryPyWrapper.cc.
References i, and dbtoconf::object.
{ std::stringstream ss; ss << "RUN: "<<object().m_run; ss << ", NAME: " <<object().m_name; ss << ", START TIME: " << object().m_start_time_str; ss << ", STOP TIME:" << object().m_stop_time_str; ss << ", LUMISECTIONS: " << object().m_lumisections; ss << ", HLT_KEY: " << object().m_hltkey; ss << ", TRG_NEVENTS: " << object().m_nevents; ss << ", TRG_RATE: " << object().m_rate; ss << ", SUBDETS IB RUN: "; for (size_t i=0; i<object().m_subdt_in.size() ; i++){ if (object().m_subdt_in[i]==0) { ss<< "PIXEL, "; } if (object().m_subdt_in[i]==1) { ss<<"TRACKER, "; } if (object().m_subdt_in[i]==2) { ss<< "ECAL, " ; } if (object().m_subdt_in[i]==3) { ss<< "HCAL, "; } if (object().m_subdt_in[i]==4) { ss<<"DT," ; } if (object().m_subdt_in[i]==5) { ss<<"CSC,"; } if (object().m_subdt_in[i]==6) { ss<<"RPC, "; } } return ss.str(); }
std::string cond::PayLoadInspector< SiStripFedCabling >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripFedCablingPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< RunNumber >::summary | ( | void | ) | const |
Definition at line 43 of file RunNumberPyWrapper.cc.
References i, and dbtoconf::object.
{ std::stringstream ss; ss << object().m_runnumber.size() <<", "; if (!object().m_runnumber.empty()) { ss << object().m_runnumber.front().m_run; ss << ", "; ss << object().m_runnumber.front().m_name; ss << ", " << object().m_runnumber.front().m_start_time_str; ss << "; "; ss << ", " << object().m_runnumber.front().m_stop_time_str; ss << "; "; for (size_t i=0; i< object().m_runnumber.front().m_subdt_joined.size(); ++i){ ss << ", " << object().m_runnumber.front().m_subdt_joined[i]; ss << "; "; } } return ss.str(); }
std::string cond::PayLoadInspector< SiStripConfObject >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripConfObjectPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< EcalLaserAPDPNRatios >::summary | ( | void | ) | const |
Definition at line 46 of file EcalLaserAPDPNRatiosPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTMtime >::summary | ( | void | ) | const |
Definition at line 41 of file DTMtimePyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< DTStatusFlag >::summary | ( | void | ) | const |
Definition at line 41 of file DTStatusFlagPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalTBWeights >::summary | ( | void | ) | const |
Definition at line 45 of file EcalTBWeightsPyWrapper.cc.
References EcalCondTools::dumpXML(), and h.
{ std::stringstream ss; EcalCondHeader h; ss<< EcalTBWeightsXMLTranslator::dumpXML(h,object()); return ss.str(); }
std::string cond::PayLoadInspector< SiStripNoises >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripNoisesPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< EcalADCToGeVConstant >::summary | ( | void | ) | const |
Definition at line 43 of file EcalADCToGeVConstantPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().print(ss); return ss.str(); }
std::string cond::PayLoadInspector< DTHVStatus >::summary | ( | void | ) | const |
Definition at line 41 of file DTHVStatusPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< SiStripPedestals >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripPedestalsPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< EcalWeightXtalGroups >::summary | ( | void | ) | const |
Definition at line 43 of file EcalWeightXtalGroupsPyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< RPCObPVSSmap >::summary | ( | void | ) | const |
Definition at line 32 of file RPCObPVSSmapPyWrapper.cc.
References i, and dbtoconf::object.
{ std::stringstream ss; std::vector<RPCObPVSSmap::Item> const & vdetid = object().ObIDMap_rpc; for(unsigned int i = 0; i < vdetid.size(); ++i ){ ss <<vdetid[i].dpid <<" "<<vdetid[i].region<<" "<<vdetid[i].ring<<" "<<vdetid[i].sector<<" "<<vdetid[i].station<<" "<<vdetid[i].layer<<" "<<vdetid[i].subsector<<" "<<vdetid[i].suptype<<" "; } return ss.str(); }
std::string cond::PayLoadInspector< EcalDAQTowerStatus >::summary | ( | void | ) | const |
Definition at line 129 of file EcalDAQTowerStatusPyWrapper.cc.
References gather_cfg::cout, and dbtoconf::object.
std::string cond::PayLoadInspector< AlCaRecoTriggerBits >::summary | ( | void | ) | const |
Definition at line 41 of file AlCaRecoTriggerBitsPyWrapper.cc.
References dbtoconf::object, and query::result.
{ // std::stringstream ss; std::string result = "empty map"; if( object().m_alcarecoToTrig.size() > 0 ) { // ss << "trigger bit : value \n"; // std::map<std::string, std::string>::const_iterator it = object().m_alcarecoToTrig.begin(); //std::vector<std::string> strs; //boost::split(strs, object().m_alcarecoToTrig.begin()->second, boost::is_any_of(";")); result = object().m_alcarecoToTrig.begin()->first +" :\n"+ object().m_alcarecoToTrig.begin()->second; boost::replace_all(result, ";", ";\n"); //ss << it->first << " : " << it->second << "\n"; } return result; }
std::string cond::PayLoadInspector< DTPerformance >::summary | ( | void | ) | const |
Definition at line 41 of file DTPerformancePyWrapper.cc.
{
std::stringstream ss;
return ss.str();
}
std::string cond::PayLoadInspector< EcalFloatCondObjectContainer >::summary | ( | void | ) | const |
Definition at line 164 of file EcalFloatCondObjectContainerPyWrapper.cc.
References dbtoconf::object.
std::string cond::PayLoadInspector< EcalChannelStatus >::summary | ( | void | ) | const |
Definition at line 140 of file EcalChannelStatusPyWrapper.cc.
References cond::ecalcond::bad().
{ std::stringstream ss; ss << ecalcond::bad(object().barrelItems()) << ", " << ecalcond::bad(object().endcapItems()); return ss.str(); }
std::string cond::PayLoadInspector< EcalDCSTowerStatus >::summary | ( | void | ) | const |
Definition at line 130 of file EcalDCSTowerStatusPyWrapper.cc.
References gather_cfg::cout, and dbtoconf::object.
std::string cond::PayLoadInspector< SiStripApvGain >::summary | ( | void | ) | const |
Definition at line 41 of file SiStripApvGainPyWrapper.cc.
References dbtoconf::object.
{ std::stringstream ss; object().printSummary(ss); return ss.str(); }
std::string cond::PayLoadInspector< DataT >::summary_adv | ( | std::string const & | , |
std::vector< int > const & | , | ||
std::vector< float > const & | , | ||
std::vector< std::string > const & | |||
) | const [inline] |
Definition at line 142 of file PayLoadInspector.h.
{return "";}
std::string cond::PayLoadInspector< RPCObVmon >::summary_adv | ( | std::string const & | opt_str, |
std::vector< int > const & | vInts, | ||
std::vector< float > const & | vFloats, | ||
std::vector< std::string > const & | vStrings | ||
) | const |
Definition at line 182 of file RPCObVmonPyWrapper.cc.
{ std::stringstream ss; std::vector<std::string>::const_iterator iStr; ss << "Strings got: " << std::endl; for (iStr = vStrings.begin(); iStr != vStrings.end(); ++ iStr){ ss << *iStr << std::endl; } return ss.str(); }
std::string cond::PayLoadInspector< RPCObGas >::trend_plot | ( | std::string const & | filename, |
std::string const & | opt_string, | ||
std::vector< int > const & | nts, | ||
std::vector< float > const & | floats, | ||
std::vector< std::string > const & | strings | ||
) | const |
Definition at line 424 of file RPCObGasPyWrapper.cc.
{ // std::stringstream ss(""); // if(strings.size()<2) // return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)"); // std::vector<std::string>::const_iterator strIt=strings.begin(); // std::string conString=(*strIt);strIt++; // std::string authPath=(*strIt);strIt++; // //BEGIN OF NEW DB-SESSION PART // //make connection object // DbConnection dbConn; // //set in configuration object authentication path // dbConn.configuration().setAuthenticationPath(authPath); // dbConn.configure(); // //create session object from connection // DbSession dbSes=dbConn.createSession(); // //try to make connection // dbSes.open(conString,true); // //start a transaction (true=readOnly) // dbSes.transaction().start(true); // std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; // //get the actual object // boost::shared_ptr<RPCObGas> gasPtr; // boost::shared_ptr<RPCObPVSSmap> pvssPtr; // pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken); // //we get the objects... // std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero; // for(unsigned int p=0;p<pvssCont.size();p++){ // if(pvssCont[p].suptype!=0) // pvssZero.push_back(pvssCont[p]); // } // std::string token; // std::vector<float> vecI;vecI.assign(floats.size(),0.); // int elCount(0); // for(;strIt!=strings.end();++strIt){ // token=(*strIt); // gasPtr=dbSes.getTypedObject<RPCObGas>(token); // std::vector<RPCObGas::Item> const & gas = gasPtr->ObGas_rpc; // float iCount(0.); // for(unsigned int i=0;i<gas.size();i++){ // for(unsigned int p=0;p<pvssZero.size();p++){ // if(gas[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue; // iCount++; // vecI[elCount]+=gas[i].value; // } // } // if(iCount!=0) // vecI[elCount]/=iCount; // elCount++; // } // //END OF NEW DB-SESSION PART // dbSes.close(); // std::vector<unsigned long long> lngs ; // for(std::vector<float>::const_iterator fIt=floats.begin();fIt!=floats.end();fIt++){ // lngs.push_back((unsigned long long)*fIt); // // std::cout<<*fIt<<" "<<(long double)*fIt<<" "<<(unsigned long long)*fIt<<" "<<vecI[0]<<" "<<(unsigned long long)vecI[0]<<std::endl; // } // std::vector<unsigned long long> const longs=lngs; // // TGraph trend(vecI.size(),static_cast<const float *>(&longs[0]),static_cast<const float *>(&vecI[0])); // std::cout<<(int)longs[longs.size()-1]-longs[0]<<std::endl; // TH1F trend("trend","trend",(int)longs[longs.size()-1]-longs[0],longs[0],longs[longs.size()-1]); // //TH1F trend("trend","trend",floats.size(),static_cast<const float* >(&floats[0])); // trend.GetXaxis()->SetTimeDisplay(1); // trend.GetXaxis()->SetTimeFormat("%d/%m/%y %H:%M"); // trend.SetLineColor(2); // trend.SetLineWidth(2); // trend.GetYaxis()->SetTitle("<I> (#muA)"); // std::cout<<"Bins "<<trend.GetNbinsX()<<std::endl; // for(unsigned int fill=0;fill<=longs.size();fill++){ // trend.SetBinContent(longs[fill]-longs[0],vecI[fill]); // std::cout<<fill<<" "<<floats[fill]<<" "<<longs[fill]-longs[0]<<" "<<vecI[fill]<<std::endl; // } // float min(*(floats.begin())),max(*(floats.end()-1)); // float scaleToggle((max-min)/max); // TCanvas c("Itrend","Itrend",1200,700); // if(scaleToggle>=0.1) // c.SetLogx(1); // trend.Draw(/*"LA*"*/); // TLegend leg(0.65,0.91,0.99,0.99); // leg.AddEntry(&trend,"Gas trend","lpf"); // leg.Draw(""); // ss.str(""); // ss<<filename<<".C"; // c.SaveAs((ss.str()).c_str()); // return ss.str(); return ""; }
std::string cond::PayLoadInspector< RPCObImon >::trend_plot | ( | std::string const & | filename, |
std::string const & | opt_string, | ||
std::vector< int > const & | nts, | ||
std::vector< float > const & | floats, | ||
std::vector< std::string > const & | strings | ||
) | const |
Definition at line 428 of file RPCObImonPyWrapper.cc.
References builder_last_value_cfg::authPath, trackerHits::c, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), asciidump::elCount, cond::DbSession::getTypedObject(), i, max(), min, RPCObPVSSmap::ObIDMap_rpc, RPCObImon::ObImon_rpc, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, cond::DbConnectionConfiguration::setAuthenticationPath(), cond::DbTransaction::start(), and cond::DbSession::transaction().
{ std::stringstream ss(""); if(strings.size()<2) return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)"); std::vector<std::string>::const_iterator strIt=strings.begin(); std::string conString=(*strIt);strIt++; std::string authPath=(*strIt);strIt++; //BEGIN OF NEW DB-SESSION PART //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //get the actual object boost::shared_ptr<RPCObImon> imonPtr; boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken); //we get the objects... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero; for(unsigned int p=0;p<pvssCont.size();p++){ if(pvssCont[p].suptype!=0) pvssZero.push_back(pvssCont[p]); } std::string token; std::vector<float> vecI;vecI.assign(floats.size(),0.); int elCount(0); for(;strIt!=strings.end();++strIt){ token=(*strIt); imonPtr=dbSes.getTypedObject<RPCObImon>(token); std::vector<RPCObImon::I_Item> const & imon = imonPtr->ObImon_rpc; float iCount(0.); for(unsigned int i=0;i<imon.size();i++){ for(unsigned int p=0;p<pvssZero.size();p++){ if(imon[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue; iCount++; vecI[elCount]+=imon[i].value; } } if(iCount!=0) vecI[elCount]/=iCount; elCount++; } //END OF NEW DB-SESSION PART dbSes.close(); std::vector<unsigned long long> lngs ; for(std::vector<float>::const_iterator fIt=floats.begin();fIt!=floats.end();fIt++){ lngs.push_back((unsigned long long)*fIt); // std::cout<<*fIt<<" "<<(long double)*fIt<<" "<<(unsigned long long)*fIt<<" "<<vecI[0]<<" "<<(unsigned long long)vecI[0]<<std::endl; } std::vector<unsigned long long> const longs=lngs; // TGraph trend(vecI.size(),static_cast<const float *>(&longs[0]),static_cast<const float *>(&vecI[0])); std::cout<<(int)longs[longs.size()-1]-longs[0]<<std::endl; TH1F trend("trend","trend",(int)longs[longs.size()-1]-longs[0],longs[0],longs[longs.size()-1]); //TH1F trend("trend","trend",floats.size(),static_cast<const float* >(&floats[0])); trend.GetXaxis()->SetTimeDisplay(1); trend.GetXaxis()->SetTimeFormat("%d/%m/%y %H:%M"); trend.SetLineColor(2); trend.SetLineWidth(2); trend.GetYaxis()->SetTitle("<I> (#muA)"); std::cout<<"Bins "<<trend.GetNbinsX()<<std::endl; for(unsigned int fill=0;fill<=longs.size();fill++){ trend.SetBinContent(longs[fill]-longs[0],vecI[fill]); std::cout<<fill<<" "<<floats[fill]<<" "<<longs[fill]-longs[0]<<" "<<vecI[fill]<<std::endl; } float min(*(floats.begin())),max(*(floats.end()-1)); float scaleToggle((max-min)/max); TCanvas c("Itrend","Itrend",1200,700); if(scaleToggle>=0.1) c.SetLogx(1); trend.Draw(/*"LA*"*/); TLegend leg(0.65,0.91,0.99,0.99); leg.AddEntry(&trend,"Imon trend","lpf"); leg.Draw(""); ss.str(""); ss<<filename<<".C"; c.SaveAs((ss.str()).c_str()); return ss.str(); }
std::string cond::PayLoadInspector< RPCObVmon >::trend_plot | ( | std::string const & | filename, |
std::string const & | opt_string, | ||
std::vector< int > const & | nts, | ||
std::vector< float > const & | floats, | ||
std::vector< std::string > const & | strings | ||
) | const |
Definition at line 447 of file RPCObVmonPyWrapper.cc.
References builder_last_value_cfg::authPath, trackerHits::c, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), asciidump::elCount, cond::DbSession::getTypedObject(), i, max(), min, RPCObPVSSmap::ObIDMap_rpc, RPCObVmon::ObVmon_rpc, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, cond::DbConnectionConfiguration::setAuthenticationPath(), cond::DbTransaction::start(), and cond::DbSession::transaction().
{ std::stringstream ss(""); if(strings.size()<2) return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)"); std::vector<std::string>::const_iterator strIt=strings.begin(); std::string conString=(*strIt);strIt++; std::string authPath=(*strIt);strIt++; //BEGIN OF NEW DB-SESSION PART //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //get the actual object boost::shared_ptr<RPCObVmon> vmonPtr; boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken); //we get the objects... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero; for(unsigned int p=0;p<pvssCont.size();p++){ if(pvssCont[p].suptype!=0) pvssZero.push_back(pvssCont[p]); } std::string token; std::vector<float> vecI;vecI.assign(floats.size(),0.); int elCount(0); for(;strIt!=strings.end();++strIt){ token=(*strIt); vmonPtr=dbSes.getTypedObject<RPCObVmon>(token); std::vector<RPCObVmon::V_Item> const & vmon = vmonPtr->ObVmon_rpc; float iCount(0.); for(unsigned int i=0;i<vmon.size();i++){ for(unsigned int p=0;p<pvssZero.size();p++){ if(vmon[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue; iCount++; vecI[elCount]+=vmon[i].value; } } if(iCount!=0) vecI[elCount]/=iCount; elCount++; } //END OF NEW DB-SESSION PART dbSes.close(); TGraph trend(vecI.size(),static_cast<const float *>(&floats[0]),static_cast<const float *>(&vecI[0])); trend.SetLineColor(2); trend.SetLineWidth(2); trend.GetYaxis()->SetTitle("<V> (V)"); float min(*(floats.begin())),max(*(floats.end()-1)); float scaleToggle((max-min)/max); TCanvas c("Itrend","Itrend",1200,700); if(scaleToggle>=0.1) c.SetLogx(1); trend.Draw("LA*"); TLegend leg(0.65,0.91,0.99,0.99); leg.AddEntry(&trend,"Vmon trend","lpf"); leg.Draw(""); ss.str(""); ss<<filename<<".C"; c.SaveAs((ss.str()).c_str()); return ss.str(); }
std::string cond::PayLoadInspector< RPCObTemp >::trend_plot | ( | std::string const & | filename, |
std::string const & | opt_string, | ||
std::vector< int > const & | nts, | ||
std::vector< float > const & | floats, | ||
std::vector< std::string > const & | strings | ||
) | const |
Definition at line 451 of file RPCObTempPyWrapper.cc.
References builder_last_value_cfg::authPath, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), asciidump::elCount, cond::DbSession::getTypedObject(), i, RPCObPVSSmap::ObIDMap_rpc, cond::DbSession::open(), L1TEmulatorMonitor_cff::p, cond::DbConnectionConfiguration::setAuthenticationPath(), cond::DbTransaction::start(), cond::rpcobtemp::temp, and cond::DbSession::transaction().
{ std::stringstream ss(""); if(strings.size()<2) return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)"); std::vector<std::string>::const_iterator strIt=strings.begin(); std::string conString=(*strIt);strIt++; std::string authPath=(*strIt);strIt++; //BEGIN OF NEW DB-SESSION PART //make connection object DbConnection dbConn; //set in configuration object authentication path dbConn.configuration().setAuthenticationPath(authPath); dbConn.configure(); //create session object from connection DbSession dbSes=dbConn.createSession(); //try to make connection dbSes.open(conString,true); //start a transaction (true=readOnly) dbSes.transaction().start(true); std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]"; //get the actual object boost::shared_ptr<RPCObTemp> tempPtr; boost::shared_ptr<RPCObPVSSmap> pvssPtr; pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken); //we get the objects... std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero; for(unsigned int p=0;p<pvssCont.size();p++){ if(pvssCont[p].suptype!=4) pvssZero.push_back(pvssCont[p]); } std::string token; std::vector<float> vecI;vecI.assign(floats.size(),0.); int elCount(0); for(;strIt!=strings.end();++strIt){ token=(*strIt); tempPtr=dbSes.getTypedObject<RPCObTemp>(token); std::vector<RPCObTemp::T_Item> const & temp = tempPtr->ObTemp_rpc; float iCount(0.); for(unsigned int i=0;i<temp.size();i++){ for(unsigned int p=0;p<pvssZero.size();p++){ if(temp[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue; iCount++; vecI[elCount]+=temp[i].value; } } if(iCount!=0) vecI[elCount]/=iCount; elCount++; } //END OF NEW DB-SESSION PART dbSes.close(); return ss.str(); }
std::string cond::PayLoadInspector< DataT >::trend_plot | ( | std::string const & | , |
std::string const & | , | ||
std::vector< int > const & | , | ||
std::vector< float > const & | , | ||
std::vector< std::string > const & | |||
) | const [inline] |
Definition at line 137 of file PayLoadInspector.h.
{return "";}
ora::Object cond::PayLoadInspector< DataT >::m_object [private] |
cond::Time_t cond::PayLoadInspector< DataT >::m_since [private] |
Definition at line 174 of file PayLoadInspector.h.
Referenced by cond::PayLoadInspector< DataT >::dump().
std::string cond::PayLoadInspector< DataT >::m_token [private] |
Definition at line 175 of file PayLoadInspector.h.
Referenced by cond::PayLoadInspector< DataT >::dump(), and cond::PayLoadInspector< DataT >::PayLoadInspector().