CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
cond::PayLoadInspector< DataT > Class Template Reference

#include <PayLoadInspector.h>

Public Types

typedef DataT Class
 
typedef ValueExtractor< DataT > Extractor
 

Public Member Functions

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<>
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 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
 
bool load (cond::IOVElementProxy const &elem)
 
Class const & object () const
 
ora::Object const & ora_object () const
 
 PayLoadInspector ()
 
 PayLoadInspector (cond::CondDB const &conddb)
 
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 &, 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<>
string plot (string const &filename, string const &, vector< int > const &, 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 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 &str, std::vector< int > const &vInt, std::vector< float > const &vFlt) 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 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
 
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<>
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 () 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_adv (std::string const &, std::vector< int > const &, std::vector< float > const &, std::vector< std::string > const &) 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
 
template<>
std::string trend_plot (std::string const &filename, std::string const &opt_string, std::vector< int > const &ints, 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
 
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 Attributes

ora::Object m_object
 
cond::DbSession m_session
 
cond::Time_t m_since
 
std::string m_token
 

Detailed Description

template<typename DataT>
class cond::PayLoadInspector< DataT >

Definition at line 65 of file PayLoadInspector.h.

Member Typedef Documentation

template<typename DataT >
typedef DataT cond::PayLoadInspector< DataT >::Class

Definition at line 67 of file PayLoadInspector.h.

template<typename DataT >
typedef ValueExtractor<DataT> cond::PayLoadInspector< DataT >::Extractor

Definition at line 68 of file PayLoadInspector.h.

Constructor & Destructor Documentation

template<typename DataT >
cond::PayLoadInspector< DataT >::PayLoadInspector ( )
inline

Definition at line 70 of file PayLoadInspector.h.

70 : m_since(0) {}
template<typename DataT >
cond::PayLoadInspector< DataT >::~PayLoadInspector ( )
inline

Definition at line 72 of file PayLoadInspector.h.

References ora::Object::address(), ora::Object::destruct(), and cond::PayLoadInspector< DataT >::m_object.

72  {
74  }
void * address() const
Definition: Object.cc:51
void destruct()
Definition: Object.cc:81
template<typename DataT >
cond::PayLoadInspector< DataT >::PayLoadInspector ( cond::CondDB const &  conddb)
inline

Definition at line 76 of file PayLoadInspector.h.

76  : m_session(conddb.session()), m_since(cond::invalidTime), m_token("") {
77  }
const Time_t invalidTime(0)
cond::DbSession m_session

Member Function Documentation

template<>
std::string cond::PayLoadInspector< EcalTimeOffsetConstant >::dump ( void  ) const

Definition at line 19 of file EcalTimeOffsetConstantPyWrapper.cc.

References EcalTimeOffsetXMLTranslator::dumpXML(), and contentValuesCheck::ss.

19  {
20  std::stringstream ss;
21  EcalCondHeader header;
22  ss << EcalTimeOffsetXMLTranslator::dumpXML(header,object());
23  return ss.str();
24  }
static std::string dumpXML(const EcalCondHeader &header, const EcalTimeOffsetConstant &record)
template<>
std::string cond::PayLoadInspector< EcalTimeBiasCorrections >::dump ( void  ) const

Definition at line 27 of file EcalTimeBiasCorrectionsPyWrapper.cc.

References EcalTimeBiasCorrectionsXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

27  {
28  std::stringstream ss;
31  return ss.str();
32  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static std::string dumpXML(const EcalCondHeader &header, const EcalTimeBiasCorrections &record)
template<>
std::string cond::PayLoadInspector< EcalFunParams >::dump ( void  ) const

Definition at line 31 of file EcalFunParamsPyWrapper.cc.

References gather_cfg::cout, EcalClusterCrackCorrXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator::dumpXML(), EcalClusterLocalContCorrXMLTranslator::dumpXML(), dbtoconf::object, findQualityFiles::size, and contentValuesCheck::ss.

31  {
32  std::cout << "EcalFunParamsPyWrapper dump " << std::endl;
33  // std::cout << " token " << object().token() << "\n";
34  // PayLoadInspector::dump();
35  std::cout << " Collection size " << object().params().size() << "\n";
36  // for ( EcalFunctionParameters::const_iterator it = object().params().begin(); it != object().params().end(); ++it ) {
37  // std::cout << " " << *it;
38  // }
39  // std::cout << "\n";
40  std::stringstream ss;
41  EcalCondHeader header;
42  if(object().params().size() == 56)
44  else if(object().params().size() == 20)
45  ss << EcalClusterCrackCorrXMLTranslator::dumpXML(header,object());
46  else if(object().params().size() == 11 || object().params().size() == 24)
48  else if(object().params().size() == 208)
50  else
51  ss << " EcalFunParamsPyWrapper dump : unknown tag. Please send a mail to jean.fay@cern.ch";
52  return ss.str();
53  }
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
Class const & object() const
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
tuple cout
Definition: gather_cfg.py:121
static std::string dumpXML(const EcalCondHeader &header, const EcalFunParams &record)
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< EcalTPGTowerStatus >::dump ( void  ) const

Definition at line 31 of file EcalTPGTowerStatusPyWrapper.cc.

References EcalTPGTowerStatusXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

31  {
32  std::stringstream ss;
35  return ss.str();
36  }
static std::string dumpXML(const EcalCondHeader &header, const EcalTPGTowerStatus &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< SiStripBaseDelay >::dump ( void  ) const

Definition at line 33 of file SiStripBaseDelayPyWrapper.cc.

References contentValuesCheck::ss.

33  {
34  std::stringstream ss;
35  return ss.str();
36 
37  }
template<>
std::string cond::PayLoadInspector< ESGain >::dump ( void  ) const

Definition at line 33 of file ESGainPyWrapper.cc.

References ESGainXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

33  {
34  std::stringstream ss;
36  ss<<ESGainXMLTranslator::dumpXML(h,object());
37  return ss.str();
38 
39  }
static std::string dumpXML(const EcalCondHeader &header, const ESGain &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< DTCCBConfig >::dump ( void  ) const

Definition at line 34 of file DTCCBConfigPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTDeadFlag >::dump ( void  ) const

Definition at line 34 of file DTDeadFlagPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTRangeT0 >::dump ( void  ) const

Definition at line 34 of file DTRangeT0PyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTReadOutMapping >::dump ( void  ) const

Definition at line 34 of file DTReadOutMappingPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTStatusFlag >::dump ( void  ) const

Definition at line 34 of file DTStatusFlagPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTHVStatus >::dump ( void  ) const

Definition at line 34 of file DTHVStatusPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTT0 >::dump ( void  ) const

Definition at line 34 of file DTT0PyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< EcalMappingElectronics >::dump ( void  ) const

Definition at line 34 of file EcalMappingElectronicsPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< L1TriggerScaler >::dump ( void  ) const

Definition at line 34 of file L1TriggerScalerPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTTPGParameters >::dump ( void  ) const

Definition at line 34 of file DTTPGParametersPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< RunSummary >::dump ( void  ) const

Definition at line 34 of file RunSummaryPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< AlCaRecoTriggerBits >::dump ( void  ) const

Definition at line 34 of file AlCaRecoTriggerBitsPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< EcalADCToGeVConstant >::dump ( void  ) const

Definition at line 34 of file EcalADCToGeVConstantPyWrapper.cc.

References EcalADCToGeVXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

34  {
35  std::stringstream ss;
37  ss<<EcalADCToGeVXMLTranslator::dumpXML(h,object());
38  return ss.str();
39 
40  }
static std::string dumpXML(const EcalCondHeader &header, const EcalADCToGeVConstant &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< EcalTBWeights >::dump ( void  ) const

Definition at line 34 of file EcalTBWeightsPyWrapper.cc.

References EcalTBWeightsXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

34  {
35 
36  std::stringstream ss;
38  ss<< EcalTBWeightsXMLTranslator::dumpXML(h,object());
39  return ss.str();
40 
41 
42  }
static std::string dumpXML(const EcalCondHeader &header, const EcalTBWeights &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< Phase2TrackerCabling >::dump ( void  ) const

Definition at line 34 of file Phase2TrackerCablingPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripApvGain >::dump ( void  ) const

Definition at line 34 of file SiStripApvGainPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTLVStatus >::dump ( void  ) const

Definition at line 34 of file DTLVStatusPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripBadStrip >::dump ( void  ) const

Definition at line 34 of file SiStripBadStripPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  object().printDebug(ss);
37  return ss.str();
38  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripConfObject >::dump ( void  ) const

Definition at line 34 of file SiStripConfObjectPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripDetVOff >::dump ( void  ) const

Definition at line 34 of file SiStripDetVOffPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripFedCabling >::dump ( void  ) const

Definition at line 34 of file SiStripFedCablingPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripLatency >::dump ( void  ) const

Definition at line 34 of file SiStripLatencyPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripNoises >::dump ( void  ) const

Definition at line 34 of file SiStripNoisesPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripPedestals >::dump ( void  ) const

Definition at line 34 of file SiStripPedestalsPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripRunSummary >::dump ( void  ) const

Definition at line 34 of file SiStripRunSummaryPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< DTPerformance >::dump ( void  ) const

Definition at line 34 of file DTPerformancePyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< SiStripThreshold >::dump ( void  ) const

Definition at line 34 of file SiStripThresholdPyWrapper.cc.

References contentValuesCheck::ss.

34  {
35  std::stringstream ss;
36  return ss.str();
37 
38  }
template<>
std::string cond::PayLoadInspector< EcalWeightXtalGroups >::dump ( void  ) const

Definition at line 34 of file EcalWeightXtalGroupsPyWrapper.cc.

References EcalWeightGroupXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

34  {
35  std::stringstream ss;
38  return ss.str();
39 
40  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static std::string dumpXML(const EcalCondHeader &header, const EcalWeightXtalGroups &record)
template<>
std::string cond::PayLoadInspector< RunNumber >::dump ( void  ) const

Definition at line 36 of file RunNumberPyWrapper.cc.

References contentValuesCheck::ss.

36  {
37  std::stringstream ss;
38  return ss.str();
39 
40  }
template<>
std::string cond::PayLoadInspector< EcalTPGStripStatus >::dump ( void  ) const

Definition at line 37 of file EcalTPGStripStatusPyWrapper.cc.

References EcalTPGStripStatusXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

37  {
38  std::stringstream ss;
41  return ss.str();
42  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static std::string dumpXML(const EcalCondHeader &header, const EcalTPGStripStatus &record)
template<>
string cond::PayLoadInspector< Alignments >::dump ( void  ) const

Definition at line 40 of file EcalAlignmentPyWrapper.cc.

References EcalAlignmentXMLTranslator::dumpXML(), and contentValuesCheck::ss.

40  {
41 
42  stringstream ss;
43  EcalCondHeader header;
44  ss << EcalAlignmentXMLTranslator::dumpXML(header,object());
45  return ss.str();
46  }
static std::string dumpXML(const EcalCondHeader &header, const Alignments &record)
template<>
std::string cond::PayLoadInspector< RunInfo >::dump ( void  ) const

Definition at line 42 of file RunInfoPyWrapper.cc.

References contentValuesCheck::ss.

42  {
43  std::stringstream ss;
44  return ss.str();
45 
46  }
template<>
std::string cond::PayLoadInspector< EcalTPGLinearizationConst >::dump ( void  ) const

Definition at line 43 of file EcalTPGLinearizationConstPyWrapper.cc.

References EcalTPGLinearizationConstXMLTranslator::dumpXML(), and contentValuesCheck::ss.

43  {
44 
45  std::stringstream ss;
46  EcalCondHeader header;
48  return ss.str();
49 
50  }
static std::string dumpXML(const EcalCondHeader &header, const EcalTPGLinearizationConst &record)
template<>
std::string cond::PayLoadInspector< EcalGainRatios >::dump ( void  ) const

Definition at line 45 of file EcalGainRatiosPyWrapper.cc.

References EcalGainRatiosXMLTranslator::dumpXML(), and contentValuesCheck::ss.

45  {
46 
47 
48  std::stringstream ss;
49  EcalCondHeader header;
50  ss<<EcalGainRatiosXMLTranslator::dumpXML(header,object());
51  return ss.str();
52 
53  }
static std::string dumpXML(const EcalCondHeader &header, const EcalGainRatios &record)
template<>
std::string cond::PayLoadInspector< EcalLaserAPDPNRatios >::dump ( void  ) const

Definition at line 51 of file EcalLaserAPDPNRatiosPyWrapper.cc.

References EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), and contentValuesCheck::ss.

51  {
52 
53  std::stringstream ss;
54  EcalCondHeader header;
55  ss<<EcalLaserAPDPNRatiosXMLTranslator::dumpXML(header,object());
56  return ss.str();
57 
58  }
static std::string dumpXML(const EcalCondHeader &header, const EcalLaserAPDPNRatios &record)
template<>
std::string cond::PayLoadInspector< EcalLinearCorrections >::dump ( void  ) const

Definition at line 51 of file EcalLinearCorrectionsPyWrapper.cc.

References EcalLinearCorrectionsXMLTranslator::dumpXML(), and contentValuesCheck::ss.

51  {
52 
53  std::stringstream ss;
54  EcalCondHeader header;
56  return ss.str();
57 
58  }
static std::string dumpXML(const EcalCondHeader &header, const EcalLinearCorrections &record)
template<>
std::string cond::PayLoadInspector< SiStripSummary >::dump ( void  ) const

Definition at line 71 of file SiStripSummaryPyWrapper.cc.

References i, dbtoconf::object, and contentValuesCheck::ss.

71  {
72  std::stringstream ss;
73  std::vector<std::string> listWhat= object().getUserDBContent();
74  for(size_t i=0;i<listWhat.size();++i)
75  ss << listWhat[i] << "###";
76  return ss.str();
77 
78  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<typename DataT >
std::string cond::PayLoadInspector< DataT >::dump ( void  ) const
inline

Definition at line 91 of file PayLoadInspector.h.

References cond::PayLoadInspector< DataT >::dumpXML(), cond::PayLoadInspector< DataT >::m_since, cond::PayLoadInspector< DataT >::m_token, cond::parseToken(), and contentValuesCheck::ss.

91  {
92  std::ostringstream ss;
93  //token parser
94  std::pair<std::string,int> oidData = parseToken( m_token );
95  ss << m_since << "_"<< oidData.first << "_" << oidData.second;
96  //std::string filename(ss.str()+".xml");
97  return this->dumpXML(ss.str()+".xml");
98  }
std::pair< std::string, int > parseToken(const std::string &objectId)
Definition: PoolToken.cc:16
std::string dumpXML(std::string filename) const
template<>
std::string cond::PayLoadInspector< Pedestals >::dump ( void  ) const

Definition at line 91 of file PedestalPyWrapper.cc.

References dbtoconf::object, and AlCaHLTBitMon_ParallelJobs::p.

91  {
92  Printer p;
93  std::for_each(object().m_pedestals.begin(),
94  object().m_pedestals.end(),boost::bind(&Printer::doit,boost::ref(p),_1));
95  p.ss << std::endl;
96  return p.ss.str();
97  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalDAQTowerStatus >::dump ( void  ) const

Definition at line 123 of file EcalDAQTowerStatusPyWrapper.cc.

References EcalDAQTowerStatusXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

123  {
124  std::stringstream ss;
127  return ss.str();
128  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static std::string dumpXML(const EcalCondHeader &header, const EcalDAQTowerStatus &record)
template<>
std::string cond::PayLoadInspector< EcalTPGCrystalStatus >::dump ( void  ) const

Definition at line 124 of file EcalTPGCrystalStatusPyWrapper.cc.

References EcalTPGCrystalStatusXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

124  {
125  std::stringstream ss;
128  return ss.str();
129  }
static std::string dumpXML(const EcalCondHeader &header, const EcalTPGCrystalStatus &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< EcalDCSTowerStatus >::dump ( void  ) const

Definition at line 124 of file EcalDCSTowerStatusPyWrapper.cc.

References EcalDCSTowerStatusXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

124  {
125  std::stringstream ss;
128  return ss.str();
129  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static std::string dumpXML(const EcalCondHeader &header, const EcalDCSTowerStatus &record)
template<>
std::string cond::PayLoadInspector< EcalPedestals >::dump ( void  ) const

Definition at line 128 of file EcalPedestalsPyWrapper.cc.

References EcalPedestalsXMLTranslator::dumpXML(), and contentValuesCheck::ss.

128  {
129  std::stringstream ss;
130  EcalCondHeader header;
131  ss<<EcalPedestalsXMLTranslator::dumpXML(header,object());
132  return ss.str();
133  } // dump
static std::string dumpXML(const EcalCondHeader &header, const EcalPedestals &record)
template<>
std::string cond::PayLoadInspector< EcalPulseShapes >::dump ( void  ) const

Definition at line 128 of file EcalPulseShapesPyWrapper.cc.

References EcalPulseShapesXMLTranslator::dumpXML(), and contentValuesCheck::ss.

128  {
129  std::stringstream ss;
130  EcalCondHeader header;
131  ss<<EcalPulseShapesXMLTranslator::dumpXML(header,object());
132  return ss.str();
133  } // dump
static std::string dumpXML(const EcalCondHeader &header, const EcalPulseShapes &record)
template<>
std::string cond::PayLoadInspector< EcalChannelStatus >::dump ( void  ) const

Definition at line 131 of file EcalChannelStatusPyWrapper.cc.

References EcalChannelStatusXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

131  {
132  std::stringstream ss;
134  ss << EcalChannelStatusXMLTranslator::dumpXML(h,object());
135  return ss.str();
136 
137  }
static std::string dumpXML(const EcalCondHeader &header, const EcalChannelStatus &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< EcalPulseSymmCovariances >::dump ( void  ) const

Definition at line 132 of file EcalPulseSymmCovariancesPyWrapper.cc.

References EcalPulseSymmCovariancesXMLTranslator::dumpXML(), and contentValuesCheck::ss.

132  {
133  std::stringstream ss;
134  EcalCondHeader header;
136  return ss.str();
137  } // dump
static std::string dumpXML(const EcalCondHeader &header, const EcalPulseSymmCovariances &record)
template<>
std::string cond::PayLoadInspector< EcalFloatCondObjectContainer >::dump ( void  ) const

Definition at line 147 of file EcalFloatCondObjectContainerPyWrapper.cc.

References EcalFloatCondObjectContainerXMLTranslator::dumpXML(), and contentValuesCheck::ss.

147  {
148 
149  std::stringstream ss;
150  EcalCondHeader header;
152  return ss.str();
153 
154  // Printer p;
155 // std::for_each(object().barrelItems().begin(),object().barrelItems().end(),boost::bind(&Printer::doB,boost::ref(p),_1));
156 // p.ss <<"\n";
157 // p.reset();
158 // std::for_each(object().endcapItems().begin(),object().endcapItems().end(),boost::bind(&Printer::doE,boost::ref(p),_1));
159 // p.ss << std::endl;
160 // return p.ss.str();
161  }
static std::string dumpXML(const EcalCondHeader &header, const EcalFloatCondObjectContainer &record)
template<typename DataT >
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 124 of file PayLoadInspector.h.

126  {return "";}
template<>
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.

551  { return filename; }
tuple filename
Definition: lut2db_cfg.py:20
template<typename DataT >
std::string cond::PayLoadInspector< DataT >::dumpXML ( std::string  filename) const
inline

FIXME: use TBuffer

Definition at line 79 of file PayLoadInspector.h.

References ora::Object::address(), lut2db_cfg::filename, cond::PayLoadInspector< DataT >::m_object, and ora::Object::typeName().

Referenced by cond::PayLoadInspector< DataT >::dump().

79  {
80  size_t pos = filename.find(".xml");
81  if(pos == std::string::npos)
82  filename.append(".xml");
84  TFile * xml =0;
85  xml = TFile::Open(filename.c_str(), "recreate");
86  xml->WriteObjectAny(m_object.address(), m_object.typeName().c_str(), filename.c_str());
87  xml->Close();
88  return filename;
89  }
std::string typeName() const
Definition: Object.cc:59
void * address() const
Definition: Object.cc:51
tuple filename
Definition: lut2db_cfg.py:20
template<typename DataT >
void cond::PayLoadInspector< DataT >::extract ( Extractor extractor) const
inline

Definition at line 128 of file PayLoadInspector.h.

References cond::BaseValueExtractor< T >::computeW().

Referenced by BeautifulSoup.PageElement::_invert(), and BeautifulSoup.Tag::decompose().

128 {extractor.computeW(object()); }
template<typename DataT >
bool cond::PayLoadInspector< DataT >::load ( cond::IOVElementProxy const &  elem)
inline
template<typename DataT >
Class const& cond::PayLoadInspector< DataT >::object ( ) const
inline
template<typename DataT >
ora::Object const& cond::PayLoadInspector< DataT >::ora_object ( ) const
inline

Definition at line 134 of file PayLoadInspector.h.

References cond::PayLoadInspector< DataT >::m_object.

134  {
135  return m_object;
136  }
template<>
std::string cond::PayLoadInspector< EcalTimeOffsetConstant >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 37 of file EcalTimeOffsetConstantPyWrapper.cc.

References lut2db_cfg::filename.

Referenced by cuy.FindIssue::__init__().

40  {
41  return filename;
42  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalTimeBiasCorrections >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 42 of file EcalTimeBiasCorrectionsPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

45  {
46  std::string fname = filename + ".png";
47  std::ofstream f(fname.c_str());
48  return fname;
49  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

50  {
51  std::string fname = filename + ".png";
52  std::ofstream f(fname.c_str());
53  return fname;
54  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< Phase2TrackerCabling >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 47 of file Phase2TrackerCablingPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

50  {
51  std::string fname = filename + ".png";
52  std::ofstream f(fname.c_str());
53  return fname;
54  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< SiStripBackPlaneCorrection >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 48 of file SiStripBackPlaneCorrectionPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< SiStripBaseDelay >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 48 of file SiStripBaseDelayPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< BeamSpotObjects >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 48 of file BeamSpotObjectsPyWrapper.cc.

References svgfig::canvas(), and lut2db_cfg::filename.

Referenced by cuy.FindIssue::__init__().

52  {
53 
54  TCanvas canvas("iC","iC",800,800);
55 
56  canvas.SaveAs(filename.c_str());
57  return filename;
58  }
def canvas
Definition: svgfig.py:481
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

51  {
52  std::string fname = filename + ".png";
53  std::ofstream f(fname.c_str());
54  return fname;
55  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< SiStripLatency >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 49 of file SiStripLatencyPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

52  {
53  std::string fname = filename + ".png";
54  std::ofstream f(fname.c_str());
55  return fname;
56  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

53  {
54  std::string fname = filename + ".png";
55  std::ofstream f(fname.c_str());
56  return fname;
57  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< ESGain >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 50 of file ESGainPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

53  {
54  std::string fname = filename + ".png";
55  std::ofstream f(fname.c_str());
56  return fname;
57  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

54  {
55  std::string fname = filename + ".png";
56  std::ofstream f(fname.c_str());
57  return fname;
58  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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 51 of file SiStripDetVOffPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

54  {
55  std::string fname = filename + ".png";
56  std::ofstream f(fname.c_str());
57  return fname;
58  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< FillInfo >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 52 of file FillInfoPyWrapper.cc.

References f, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

55  {
56  std::string fname = filename + ".png";
57  std::ofstream f(fname.c_str());
58  return fname;
59  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalTPGTowerStatus >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 52 of file EcalTPGTowerStatusPyWrapper.cc.

References Reference_intrackfit_cff::barrel, svgfig::canvas(), gather_cfg::cout, lut2db_cfg::filename, i, EcalTrigTowerDetId::ieta(), EcalTrigTowerDetId::iphi(), prof2calltree::l, dbtoconf::object, ecaldqm::ttId(), and x().

Referenced by cuy.FindIssue::__init__().

55  {
56  gStyle->SetPalette(1);
57 
58  TCanvas canvas("CC map","CC map",800, 400);
59 
60  TH2F* barrel = new TH2F("EB","EB TPG Tower Status", 72, 0, 72, 34, -17, 17);
61 
62  const EcalTPGTowerStatusMap &towerMap = object().getMap();
63  std::cout << " tower map size " << towerMap.size() << std::endl;
65  for(it = towerMap.begin(); it != towerMap.end(); ++it) {
66  if((*it).second > 0) {
67  EcalTrigTowerDetId ttId((*it).first);
68  int ieta = ttId.ieta();
69  if(ieta < 0) ieta--; // 1 to 17
70  int iphi = ttId.iphi() - 1; // 0 to 71
71  barrel->Fill(iphi, ieta, (*it).second);
72  }
73  }
74  TLine* l = new TLine(0., 0., 0., 0.);
75  l->SetLineWidth(1);
76  canvas.cd();
77  barrel->SetStats(0);
78  barrel->Draw("col");
79  for(int i = 0; i <17; i++) {
80  Double_t x = 4.+ (i * 4);
81  l = new TLine(x, -17., x, 17.);
82  l->Draw();
83  }
84  l = new TLine(0., 0., 72., 0.);
85  l->Draw();
86 
87  canvas.SaveAs(filename.c_str());
88  return filename;
89  } // plot
std::map< uint32_t, uint16_t >::const_iterator EcalTPGTowerStatusMapIterator
int i
Definition: DBlmapReader.cc:9
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
unsigned ttId(DetId const &)
def canvas
Definition: svgfig.py:481
Class const & object() const
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

57  {
58  std::string fname = filename + ".png";
59  std::ofstream f(fname.c_str());
60  return fname;
61  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalTPGStripStatus >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 54 of file EcalTPGStripStatusPyWrapper.cc.

References svgfig::canvas(), gather_cfg::cout, EEDetId::denseIndex(), cond::rpcobgas::detid, EEDetId::detIdFromDenseIndex(), Exception, f, lut2db_cfg::filename, contentValuesFiles::fullPath, cmsRelvalreport::green(), i, EEDetId::ix(), EEDetId::iy(), prof2calltree::l, EcalTrivialCondRetriever_cfi::mappingFile, getGTfromDQMFile::obj, dbtoconf::object, cmsRelvalreport::red(), AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::tt, x(), EEDetId::XYMODE, and EEDetId::zside().

Referenced by cuy.FindIssue::__init__().

57  {
58  gStyle->SetPalette(1);
59 
60  const Int_t NRGBs = 5;
61  const Int_t NCont = 255;
62 
63  Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
64  Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
65  Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
66  Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
67  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
68  gStyle->SetNumberContours(NCont);
69 
70  TCanvas canvas("CC map","CC map",1200, 600);
71  TPad** pad = new TPad*[2];
72  float xmi[2] = {0.0, 0.5};
73  float xma[2] = {0.5, 1.0};
74  for (int obj = 0; obj < 2; obj++) {
75  pad[obj] = new TPad(Form("p_%i", obj),Form("p_%i", obj),
76  xmi[obj], 0.0, xma[obj], 1.0);
77  pad[obj]->Draw();
78  }
79 
80  TH2F** hEEStrip = new TH2F*[2];
81  for (int iz = 0; iz < 2; iz++) {
82  int izz = iz;
83  if(iz == 0) izz = -1;
84  hEEStrip[iz] = new TH2F(Form("EEStrip_%i", iz),
85  Form("EE masked strips side %i", izz),101,1.,101.,101,1.,101.);
86  hEEStrip[iz]->SetStats(0);
87  }
88 
89  // EcalMappingElectronics *mapping = new EcalMappingElectronics ;
90  std::string mappingFile = "Geometry/EcalMapping/data/EEMap.txt";
91 
92  std::ifstream f(edm::FileInPath(mappingFile).fullPath().c_str());
93  if (!f.good()) {
94  std::cout << "EcalTPGStripStatusPyWrapper File not found" << std::endl;
95  throw cms::Exception("FileNotFound");
96  }
97 
98  int ix, iy, iz, CL;
99  int dccid, towerid, pseudostrip_in_SC, xtal_in_pseudostrip;
100  int tccid, tower, pseudostrip_in_TCC, pseudostrip_in_TT;
101  uint32_t rawEE[108][28][5][5];
102  int NbrawEE[108][28][5];
103  for(int TCC = 0; TCC < 108; TCC++)
104  for(int TT = 0; TT < 28; TT++)
105  for(int ST = 0; ST < 5; ST++)
106  NbrawEE[TCC][TT][ST] = 0;
107  while ( ! f.eof()) {
108  f >> ix >> iy >> iz >> CL >> dccid >> towerid >> pseudostrip_in_SC >> xtal_in_pseudostrip
109  >> tccid >> tower >> pseudostrip_in_TCC >> pseudostrip_in_TT ;
110 
111  EEDetId detid(ix,iy,iz,EEDetId::XYMODE);
112  uint32_t rawId = detid.denseIndex();
113  if(tccid > 108 || tower > 28 || pseudostrip_in_TT > 5 || xtal_in_pseudostrip > 5)
114  std::cout << " tccid " << tccid << " tower " << tower << " pseudostrip_in_TT "<< pseudostrip_in_TT
115  <<" xtal_in_pseudostrip " << xtal_in_pseudostrip << std::endl;
116  else {
117  rawEE[tccid - 1][tower - 1][pseudostrip_in_TT - 1][xtal_in_pseudostrip - 1] = rawId;
118  NbrawEE[tccid - 1][tower - 1][pseudostrip_in_TT - 1]++;
119  }
120  /*
121  // if(ix%10 == 0 && iy%10 == 0) std::cout << " dcc tower ps_in_SC xtal_in_ps " << dccid << " " << towerid << " " << pseudostrip_in_SC << " " << xtal_in_pseudostrip << std::endl;
122  EcalElectronicsId elecid(dccid,towerid, pseudostrip_in_SC, xtal_in_pseudostrip);
123  // if(ix%10 == 0 && iy%10 == 0) std::cout << " tcc tt ps_in_TT xtal_in_ps " << tccid << " " << tower << " " << pseudostrip_in_TT << " " << xtal_in_pseudostrip << std::endl;
124  EcalTriggerElectronicsId triggerid(tccid, tower, pseudostrip_in_TT, xtal_in_pseudostrip);
125  EcalMappingElement aElement;
126  aElement.electronicsid = elecid.rawId();
127  aElement.triggerid = triggerid.rawId();
128  (*mapping).setValue(detid, aElement);
129  */
130  }
131 
132  f.close();
133 
135  const EcalTPGStripStatusMap &stripMap = object().getMap();
136  std::cout << " tower map size " << stripMap.size() << std::endl;
137  double wei[2] = {0., 0.};
139  for(itSt = stripMap.begin(); itSt != stripMap.end(); ++itSt) {
140  if(itSt->second > 0) {
141  // let's decode the ID
142  int strip = itSt->first/8;
143  int pseudostrip = strip & 0x7;
144  strip /= 8;
145  int tt = strip & 0x7F;
146  strip /= 128;
147  int tccid = strip & 0x7F;
148  int NbXtalInStrip = NbrawEE[tccid - 1][tt - 1][pseudostrip - 1];
149  if(NbXtalInStrip != 5) std::cout << " Strip TCC " << tccid << " TT " << tt << " ST " << pseudostrip
150  << " Nx Xtals " << NbXtalInStrip << std::endl;
151  for(int Xtal = 0; Xtal < NbXtalInStrip; Xtal++) {
152  uint32_t rawId = rawEE[tccid - 1][tt - 1][pseudostrip - 1][Xtal];
153  // std::cout << " rawid " << rawId << std::endl;
155  float x = (float)detid.ix();
156  float y = (float)detid.iy();
157  int iz = detid.zside();
158  if(iz == -1) iz++;
159  if(Xtal == 0) wei[iz] += 1.;
160  hEEStrip[iz]->Fill(x + 0.5, y + 0.5, wei[iz]);
161  // std::cout << " x " << ix << " y " << iy << " z " << iz << std::endl;
162  }
163  }
164  }
165 
166  TLine* l = new TLine(0., 0., 0., 0.);
167  l->SetLineWidth(1);
168  int ixSectorsEE[202] = {
169  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
170  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
171  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
172  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
173  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
174  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
175  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
176  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
177  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
178  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
179 
180  int iySectorsEE[202] = {
181  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
182  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
183  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
184  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
185  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
186  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
187  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
188  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
189  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
190  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
191 
192  pad[0]->cd();
193  hEEStrip[0]->Draw("col");
194  for ( int i=0; i<201; i=i+1) {
195  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
196  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
197  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
198  ixSectorsEE[i+1], iySectorsEE[i+1]);
199  l->SetLineWidth(0.2);
200  }
201  }
202 
203  pad[1]->cd();
204  hEEStrip[1]->Draw("col");
205  for ( int i=0; i<201; i=i+1) {
206  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
207  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
208  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
209  ixSectorsEE[i+1], iySectorsEE[i+1]);
210  l->SetLineWidth(0.2);
211  }
212  }
213 
214  canvas.SaveAs(filename.c_str());
215  return filename;
216  } // plot
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
int i
Definition: DBlmapReader.cc:9
int ix() const
Definition: EEDetId.h:76
static const int XYMODE
Definition: EEDetId.h:339
def canvas
Definition: svgfig.py:481
Class const & object() const
int zside() const
Definition: EEDetId.h:70
double f[11][100]
int iy() const
Definition: EEDetId.h:82
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
std::map< uint32_t, uint16_t > EcalTPGStripStatusMap
std::map< uint32_t, uint16_t >::const_iterator EcalTPGStripStatusMapIterator
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

62  {
63  std::string fname = filename + ".png";
64  std::ofstream f(fname.c_str());
65  return fname;
66  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalFunParams >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 65 of file EcalFunParamsPyWrapper.cc.

References gather_cfg::cout, and lut2db_cfg::filename.

Referenced by cuy.FindIssue::__init__().

68  {
69  std::cout << "EcalFunParamsPyWrapper plot " << std::endl;
70  return filename;
71  } // plot
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

69  {
70  std::string fname = filename + ".png";
71  std::ofstream f(fname.c_str());
72  return fname;
73  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
string cond::PayLoadInspector< Alignments >::plot ( string const &  filename,
string const &  ,
vector< int > const &  ,
vector< float > const &   
) const

Definition at line 69 of file EcalAlignmentPyWrapper.cc.

References lut2db_cfg::filename.

Referenced by cuy.FindIssue::__init__().

72  {
73  return filename;
74  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

78  {
79  std::string fname = filename + ".png";
80  std::ofstream f(fname.c_str());
81  return fname;
82  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

85  {
86  std::string fname = filename + ".png";
87  std::ofstream f(fname.c_str());
88  return fname;
89  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalTPGPedestals >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 83 of file EcalTPGPedestalsPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, 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, getGTfromDQMFile::obj, jetcorrextractor::sign(), AlCaHLTBitMon_QueryRunRegistry::string, EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

86  {
87  gStyle->SetPalette(1);
88  const int TOTAL_IMAGES = 3;
89  const int TOTAL_PADS = 3;
90 
91  // TCanvas canvas("CC map","CC map",840,600);
92  const float IMG_SIZE = 1.3;
93  TCanvas canvas("CC map","CC map",800*IMG_SIZE + 100, 200 * TOTAL_IMAGES*IMG_SIZE);//800, 1200
94 
95  float xmi[3] = {0.0 , 0.22, 0.78};
96  float xma[3] = {0.22, 0.78, 1.00};
97 
98 
99  TPad*** pad = new TPad**[TOTAL_IMAGES];
100  for (int gId = 0; gId < TOTAL_IMAGES; gId++) {
101  pad[gId] = new TPad*[TOTAL_PADS];
102  for (int obj = 0; obj < TOTAL_PADS; obj++) {
103  float yma = 1. - (0.33 * gId); //1.- (0.17 * gId);
104  float ymi = yma - 0.33; //yma - 0.15;
105  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
106  xmi[obj], ymi, xma[obj], yma);
107  pad[gId][obj]->Draw();
108  }
109  }
110 
111  const int kGains = 3;
112  const int gainValues[3] = {12, 6, 1};
113  const int kSides = 2;
114  const int kBarlRings = EBDetId::MAX_IETA;
115  const int kBarlWedges = EBDetId::MAX_IPHI;
116  const int kEndcWedgesX = EEDetId::IX_MAX;
117  const int kEndcWedgesY = EEDetId::IY_MAX;
118 
119  TH2F** barrel_m = new TH2F*[3];
120  TH2F** endc_p_m = new TH2F*[3];
121  TH2F** endc_m_m = new TH2F*[3];
122  //TH2F** barrel_r = new TH2F*[3];
123  //TH2F** endc_p_r = new TH2F*[3];
124  //TH2F** endc_m_r = new TH2F*[3];
125  std::string variableName = "mean_x";
126  for (int gainId = 0; gainId < kGains; gainId++) {
127  barrel_m[gainId] = new TH2F(Form((variableName + "EBm%i").c_str(),gainId),Form((variableName + "%i EB").c_str(),gainValues[gainId]),360,0,360, 170, -85,85);
128  endc_p_m[gainId] = new TH2F(Form((variableName + "EE+m%i").c_str(),gainId),Form((variableName + "%i EE+").c_str(),gainValues[gainId]),100,1,101,100,1,101);
129  endc_m_m[gainId] = new TH2F(Form((variableName + "EE-m%i").c_str(),gainId),Form((variableName + "%i EE-").c_str(),gainValues[gainId]),100,1,101,100,1,101);
130  //barrel_r[gainId] = new TH2F(Form("EBr%i",gainId),Form("rms %i EB",gainValues[gainId]),360,0,360, 170, -85,85);
131  //endc_p_r[gainId] = new TH2F(Form("EE+r%i",gainId),Form("rms %i EE+",gainValues[gainId]),100,1,101,100,1,101);
132  //endc_m_r[gainId] = new TH2F(Form("EE-r%i",gainId),Form("rms %i EE-",gainValues[gainId]),100,1,101,100,1,101);
133  }
134 
135  for (int sign=0; sign < kSides; sign++) {
136  int thesign = sign==1 ? 1:-1;
137 
138  for (int ieta=0; ieta<kBarlRings; ieta++) {
139  for (int iphi=0; iphi<kBarlWedges; iphi++) {
140  EBDetId id((ieta+1)*thesign, iphi+1);
141  float y = -1 - ieta;
142  if(sign == 1) y = ieta;
143  barrel_m[0]->Fill(iphi, y, object()[id.rawId()].mean_x12);
144  barrel_m[1]->Fill(iphi, y, object()[id.rawId()].mean_x6);
145  barrel_m[2]->Fill(iphi, y, object()[id.rawId()].mean_x1);
146  //barrel_r[0]->Fill(iphi, y, object()[id.rawId()].rms_x12);
147  //barrel_m[1]->Fill(iphi, y, object()[id.rawId()].mean_x6);
148  //barrel_r[1]->Fill(iphi, y, object()[id.rawId()].rms_x6);
149  //barrel_m[2]->Fill(iphi, y, object()[id.rawId()].mean_x1);
150  //barrel_r[2]->Fill(iphi, y, object()[id.rawId()].rms_x1);
151  } // iphi
152  } // ieta
153 
154  for (int ix=0; ix<kEndcWedgesX; ix++) {
155  for (int iy=0; iy<kEndcWedgesY; iy++) {
156  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
157  EEDetId id(ix+1,iy+1,thesign);
158  if (thesign==1) {
159  endc_p_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x12);
160  endc_p_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6);
161  endc_p_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1);
162  //endc_p_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x12);
163  //endc_p_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6);
164  //endc_p_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x6);
165  //endc_p_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1);
166  //endc_p_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x1);
167  }
168  else{
169  endc_m_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x12);
170  endc_m_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6);
171  endc_m_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1);
172  //endc_m_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x12);
173  //endc_m_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6);
174  //endc_m_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x6);
175  //endc_m_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1);
176  //endc_m_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x1);
177  }
178  } // iy
179  } // ix
180  } // side
181 
182  //canvas.cd(1);
183  //float bmin[3] ={0.7, 0.5, 0.4};
184  //float bmax[3] ={1.7, 1.0, 0.8};
185  //float emin[3] ={1.5, 0.8, 0.4};
186  //float emax[3] ={2.5, 1.5, 0.8};
187  TLine* l = new TLine(0., 0., 0., 0.);
188  l->SetLineWidth(1);
189  int ixSectorsEE[202] = {
190  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
191  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
192  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
193  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
194  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
195  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
196  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
197  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
198  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
199  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
200 
201  int iySectorsEE[202] = {
202  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
203  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
204  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
205  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
206  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
207  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
208  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
209  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
210  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
211  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
212 
213  for (int gId = 0; gId < TOTAL_IMAGES; gId++) {//was 3
214  pad[gId][0]->cd();
215  endc_m_m[gId]->SetStats(0);
216  //endc_m_m[gId]->SetMaximum(225);
217  //endc_m_m[gId]->SetMinimum(175);
218  endc_m_m[gId]->Draw("colz");
219  for ( int i=0; i<201; i=i+1) {
220  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
221  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
222  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
223  ixSectorsEE[i+1], iySectorsEE[i+1]);
224  l->SetLineWidth(0.2);
225  }
226  }
227 
228  //pad[gId + 3][0]->cd();
229  //endc_m_r[gId]->SetStats(0);
230  //endc_m_r[gId]->SetMaximum(emax[gId]);
231  //endc_m_r[gId]->SetMinimum(emin[gId]);
232  //endc_m_r[gId]->Draw("colz");
233  //for ( int i=0; i<201; i=i+1) {
234  // if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
235  // (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
236  // l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
237  // ixSectorsEE[i+1], iySectorsEE[i+1]);
238  // }
239  //}
240 
241  //canvas.cd(2);
242  pad[gId][1]->cd();
243  barrel_m[gId]->SetStats(0);
244  //barrel_m[gId]->SetMaximum(225);
245  //barrel_m[gId]->SetMinimum(175);
246  barrel_m[gId]->Draw("colz");
247  for(int i = 0; i <17; i++) {
248  Double_t x = 20.+ (i *20);
249  l = new TLine(x,-85.,x,86.);
250  l->Draw();
251  }
252  l = new TLine(0.,0.,360.,0.);
253  l->Draw();
254 
255  //pad[gId + 3][1]->cd();
256  //barrel_r[gId]->SetStats(0);
257  //barrel_r[gId]->SetMaximum(bmax[gId]);
258  //barrel_r[gId]->SetMinimum(bmin[gId]);
259  //barrel_r[gId]->Draw("colz");
260  //for(int i = 0; i <17; i++) {
261  // Double_t x = 20.+ (i *20);
262  // l = new TLine(x,-85.,x,86.);
263  // l->Draw();
264  //}
265  //l = new TLine(0.,0.,360.,0.);
266  //l->Draw();
267 
268  //canvas.cd(3);
269  pad[gId][2]->cd();
270  endc_p_m[gId]->SetStats(0);
271  //endc_p_m[gId]->SetMaximum(225);
272  //endc_p_m[gId]->SetMinimum(175);
273  endc_p_m[gId]->Draw("colz");
274  for ( int i=0; i<201; i=i+1) {
275  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
276  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
277  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
278  ixSectorsEE[i+1], iySectorsEE[i+1]);
279  }
280  }
281 
282  // pad[gId + 3][2]->cd();
283  // endc_p_r[gId]->SetStats(0);
284  // endc_p_r[gId]->SetMaximum(emax[gId]);
285  // endc_p_r[gId]->SetMinimum(emin[gId]);
286  // endc_p_r[gId]->Draw("colz");
287  // for ( int i=0; i<201; i=i+1) {
288  // if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
289  // (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
290  // l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
291  // ixSectorsEE[i+1], iySectorsEE[i+1]);
292  // }
293  // }
294  }
295 
296  canvas.SaveAs(filename.c_str());
297  return filename;
298  } // plot
int i
Definition: DBlmapReader.cc:9
int gainId(sample_type sample)
get the gainId (2 bits)
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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 97 of file EcalGainRatiosPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, jetcorrextractor::sign(), EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

100  {
101  gStyle->SetPalette(1);
102  TCanvas canvas("CC map","CC map",840,600);
103  float xmi[3] = {0.0 , 0.22, 0.78};
104  float xma[3] = {0.22, 0.78, 1.00};
105  TPad*** pad = new TPad**[2];
106  for (int gId = 0; gId < 2; gId++) {
107  pad[gId] = new TPad*[3];
108  for (int obj = 0; obj < 3; obj++) {
109  float yma = 1.- (0.34 * gId);
110  float ymi = yma - 0.32;
111  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
112  xmi[obj], ymi, xma[obj], yma);
113  pad[gId][obj]->Draw();
114  }
115  }
116  TPad** pad1 = new TPad*[4];
117  for (int obj = 0; obj < 4; obj++) {
118  float xmi = 0.26 * obj;
119  float xma = xmi + 0.22;
120  pad1[obj] = new TPad(Form("p1_%i", obj),Form("p1_%i", obj),
121  xmi, 0.0, xma, 0.32);
122  pad1[obj]->Draw();
123  }
124  const int kSides = 2;
125  const int kBarlRings = EBDetId::MAX_IETA;
126  const int kBarlWedges = EBDetId::MAX_IPHI;
127  const int kEndcWedgesX = EEDetId::IX_MAX;
128  const int kEndcWedgesY = EEDetId::IY_MAX;
129 
130  TH2F* barrel_12O6 = new TH2F("EB_12O6","EB gain 12/6",360,0,360, 170, -85,85);
131  TH2F* endc_p_12O6 = new TH2F("EE+_12O6","EE+ gain 12/6",100,1,101,100,1,101);
132  TH2F* endc_m_12O6 = new TH2F("EE-_12O6","EE- gain 12/6",100,1,101,100,1,101);
133  TH2F* barrel_6O1 = new TH2F("EB_6O1","EB gain 6/1",360,0,360, 170, -85,85);
134  TH2F* endc_p_6O1 = new TH2F("EE+_6O1","EE+ gain 6/1",100,1,101,100,1,101);
135  TH2F* endc_m_6O1 = new TH2F("EE-_6O1","EE- gain 6/1",100,1,101,100,1,101);
136  TH1F* b_12O6 = new TH1F("b_12O6","EB gain 12/6", 50, 1.8, 2.1);
137  TH1F* e_12O6 = new TH1F("e_12O6","EE gain 12/6", 50, 1.8, 2.1);
138  TH1F* b_6O1 = new TH1F("b_6O1","EB gain 6/1", 100, 5.3, 6.3);
139  TH1F* e_6O1 = new TH1F("e_6O1","EE gain 6/1", 100, 5.3, 6.3);
140 
141  for (int sign=0; sign < kSides; sign++) {
142  int thesign = sign==1 ? 1:-1;
143 
144  for (int ieta=0; ieta<kBarlRings; ieta++) {
145  for (int iphi=0; iphi<kBarlWedges; iphi++) {
146  EBDetId id((ieta+1)*thesign, iphi+1);
147  float y = -1 - ieta;
148  if(sign == 1) y = ieta;
149  barrel_12O6->Fill(iphi, y, object()[id.rawId()].gain12Over6());
150  barrel_6O1->Fill(iphi, y, object()[id.rawId()].gain6Over1());
151  b_12O6->Fill(object()[id.rawId()].gain12Over6());
152  b_6O1->Fill(object()[id.rawId()].gain6Over1());
153  } // iphi
154  } // ieta
155 
156  for (int ix=0; ix<kEndcWedgesX; ix++) {
157  for (int iy=0; iy<kEndcWedgesY; iy++) {
158  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
159  EEDetId id(ix+1,iy+1,thesign);
160  if (thesign==1) {
161  endc_p_12O6->Fill(ix+1,iy+1,object()[id.rawId()].gain12Over6());
162  endc_p_6O1->Fill(ix+1,iy+1,object()[id.rawId()].gain6Over1());
163  }
164  else{
165  endc_m_12O6->Fill(ix+1,iy+1,object()[id.rawId()].gain12Over6());
166  endc_m_6O1->Fill(ix+1,iy+1,object()[id.rawId()].gain6Over1());
167  }
168  e_12O6->Fill(object()[id.rawId()].gain12Over6());
169  e_6O1->Fill(object()[id.rawId()].gain6Over1());
170  } // iy
171  } // ix
172  } // side
173 
174  TLine* l = new TLine(0., 0., 0., 0.);
175  l->SetLineWidth(1);
176  int ixSectorsEE[202] = {
177  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
178  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
179  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
180  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
181  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
182  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
183  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
184  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
185  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
186  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
187 
188  int iySectorsEE[202] = {
189  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
190  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
191  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
192  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
193  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
194  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
195  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
196  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
197  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
198  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
199 
200  float min12O6 = 1.8, max12O6 = 2.1, min6O1 = 5.3, max6O1 = 6.3;
201  pad[0][0]->cd();
202  endc_m_12O6->SetStats(0);
203  endc_m_12O6->SetMaximum(max12O6);
204  endc_m_12O6->SetMinimum(min12O6);
205  endc_m_12O6->Draw("colz");
206  for ( int i=0; i<201; i=i+1) {
207  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
208  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
209  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
210  ixSectorsEE[i+1], iySectorsEE[i+1]);
211  l->SetLineWidth(0.2);
212  }
213  }
214  pad[0][1]->cd();
215  barrel_12O6->SetStats(0);
216  barrel_12O6->SetMaximum(max12O6);
217  barrel_12O6->SetMinimum(min12O6);
218  barrel_12O6->Draw("colz");
219  for(int i = 0; i <17; i++) {
220  Double_t x = 20.+ (i *20);
221  l = new TLine(x,-85.,x,86.);
222  l->Draw();
223  }
224  l = new TLine(0.,0.,360.,0.);
225  l->Draw();
226  pad[0][2]->cd();
227  endc_p_12O6->SetStats(0);
228  endc_p_12O6->SetMaximum(max12O6);
229  endc_p_12O6->SetMinimum(min12O6);
230  endc_p_12O6->Draw("colz");
231  for ( int i=0; i<201; i=i+1) {
232  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
233  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
234  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
235  ixSectorsEE[i+1], iySectorsEE[i+1]);
236  l->SetLineWidth(0.2);
237  }
238  }
239  pad[1][0]->cd();
240  endc_m_6O1->SetStats(0);
241  endc_m_6O1->SetMaximum(max6O1);
242  endc_m_6O1->SetMinimum(min6O1);
243  endc_m_6O1->Draw("colz");
244  for ( int i=0; i<201; i=i+1) {
245  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
246  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
247  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
248  ixSectorsEE[i+1], iySectorsEE[i+1]);
249  l->SetLineWidth(0.2);
250  }
251  }
252  pad[1][1]->cd();
253  barrel_6O1->SetStats(0);
254  barrel_6O1->SetMaximum(max6O1);
255  barrel_6O1->SetMinimum(min6O1);
256  barrel_6O1->Draw("colz");
257  for(int i = 0; i <17; i++) {
258  Double_t x = 20.+ (i *20);
259  l = new TLine(x,-85.,x,86.);
260  l->Draw();
261  }
262  l = new TLine(0.,0.,360.,0.);
263  l->Draw();
264  pad[1][2]->cd();
265  endc_p_6O1->SetStats(0);
266  endc_p_6O1->SetMaximum(max6O1);
267  endc_p_6O1->SetMinimum(min6O1);
268  endc_p_6O1->Draw("colz");
269  for ( int i=0; i<201; i=i+1) {
270  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
271  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
272  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
273  ixSectorsEE[i+1], iySectorsEE[i+1]);
274  l->SetLineWidth(0.2);
275  }
276  }
277 
278  gStyle->SetOptStat(111110);
279  pad1[0]->cd();
280  b_12O6->Draw();
281  pad1[0]->Update();
282  TPaveStats *st = (TPaveStats*)b_12O6->FindObject("stats");
283  st->SetX1NDC(0.6); //new x start position
284  st->SetY1NDC(0.75); //new y start position
285  pad1[1]->cd();
286  e_12O6->Draw();
287  pad1[0]->Update();
288  st = (TPaveStats*)e_12O6->FindObject("stats");
289  st->SetX1NDC(0.6); //new x start position
290  st->SetY1NDC(0.75); //new y start position
291  pad1[2]->cd();
292  b_6O1->Draw();
293  pad1[0]->Update();
294  st = (TPaveStats*)b_6O1->FindObject("stats");
295  st->SetX1NDC(0.6); //new x start position
296  st->SetY1NDC(0.75); //new y start position
297  pad1[3]->cd();
298  e_6O1->Draw();
299  pad1[0]->Update();
300  st = (TPaveStats*)e_6O1->FindObject("stats");
301  st->SetX1NDC(0.6); //new x start position
302  st->SetY1NDC(0.75); //new y start position
303 
304  canvas.SaveAs(filename.c_str());
305  return filename;
306  }
int i
Definition: DBlmapReader.cc:9
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

100  {
101  std::string fname = filename + ".png";
102  std::ofstream f(fname.c_str());
103  return fname;
104  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalChannelQuality >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 102 of file HcalChannelQualityPyWrapper.cc.

References svgfig::canvas(), ztail::d, HcalDetId::depth(), HLT_25ns14e33_v1_cff::depth, HcalObjRepresent::FillUnphysicalHEHFBins(), HcalForward, HcalDetId::ieta(), HcalDetId::iphi(), dbtoconf::object, HcalObjRepresent::setup(), contentValuesCheck::ss, HcalDetId::subdet(), and x().

Referenced by cuy.FindIssue::__init__().

106  {
107  std::vector<TH2F> graphData;
108  setup(graphData, "ChannelStatus");
109 
110  std::stringstream x;
111  // Change the titles of each individual histogram
112  for (unsigned int d=0;d < graphData.size();++d){
113  graphData[d].Reset();
114  x << "1+log2(status) for HCAL depth " << d+1;
115 
116  //BUG CAN BE HERE:
117  //if (ChannelStatus->depth[d])
118  graphData[d].SetTitle(x.str().c_str()); // replace "setTitle" with "SetTitle", since you are using TH2F objects instead of MonitorElements
119  x.str("");
120  }
121 
122  HcalDetId hcal_id;
123  int ieta, depth, iphi, channelBits;
124  double logstatus;
125 
126  //main loop
127  // get all containers with names
128  HcalChannelQuality::tAllContWithNames allContainers = object().getAllContainers();
129 
130  // initializing iterators
131  HcalChannelQuality::tAllContWithNames::const_iterator iter;
132  std::vector<HcalChannelStatus>::const_iterator contIter;
133 
134  //run trough all pair containers
135  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter){
136  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
137  hcal_id = HcalDetId((uint32_t)(*contIter).rawId());
138 
139  channelBits = (uint32_t)(*contIter).getValue();
140  if (channelBits == 0)
141  continue;
142 
143  depth = hcal_id.depth();
144  if (depth<1 || depth>4)
145  continue;
146 
147  ieta=hcal_id.ieta();
148  iphi=hcal_id.iphi();
149 
150  if (hcal_id.subdet() == HcalForward)
151  ieta>0 ? ++ieta : --ieta;
152 
153  logstatus = log2(1.*channelBits)+1;
154  //FILLING GOES HERE:
155  graphData[depth-1].Fill(ieta,iphi,logstatus);
156 
157  //FOR DEBUGGING:
158  //std::cout << "ieta: " << ieta << "; iphi: " << iphi << "; logstatus: " << logstatus << "; channelBits: " << channelBits<< std::endl;
159  }
160  }
161  FillUnphysicalHEHFBins(graphData);
162 
163 
164 
165  //Drawing...
166  // use David's palette
167  gStyle->SetPalette(1);
168  const Int_t NCont = 999;
169  gStyle->SetNumberContours(NCont);
170  TCanvas canvas("CC map","CC map",840,369*4);
171 
172  TPad pad1("pad1","pad1", 0.0, 0.75, 1.0, 1.0);
173  pad1.Draw();
174  TPad pad2("pad2","pad2", 0.0, 0.5, 1.0, 0.75);
175  pad2.Draw();
176  TPad pad3("pad3","pad3", 0.0, 0.25, 1.0, 0.5);
177  pad3.Draw();
178  TPad pad4("pad4","pad4", 0.0, 0.0, 1.0, 0.25);
179  pad4.Draw();
180 
181 
182  pad1.cd();
183  graphData[0].SetStats(0);
184  graphData[0].Draw("colz");
185 
186  pad2.cd();
187  graphData[1].SetStats(0);
188  graphData[1].Draw("colz");
189 
190  pad3.cd();
191  graphData[2].SetStats(0);
192  graphData[2].Draw("colz");
193 
194  pad4.cd();
195  graphData[3].SetStats(0);
196  graphData[3].Draw("colz");
197 
198 
199  std::stringstream ss;
200  ss <<filename << ".png";
201 
202  canvas.SaveAs((ss.str()).c_str());
203 
204  return (ss.str()).c_str();
205  }
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:45
def canvas
Definition: svgfig.py:481
tuple d
Definition: ztail.py:151
int depth() const
get the tower depth
Definition: HcalDetId.h:55
int ieta() const
get the cell ieta
Definition: HcalDetId.h:51
Class const & object() const
int iphi() const
get the cell iphi
Definition: HcalDetId.h:53
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
tuple filename
Definition: lut2db_cfg.py:20
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
template<typename DataT >
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 108 of file PayLoadInspector.h.

Referenced by cuy.FindIssue::__init__().

110  {return "";}
template<>
std::string cond::PayLoadInspector< EcalTPGLinearizationConst >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 109 of file EcalTPGLinearizationConstPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, jetcorrextractor::sign(), EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

112  {
113  gStyle->SetPalette(1);
114 
115  const float IMG_SIZE = 1.5;
116  TCanvas canvas("CC map","CC map",800 * IMG_SIZE,1200 * IMG_SIZE);
117 
118  float xmi[3] = {0.0 , 0.22, 0.78};
119  float xma[3] = {0.22, 0.78, 1.00};
120  TPad*** pad = new TPad**[6];
121  for (int gId = 0; gId < 6; gId++) {
122  pad[gId] = new TPad*[3];
123  for (int obj = 0; obj < 3; obj++) {
124  float yma = 1.- (0.17 * gId);
125  float ymi = yma - 0.15;
126  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
127  xmi[obj], ymi, xma[obj], yma);
128  pad[gId][obj]->Draw();
129  }
130  }
131 
132  const int kGains = 3;
133  const int gainValues[3] = {12, 6, 1};
134  const int kSides = 2;
135  const int kBarlRings = EBDetId::MAX_IETA;
136  const int kBarlWedges = EBDetId::MAX_IPHI;
137  const int kEndcWedgesX = EEDetId::IX_MAX;
138  const int kEndcWedgesY = EEDetId::IY_MAX;
139 
140  TH2F** barrel_m = new TH2F*[3];
141  TH2F** endc_p_m = new TH2F*[3];
142  TH2F** endc_m_m = new TH2F*[3];
143  TH2F** barrel_r = new TH2F*[3];
144  TH2F** endc_p_r = new TH2F*[3];
145  TH2F** endc_m_r = new TH2F*[3];
146  for (int gainId = 0; gainId < kGains; gainId++) {
147  barrel_m[gainId] = new TH2F(Form("mult_x12 EBm%i",gainId),Form("mult_x%i EB",gainValues[gainId]),360,0,360, 170, -85,85);
148  endc_p_m[gainId] = new TH2F(Form("mult_x12 EE+m%i",gainId),Form("mult_x%i EE+",gainValues[gainId]),100,1,101,100,1,101);
149  endc_m_m[gainId] = new TH2F(Form("mult_x12 EE-m%i",gainId),Form("mult_x%i EE-",gainValues[gainId]),100,1,101,100,1,101);
150  barrel_r[gainId] = new TH2F(Form("shift_x12 EBr%i",gainId),Form("shift_x%i EB",gainValues[gainId]),360,0,360, 170, -85,85);
151  endc_p_r[gainId] = new TH2F(Form("shift_x12 EE+r%i",gainId),Form("shift_x%i EE+",gainValues[gainId]),100,1,101,100,1,101);
152  endc_m_r[gainId] = new TH2F(Form("shift_x12 EE-r%i",gainId),Form("shift_x%i EE-",gainValues[gainId]),100,1,101,100,1,101);
153  }
154 
155  for (int sign=0; sign < kSides; sign++) {
156  int thesign = sign==1 ? 1:-1;
157 
158  for (int ieta=0; ieta<kBarlRings; ieta++) {
159  for (int iphi=0; iphi<kBarlWedges; iphi++) {
160  EBDetId id((ieta+1)*thesign, iphi+1);
161  float y = -1 - ieta;
162  if(sign == 1) y = ieta;
163  barrel_m[0]->Fill(iphi, y, object()[id.rawId()].mult_x12);
164  barrel_r[0]->Fill(iphi, y, object()[id.rawId()].shift_x12);
165  barrel_m[1]->Fill(iphi, y, object()[id.rawId()].mult_x6);
166  barrel_r[1]->Fill(iphi, y, object()[id.rawId()].shift_x6);
167  barrel_m[2]->Fill(iphi, y, object()[id.rawId()].mult_x1);
168  barrel_r[2]->Fill(iphi, y, object()[id.rawId()].shift_x1);
169  } // iphi
170  } // ieta
171 
172  for (int ix=0; ix<kEndcWedgesX; ix++) {
173  for (int iy=0; iy<kEndcWedgesY; iy++) {
174  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
175  EEDetId id(ix+1,iy+1,thesign);
176  if (thesign==1) {
177  endc_p_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mult_x12);
178  endc_p_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].shift_x12);
179  endc_p_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mult_x6);
180  endc_p_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].shift_x6);
181  endc_p_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mult_x1);
182  endc_p_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].shift_x1);
183  }
184  else{
185  endc_m_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mult_x12);
186  endc_m_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].shift_x12);
187  endc_m_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mult_x6);
188  endc_m_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].shift_x6);
189  endc_m_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mult_x1);
190  endc_m_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].shift_x1);
191  }
192  } // iy
193  } // ix
194  } // side
195 
196  //canvas.cd(1);
197  //float bmin[3] ={0.7, 0.5, 0.4};
198  //float bmax[3] ={1.7, 1.0, 0.8};
199  //float emin[3] ={1.5, 0.8, 0.4};
200  //float emax[3] ={2.5, 1.5, 0.8};
201  TLine* l = new TLine(0., 0., 0., 0.);
202  l->SetLineWidth(1);
203  int ixSectorsEE[202] = {
204  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
205  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
206  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
207  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
208  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
209  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
210  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
211  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
212  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
213  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
214 
215  int iySectorsEE[202] = {
216  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
217  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
218  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
219  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
220  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
221  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
222  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
223  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
224  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
225  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
226 
227  for (int gId = 0; gId < 3; gId++) {
228  pad[gId][0]->cd();
229  endc_m_m[gId]->SetStats(0);
230  //endc_m_m[gId]->SetMaximum(225);
231  //endc_m_m[gId]->SetMinimum(175);
232  endc_m_m[gId]->Draw("colz");
233  for ( int i=0; i<201; i=i+1) {
234  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
235  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
236  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
237  ixSectorsEE[i+1], iySectorsEE[i+1]);
238  l->SetLineWidth(0.2);
239  }
240  }
241  pad[gId + 3][0]->cd();
242  endc_m_r[gId]->SetStats(0);
243  //endc_m_r[gId]->SetMaximum(emax[gId]);
244  //endc_m_r[gId]->SetMinimum(emin[gId]);
245  endc_m_r[gId]->Draw("colz");
246  for ( int i=0; i<201; i=i+1) {
247  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
248  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
249  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
250  ixSectorsEE[i+1], iySectorsEE[i+1]);
251  }
252  }
253  //canvas.cd(2);
254  pad[gId][1]->cd();
255  barrel_m[gId]->SetStats(0);
256  //barrel_m[gId]->SetMaximum(225);
257  //barrel_m[gId]->SetMinimum(175);
258  barrel_m[gId]->Draw("colz");
259  for(int i = 0; i <17; i++) {
260  Double_t x = 20.+ (i *20);
261  l = new TLine(x,-85.,x,86.);
262  l->Draw();
263  }
264  l = new TLine(0.,0.,360.,0.);
265  l->Draw();
266  pad[gId + 3][1]->cd();
267  barrel_r[gId]->SetStats(0);
268  //barrel_r[gId]->SetMaximum(bmax[gId]);
269  //barrel_r[gId]->SetMinimum(bmin[gId]);
270  barrel_r[gId]->Draw("colz");
271  for(int i = 0; i <17; i++) {
272  Double_t x = 20.+ (i *20);
273  l = new TLine(x,-85.,x,86.);
274  l->Draw();
275  }
276  l = new TLine(0.,0.,360.,0.);
277  l->Draw();
278  //canvas.cd(3);
279  pad[gId][2]->cd();
280  endc_p_m[gId]->SetStats(0);
281  //endc_p_m[gId]->SetMaximum(225);
282  //endc_p_m[gId]->SetMinimum(175);
283  endc_p_m[gId]->Draw("colz");
284  for ( int i=0; i<201; i=i+1) {
285  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
286  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
287  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
288  ixSectorsEE[i+1], iySectorsEE[i+1]);
289  }
290  }
291  pad[gId + 3][2]->cd();
292  endc_p_r[gId]->SetStats(0);
293  //endc_p_r[gId]->SetMaximum(emax[gId]);
294  //endc_p_r[gId]->SetMinimum(emin[gId]);
295  endc_p_r[gId]->Draw("colz");
296  for ( int i=0; i<201; i=i+1) {
297  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
298  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
299  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
300  ixSectorsEE[i+1], iySectorsEE[i+1]);
301  }
302  }
303  }
304 
305  canvas.SaveAs(filename.c_str());
306  return filename;
307  } // plot
int i
Definition: DBlmapReader.cc:9
int gainId(sample_type sample)
get the gainId (2 bits)
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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, alignmentValidation::fname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

128  {
129  std::string fname = filename + ".png";
130  std::ofstream f(fname.c_str());
131  return fname;
132  }
double f[11][100]
string fname
main script
tuple filename
Definition: lut2db_cfg.py:20
template<>
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 139 of file EcalLaserAPDPNRatiosPyWrapper.cc.

References Reference_intrackfit_cff::barrel, svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, p1, p2, p3, jetcorrextractor::sign(), EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

142  {
143  gStyle->SetPalette(1);
144  // TCanvas canvas("CC map","CC map",840,600);
145  TCanvas canvas("CC map","CC map",800,1200);
146 
147  float xmi[3] = {0.0 , 0.22, 0.78};
148  float xma[3] = {0.22, 0.78, 1.00};
149  TPad*** pad = new TPad**[3];
150  for (int gId = 0; gId < 3; gId++) {
151  pad[gId] = new TPad*[3];
152  for (int obj = 0; obj < 3; obj++) {
153  float yma = 1.- (0.32 * gId);
154  float ymi = yma - 0.30;
155  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
156  xmi[obj], ymi, xma[obj], yma);
157  pad[gId][obj]->Draw();
158  }
159  }
160 
161  const int kGains = 3;
162  const int gainValues[3] = {1, 2, 3};
163  const int kSides = 2;
164  const int kBarlRings = EBDetId::MAX_IETA;
165  const int kBarlWedges = EBDetId::MAX_IPHI;
166  const int kEndcWedgesX = EEDetId::IX_MAX;
167  const int kEndcWedgesY = EEDetId::IY_MAX;
168 
169  TH2F** barrel = new TH2F*[3];
170  TH2F** endc_p = new TH2F*[3];
171  TH2F** endc_m = new TH2F*[3];
172 
173  for (int gainId = 0; gainId < kGains; gainId++) {
174  barrel[gainId] = new TH2F(Form("EBp%i", gainValues[gainId]),Form("EBp%i", gainValues[gainId]),360,0,360, 170, -85,85);
175  endc_p[gainId] = new TH2F(Form("EE+p%i",gainValues[gainId]),Form("EE+p%i",gainValues[gainId]),100,1,101,100,1,101);
176  endc_m[gainId] = new TH2F(Form("EE-p%i",gainValues[gainId]),Form("EE-p%i",gainValues[gainId]),100,1,101,100,1,101);
177 
178  }
179 
180  for (int sign=0; sign < kSides; sign++) {
181  int thesign = sign==1 ? 1:-1;
182 
183  for (int ieta=0; ieta<kBarlRings; ieta++) {
184  for (int iphi=0; iphi<kBarlWedges; iphi++) {
185  EBDetId id((ieta+1)*thesign, iphi+1);
186  float y = -1 - ieta;
187  if(sign == 1) y = ieta;
188  barrel[0]->Fill(iphi, y, object().getLaserMap()[id.rawId()].p1);
189  barrel[1]->Fill(iphi, y, object().getLaserMap()[id.rawId()].p2);
190  barrel[2]->Fill(iphi, y, object().getLaserMap()[id.rawId()].p3);
191 
192  } // iphi
193  } // ieta
194 
195  for (int ix=0; ix<kEndcWedgesX; ix++) {
196  for (int iy=0; iy<kEndcWedgesY; iy++) {
197  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
198  EEDetId id(ix+1,iy+1,thesign);
199  if (thesign==1) {
200  endc_p[0]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p1);
201  endc_p[1]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p2);
202  endc_p[2]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p3);
203 
204  }
205  else{
206  endc_m[0]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p1);
207  endc_m[1]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p2);
208  endc_m[2]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p3);
209 
210  }
211  } // iy
212  } // ix
213  } // side
214 
215  //canvas.cd(1);
216 
217  TLine* l = new TLine(0., 0., 0., 0.);
218  l->SetLineWidth(1);
219  int ixSectorsEE[202] = {
220  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
221  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
222  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
223  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
224  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
225  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
226  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
227  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
228  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
229  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
230 
231  int iySectorsEE[202] = {
232  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
233  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
234  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
235  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
236  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
237  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
238  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
239  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
240  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
241  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
242 
243  for (int gId = 0; gId < 3; gId++) {
244  pad[gId][0]->cd();
245  endc_m[gId]->SetStats(0);
246 
247  endc_m[gId]->GetZaxis()->SetRangeUser(0.9,1.1);
248  endc_m[gId]->Draw("colz");
249  for ( int i=0; i<201; i=i+1) {
250  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
251  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
252  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
253  ixSectorsEE[i+1], iySectorsEE[i+1]);
254  l->SetLineWidth(0.2);
255  }
256  }
257  pad[gId][1]->cd();
258  barrel[gId]->SetStats(0);
259  barrel[gId]->GetZaxis()->SetRangeUser(0.9,1.1);
260 
261  barrel[gId]->Draw("colz");
262  for(int i = 0; i <17; i++) {
263  Double_t x = 20.+ (i *20);
264  l = new TLine(x,-85.,x,86.);
265  l->Draw();
266  }
267  l = new TLine(0.,0.,360.,0.);
268  l->Draw();
269 
270  //canvas.cd(3);
271  pad[gId][2]->cd();
272  endc_p[gId]->SetStats(0);
273  endc_p[gId]->GetZaxis()->SetRangeUser(0.9,1.1);
274 
275  endc_p[gId]->Draw("colz");
276  for ( int i=0; i<201; i=i+1) {
277  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
278  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
279  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
280  ixSectorsEE[i+1], iySectorsEE[i+1]);
281  }
282  }
283  }
284 
285  canvas.SaveAs(filename.c_str());
286  return filename;
287  } // plot
int i
Definition: DBlmapReader.cc:9
int gainId(sample_type sample)
get the gainId (2 bits)
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
double p2[4]
Definition: TauolaWrapper.h:90
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
double p1[4]
Definition: TauolaWrapper.h:89
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
double p3[4]
Definition: TauolaWrapper.h:91
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< EcalLinearCorrections >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 139 of file EcalLinearCorrectionsPyWrapper.cc.

References Reference_intrackfit_cff::barrel, svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, p1, p2, p3, jetcorrextractor::sign(), EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

142  {
143  gStyle->SetPalette(1);
144  // TCanvas canvas("CC map","CC map",840,600);
145  TCanvas canvas("CC map","CC map",800,1200);
146 
147  float xmi[3] = {0.0 , 0.22, 0.78};
148  float xma[3] = {0.22, 0.78, 1.00};
149  TPad*** pad = new TPad**[3];
150  for (int gId = 0; gId < 3; gId++) {
151  pad[gId] = new TPad*[3];
152  for (int obj = 0; obj < 3; obj++) {
153  float yma = 1.- (0.32 * gId);
154  float ymi = yma - 0.30;
155  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
156  xmi[obj], ymi, xma[obj], yma);
157  pad[gId][obj]->Draw();
158  }
159  }
160 
161  const int kGains = 3;
162  const int gainValues[3] = {1, 2, 3};
163  const int kSides = 2;
164  const int kBarlRings = EBDetId::MAX_IETA;
165  const int kBarlWedges = EBDetId::MAX_IPHI;
166  const int kEndcWedgesX = EEDetId::IX_MAX;
167  const int kEndcWedgesY = EEDetId::IY_MAX;
168 
169  TH2F** barrel = new TH2F*[3];
170  TH2F** endc_p = new TH2F*[3];
171  TH2F** endc_m = new TH2F*[3];
172 
173  for (int gainId = 0; gainId < kGains; gainId++) {
174  barrel[gainId] = new TH2F(Form("EBp%i", gainValues[gainId]),Form("EBp%i", gainValues[gainId]),360,0,360, 170, -85,85);
175  endc_p[gainId] = new TH2F(Form("EE+p%i",gainValues[gainId]),Form("EE+p%i",gainValues[gainId]),100,1,101,100,1,101);
176  endc_m[gainId] = new TH2F(Form("EE-p%i",gainValues[gainId]),Form("EE-p%i",gainValues[gainId]),100,1,101,100,1,101);
177 
178  }
179 
180  for (int sign=0; sign < kSides; sign++) {
181  int thesign = sign==1 ? 1:-1;
182 
183  for (int ieta=0; ieta<kBarlRings; ieta++) {
184  for (int iphi=0; iphi<kBarlWedges; iphi++) {
185  EBDetId id((ieta+1)*thesign, iphi+1);
186  float y = -1 - ieta;
187  if(sign == 1) y = ieta;
188  barrel[0]->Fill(iphi, y, object().getLaserMap()[id.rawId()].p1);
189  barrel[1]->Fill(iphi, y, object().getLaserMap()[id.rawId()].p2);
190  barrel[2]->Fill(iphi, y, object().getLaserMap()[id.rawId()].p3);
191 
192  } // iphi
193  } // ieta
194 
195  for (int ix=0; ix<kEndcWedgesX; ix++) {
196  for (int iy=0; iy<kEndcWedgesY; iy++) {
197  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
198  EEDetId id(ix+1,iy+1,thesign);
199  if (thesign==1) {
200  endc_p[0]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p1);
201  endc_p[1]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p2);
202  endc_p[2]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p3);
203 
204  }
205  else{
206  endc_m[0]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p1);
207  endc_m[1]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p2);
208  endc_m[2]->Fill(ix+1,iy+1,object().getLaserMap()[id.rawId()].p3);
209 
210  }
211  } // iy
212  } // ix
213  } // side
214 
215  //canvas.cd(1);
216 
217  TLine* l = new TLine(0., 0., 0., 0.);
218  l->SetLineWidth(1);
219  int ixSectorsEE[202] = {
220  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
221  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
222  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
223  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
224  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
225  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
226  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
227  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
228  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
229  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
230 
231  int iySectorsEE[202] = {
232  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
233  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
234  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
235  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
236  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
237  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
238  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
239  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
240  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
241  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
242 
243  for (int gId = 0; gId < 3; gId++) {
244  pad[gId][0]->cd();
245  endc_m[gId]->SetStats(0);
246 
247  endc_m[gId]->GetZaxis()->SetRangeUser(0.9,1.1);
248  endc_m[gId]->Draw("colz");
249  for ( int i=0; i<201; i=i+1) {
250  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
251  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
252  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
253  ixSectorsEE[i+1], iySectorsEE[i+1]);
254  l->SetLineWidth(0.2);
255  }
256  }
257  pad[gId][1]->cd();
258  barrel[gId]->SetStats(0);
259  barrel[gId]->GetZaxis()->SetRangeUser(0.9,1.1);
260 
261  barrel[gId]->Draw("colz");
262  for(int i = 0; i <17; i++) {
263  Double_t x = 20.+ (i *20);
264  l = new TLine(x,-85.,x,86.);
265  l->Draw();
266  }
267  l = new TLine(0.,0.,360.,0.);
268  l->Draw();
269 
270  //canvas.cd(3);
271  pad[gId][2]->cd();
272  endc_p[gId]->SetStats(0);
273  endc_p[gId]->GetZaxis()->SetRangeUser(0.9,1.1);
274 
275  endc_p[gId]->Draw("colz");
276  for ( int i=0; i<201; i=i+1) {
277  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
278  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
279  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
280  ixSectorsEE[i+1], iySectorsEE[i+1]);
281  }
282  }
283  }
284 
285  canvas.SaveAs(filename.c_str());
286  return filename;
287  } // plot
int i
Definition: DBlmapReader.cc:9
int gainId(sample_type sample)
get the gainId (2 bits)
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
double p2[4]
Definition: TauolaWrapper.h:90
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
double p1[4]
Definition: TauolaWrapper.h:89
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
double p3[4]
Definition: TauolaWrapper.h:91
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< HcalPFCorrs >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 149 of file HcalPFCorrsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

153  {
154 
155  //how much values are in container
156  unsigned int numOfValues = 1;
157 
158  //create object helper for making plots;
159  HcalPFCorrsDataRepr datarepr(numOfValues, object().getAllContainers());
160 
161  datarepr.nr = 0;
162  datarepr.id = 0;
163  datarepr.rootname.str("_PFCorrrootvalue_");
164  datarepr.plotname.str("PFCorr ");
165  datarepr.filename.str("");
166  datarepr.filename << filename << "";
167 
168  typedef std::vector<TH2F> graphData;
169  std::vector< graphData > graphDataVec(numOfValues);
170  std::vector< graphData >::iterator imageIter;
171 
172  /*create images:*/
173  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
174  //MAIN FUNCTION:
175  datarepr.fillOneGain((*imageIter));
176 
177  ++(datarepr.nr);
178  ++(datarepr.id);
179  }
180  return filename;
181  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalRespCorrs >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 149 of file HcalRespCorrsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

153  {
154 
155  //how much values are in container
156  unsigned int numOfValues = 1;
157 
158  //create object helper for making plots;
159  HcalRespCorrsDataRepr datarepr(numOfValues, object().getAllContainers());
160 
161  datarepr.nr = 0;
162  datarepr.id = 0;
163  datarepr.rootname.str("_RespCorrrootvalue_");
164  datarepr.plotname.str("RespCorr ");
165  datarepr.filename.str("");
166  datarepr.filename << filename << "";
167 
168  typedef std::vector<TH2F> graphData;
169  std::vector< graphData > graphDataVec(numOfValues);
170  std::vector< graphData >::iterator imageIter;
171 
172  //create images:
173  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
174  //MAIN FUNCTION:
175  datarepr.fillOneGain((*imageIter));
176 
177  ++(datarepr.nr);
178  ++(datarepr.id);
179  }
180  return filename;
181  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalLUTCorrs >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 150 of file HcalLUTCorrsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

154  {
155 
156  //how much values are in container
157  unsigned int numOfValues = 1;
158 
159  //create object helper for making plots;
160  HcalLUTCorrsDataRepr datarepr(numOfValues, object().getAllContainers());
161 
162  datarepr.nr = 0;
163  datarepr.id = 0;
164  datarepr.rootname.str("_LUTCorrrootvalue_");
165  datarepr.plotname.str("LUTCorr ");
166  datarepr.filename.str("");
167  datarepr.filename << filename << "";
168 
169  typedef std::vector<TH2F> graphData;
170  std::vector< graphData > graphDataVec(numOfValues);
171  std::vector< graphData >::iterator imageIter;
172 
173  /*create images:*/
174  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
175  //MAIN FUNCTION:
176  datarepr.fillOneGain((*imageIter));
177 
178  ++(datarepr.nr);
179  ++(datarepr.id);
180  }
181  return filename;
182  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalTimeCorrs >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 150 of file HcalTimeCorrsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

154  {
155 
156  //how much values are in container
157  unsigned int numOfValues = 1;
158 
159  //create object helper for making plots;
160  HcalTimeCorrsDataRepr datarepr(numOfValues, object().getAllContainers());
161 
162  datarepr.nr = 0;
163  datarepr.id = 0;
164  datarepr.rootname.str("_TimeCorrrootvalue_");
165  datarepr.plotname.str("TimeCorr ");
166  datarepr.filename.str("");
167  datarepr.filename << filename << "";
168 
169  typedef std::vector<TH2F> graphData;
170  std::vector< graphData > graphDataVec(numOfValues);
171  std::vector< graphData >::iterator imageIter;
172 
173  //create images:
174  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
175  //MAIN FUNCTION:
176  datarepr.fillOneGain((*imageIter));
177 
178  ++(datarepr.nr);
179  ++(datarepr.id);
180  }
181  return filename;
182  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalValidationCorrs >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 150 of file HcalValidationCorrsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

154  {
155 
156  //how much values are in container
157  unsigned int numOfValues = 1;
158 
159  //create object helper for making plots;
160  HcalValidationCorrsDataRepr datarepr(numOfValues, object().getAllContainers());
161 
162  datarepr.nr = 0;
163  datarepr.id = 0;
164  datarepr.rootname.str("_ValidationCorrrootvalue_");
165  datarepr.plotname.str("ValidationCorr ");
166  datarepr.filename.str("");
167  datarepr.filename << filename << "";
168 
169  typedef std::vector<TH2F> graphData;
170  std::vector< graphData > graphDataVec(numOfValues);
171  std::vector< graphData >::iterator imageIter;
172 
173  /*create images:*/
174  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
175  //MAIN FUNCTION:
176  datarepr.fillOneGain((*imageIter));
177 
178  ++(datarepr.nr);
179  ++(datarepr.id);
180  }
181  return filename;
182  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalZSThresholds >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 150 of file HcalZSThresholdsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

154  {
155 
156  //how much values are in container
157  unsigned int numOfValues = 1;
158 
159  //create object helper for making plots;
160  HcalZSThresholdsDataRepr datarepr(numOfValues, object().getAllContainers());
161 
162  datarepr.nr = 0;
163  datarepr.id = 0;
164  datarepr.rootname.str("_ZSThresholdrootvalue_");
165  datarepr.plotname.str("ZSThreshold ");
166  datarepr.filename.str("");
167  datarepr.filename << filename << "";
168 
169  typedef std::vector<TH2F> graphData;
170  std::vector< graphData > graphDataVec(numOfValues);
171  std::vector< graphData >::iterator imageIter;
172 
173  /*create images:*/
174  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
175  //MAIN FUNCTION:
176  datarepr.fillOneGain((*imageIter));
177 
178  ++(datarepr.nr);
179  ++(datarepr.id);
180  }
181  return filename;
182  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalGains >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 151 of file HcalGainsPyWrapper.cc.

References cond::draw(), lut2db_cfg::filename, HcalObjRepresent::fillOneGain(), HcalObjRepresent::FillUnphysicalHEHFBins(), i, dbtoconf::object, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

155  {
156  //void set(since, till, filename); {
157  unsigned int numOfValues = 4;
158  std::string plotname = "_Gain_";
159  //filename = filename + "_Gain";
160 
161 
162  typedef std::vector<TH2F> graphData;
163  std::vector< graphData > graphDataVec(numOfValues);
164  std::vector< graphData >::iterator bigIter;
165 
166  std::stringstream ss, plotname_i;
167  HcalGains::tAllContWithNames allContainers = object().getAllContainers();
168 
169  int i = 0;
170  for (bigIter = graphDataVec.begin(); bigIter != graphDataVec.end(); ++bigIter){
171  plotname_i << plotname << i ;
172  ss << filename << "_Gain_"<<i<<".png";
173  fillOneGain((*bigIter), allContainers, plotname_i.str(), i);
174  FillUnphysicalHEHFBins(*bigIter);
175  draw((*bigIter), ss.str());
176  ++i;
177  ss.str("");
178  plotname_i.str("");
179  }
180  return filename;
181  }
int i
Definition: DBlmapReader.cc:9
void draw(std::vector< TH2F > &graphData, std::string filename)
Class const & object() const
void fillOneGain(std::vector< TH2F > &graphData, HcalGains::tAllContWithNames &allContainers, std::string name, int id, std::string units="")
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalGainWidths >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 155 of file HcalGainWidthsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

159  {
160 
161  //how much values are in container
162  unsigned int numOfValues = 4;
163 
164  //create object helper for making plots;
165  HcalGainWidthsDataRepr datarepr(numOfValues, object().getAllContainers());
166 
167  datarepr.nr = 0;
168  datarepr.id = 0;
169  datarepr.rootname.str("_GainWidthrootvalue_");
170  datarepr.plotname.str("GainWidthValue ");
171  datarepr.filename.str("");
172  datarepr.filename << filename << "_GainWidth_";
173 
174  typedef std::vector<TH2F> graphData;
175  std::vector< graphData > graphDataVec(numOfValues);
176  std::vector< graphData >::iterator imageIter;
177 
178  //create images:
179  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
180 
181  //MAIN FUNCTION:
182  datarepr.fillOneGain((*imageIter));
183 
184  ++(datarepr.nr);
185  ++(datarepr.id);
186  }
187  return filename;
188  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalPedestals >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 160 of file HcalPedestalsPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

164  {
165 
166  //how much values are in container
167  unsigned int numOfValues = 8;
168 
169  //create object helper for making plots;
170  HcalPedestalsDataRepr datarepr(numOfValues, object().getAllContainers());
171 
172  datarepr.nr = 0;
173  datarepr.id = 0;
174  datarepr.rootname.str("_Pedestalrootvalue_");
175  datarepr.plotname.str("PedestalValue ");
176  datarepr.filename.str("");
177  datarepr.filename << filename << "_Pedestal_";
178 
179  typedef std::vector<TH2F> graphData;
180  std::vector< graphData > graphDataVec(numOfValues);
181  std::vector< graphData >::iterator imageIter;
182 
183  //create images:
184  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
185  if (datarepr.nr == 4){
186  datarepr.nr = 0;
187  datarepr.rootname.str("_PedestalWidthrootname_");
188  datarepr.plotname.str("PedestalWidth ");
189  datarepr.filename.str("");
190  datarepr.filename << filename << "_PedestalWidth_";
191  }
192  //MAIN FUNCTION:
193  datarepr.fillOneGain((*imageIter));
194 
195  ++(datarepr.nr);
196  ++(datarepr.id);
197  }
198  return filename;
199  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalPulseShapes >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 166 of file EcalPulseShapesPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, HcalObjRepresent::Fill(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, alignCSCRings::s, jetcorrextractor::sign(), EcalPulseShape::TEMPLATESAMPLES, EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

169  {
170  gStyle->SetPalette(1);
171  // TCanvas canvas("CC map","CC map",840,600);
172  TCanvas canvas("CC map","CC map",800,1200);
173 
174  float xmi[3] = {0.0 , 0.22, 0.78};
175  float xma[3] = {0.22, 0.78, 1.00};
176  TPad*** pad = new TPad**[6];
177  for (int s = 0; s < 6; s++) {
178  pad[s] = new TPad*[3];
179  for (int obj = 0; obj < 3; obj++) {
180  float yma = 1.- (0.17 * s);
181  float ymi = yma - 0.15;
182  pad[s][obj] = new TPad(Form("p_%i_%i", obj, s),Form("p_%i_%i", obj, s),
183  xmi[obj], ymi, xma[obj], yma);
184  pad[s][obj]->Draw();
185  }
186  }
187 
188  const int kSides = 2;
189  const int kBarlRings = EBDetId::MAX_IETA;
190  const int kBarlWedges = EBDetId::MAX_IPHI;
191  const int kEndcWedgesX = EEDetId::IX_MAX;
192  const int kEndcWedgesY = EEDetId::IY_MAX;
193 
194  TH2F** barrel_s = new TH2F*[EcalPulseShape::TEMPLATESAMPLES];
195  TH2F** endc_p_s = new TH2F*[EcalPulseShape::TEMPLATESAMPLES];
196  TH2F** endc_m_s = new TH2F*[EcalPulseShape::TEMPLATESAMPLES];
197  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) {
198  barrel_s[s] = new TH2F(Form("EBs%i",s),Form("sample %i EB",s),360,0,360, 170, -85,85);
199  endc_p_s[s] = new TH2F(Form("EE+s%i",s),Form("sample %i EE+",s),100,1,101,100,1,101);
200  endc_m_s[s] = new TH2F(Form("EE-s%i",s),Form("sample %i EE-",s),100,1,101,100,1,101);
201  }
202 
203  for (int sign=0; sign < kSides; sign++) {
204  int thesign = sign==1 ? 1:-1;
205 
206  for (int ieta=0; ieta<kBarlRings; ieta++) {
207  for (int iphi=0; iphi<kBarlWedges; iphi++) {
208  EBDetId id((ieta+1)*thesign, iphi+1);
209  float y = -1 - ieta;
210  if(sign == 1) y = ieta;
211  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) {
212  barrel_s[s]->Fill(iphi, y, object()[id.rawId()].pdfval[s]);
213  }
214  } // iphi
215  } // ieta
216 
217  for (int ix=0; ix<kEndcWedgesX; ix++) {
218  for (int iy=0; iy<kEndcWedgesY; iy++) {
219  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
220  EEDetId id(ix+1,iy+1,thesign);
221  if (thesign==1) {
222  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s)
223  endc_p_s[s]->Fill(ix+1,iy+1,object()[id.rawId()].pdfval[s]);
224  }
225  else {
226  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s)
227  endc_m_s[s]->Fill(ix+1,iy+1,object()[id.rawId()].pdfval[s]);
228  }
229  } // iy
230  } // ix
231  } // side
232 
233  //canvas.cd(1);
234  TLine* l = new TLine(0., 0., 0., 0.);
235  l->SetLineWidth(1);
236  int ixSectorsEE[202] = {
237  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
238  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
239  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
240  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
241  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
242  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
243  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
244  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
245  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
246  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
247 
248  int iySectorsEE[202] = {
249  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
250  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
251  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
252  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
253  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
254  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
255  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
256  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
257  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
258  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
259 
260  int ipad=0;
261  // plot only the measured ones, not the extrapolated
262  for(int s = 0; s<7; ++s) {
263  // plot only the extrapolated ones
264  // for(int s = 7; s<12; ++s) {
265  // do not plot the maximum sample, which is 1 by default
266  if(s==2) continue;
267  pad[ipad][0]->cd();
268  endc_m_s[s]->SetStats(0);
269  endc_m_s[s]->SetMaximum(1);
270  endc_m_s[s]->SetMinimum(0);
271  endc_m_s[s]->Draw("colz");
272  for ( int i=0; i<201; i=i+1) {
273  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
274  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
275  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
276  ixSectorsEE[i+1], iySectorsEE[i+1]);
277  l->SetLineWidth(0.2);
278  }
279  }
280  //canvas.cd(2);
281  pad[ipad][1]->cd();
282  barrel_s[s]->SetStats(0);
283  barrel_s[s]->SetMaximum(1);
284  barrel_s[s]->SetMinimum(0);
285  barrel_s[s]->Draw("colz");
286  for(int i = 0; i <17; i++) {
287  Double_t x = 20.+ (i *20);
288  l = new TLine(x,-85.,x,86.);
289  l->Draw();
290  l->SetLineWidth(0.2);
291  }
292  l = new TLine(0.,0.,360.,0.);
293  l->Draw();
294  //canvas.cd(3);
295  pad[ipad][2]->cd();
296  endc_p_s[s]->SetStats(0);
297  endc_p_s[s]->SetMaximum(1);
298  endc_p_s[s]->SetMinimum(0);
299  endc_p_s[s]->Draw("colz");
300  for ( int i=0; i<201; i=i+1) {
301  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
302  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
303  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
304  ixSectorsEE[i+1], iySectorsEE[i+1]);
305  l->SetLineWidth(0.2);
306  }
307  }
308  ipad++;
309  }
310 
311  canvas.SaveAs(filename.c_str());
312  return filename;
313  } // plot
int i
Definition: DBlmapReader.cc:9
static const int kBarlRings
double sign(double x)
static const int TEMPLATESAMPLES
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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 168 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(), x(), and EcalScDetId::zside().

Referenced by cuy.FindIssue::__init__().

171  {
172  // std::string fname = filename + ".txt";
173  // EcalDAQTowerStatusXMLTranslator::plot(fname, object());
174  // return fname;
175  TCanvas canvas("CC map","CC map",800,800);
176  TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.);
177  padb->Draw();
178  TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45);
179  padem->Draw();
180  TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45);
181  padep->Draw();
182 
183  TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 34, -17, 17);
184  TH2F* endc_p = new TH2F("EE+","EE+ Tower Status",22, 0, 22, 22, 0, 22);
185  TH2F* endc_m = new TH2F("EE-","EE- Tower Status",22, 0, 22, 22, 0, 22);
186  for(uint cellid = 0;
188  ++cellid) {
190  if (object().find(rawid) == object().end()) continue;
191  int ieta = rawid.ieta();
192  if(ieta > 0) ieta--; // 1 to 17
193  int iphi = rawid.iphi() - 1; // 0 to 71
194  barrel->Fill(iphi, ieta, object()[rawid].getStatusCode());
195  }
196  for(uint cellid = 0;
198  ++cellid) {
199  if(EcalScDetId::validHashIndex(cellid)) {
200  EcalScDetId rawid = EcalScDetId::unhashIndex(cellid);
201  int ix = rawid.ix(); // 1 to 20
202  int iy = rawid.iy(); // 1 to 20
203  int side = rawid.zside();
204  if(side == -1)
205  endc_m->Fill(ix, iy, object()[rawid].getStatusCode());
206  else
207  endc_p->Fill(ix, iy, object()[rawid].getStatusCode());
208  }
209  }
210  TLine* l = new TLine(0., 0., 0., 0.);
211  l->SetLineWidth(1);
212  padb->cd();
213  barrel->SetStats(0);
214  // barrel->SetMaximum(14);
215  // barrel->SetMinimum(0);
216  // barrel->Draw("colz");
217  barrel->Draw("col");
218  for(int i = 0; i <17; i++) {
219  Double_t x = 4.+ (i * 4);
220  l = new TLine(x, -17., x, 17.);
221  l->Draw();
222  }
223  l = new TLine(0., 0., 72., 0.);
224  l->Draw();
225 
226  int ixSectorsEE[133] = {
227  8,14,14,17,17,18,18,19,19,20,20,21,21,20,20,19,19,18,18,17,
228  17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4,
229  4, 5, 5, 8, 8, 8, 9, 9,10,10,12,12,13,13,12,12,10,10, 9, 9,
230  10,10, 0,11,11, 0,10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 0,12,13,
231  13,14,14,15,15,16,16,17,17, 0, 9, 8, 8, 3, 3, 1, 0,13,14,14,
232  19,19,21, 0, 9, 8, 8, 7, 7, 5, 5, 3, 3, 2, 0,13,14,14,15,15,
233  17,17,19,19,20, 0,14,14,13,13,12,12,0};
234  int iySectorsEE[133] = {
235  1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8,14,14,17,17,18,18,19,19,
236  20,20,21,21,20,20,19,19,18,18,17,17,14,14, 8, 8, 5, 5, 4, 4,
237  3, 3, 2, 2, 1, 4, 4, 7, 7, 9, 9,10,10,12,12,13,13,12,12,10,
238  10, 9, 0,13,21, 0,13,13,14,14,15,15,16,16,18,18,19, 0,13,13,
239  14,14,15,15,16,16,18,18,19, 0,11,11,12,12,13,13, 0,11,11,12,
240  12,13,13, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0,10,10, 9, 9, 8,
241  8, 7, 7, 6, 6, 0, 2, 4, 4, 7, 7, 9, 0} ;
242  padem->cd();
243  endc_m->SetStats(0);
244  endc_m->Draw("col");
245  for ( int i = 0; i < 132; i=i+1) {
246  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
247  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
248  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
249  ixSectorsEE[i+1], iySectorsEE[i+1]);
250  }
251  }
252 
253  padep->cd();
254  endc_p->SetStats(0);
255  endc_p->Draw("col");
256  for ( int i = 0; i < 132; i=i+1) {
257  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
258  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
259  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
260  ixSectorsEE[i+1], iySectorsEE[i+1]);
261  }
262  }
263 
264  canvas.SaveAs(filename.c_str());
265  return filename;
266  }
int i
Definition: DBlmapReader.cc:9
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
static EcalScDetId unhashIndex(int hi)
Definition: EcalScDetId.h:118
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
int ieta() const
get the tower ieta
def canvas
Definition: svgfig.py:481
int ix() const
Definition: EcalScDetId.h:71
#define end
Definition: vmac.h:37
int iy() const
Definition: EcalScDetId.h:77
int iphi() const
get the tower iphi
int zside() const
Definition: EcalScDetId.h:65
static bool validHashIndex(int hi)
Definition: EcalScDetId.h:140
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalPulseSymmCovariances >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 170 of file EcalPulseSymmCovariancesPyWrapper.cc.

References svgfig::canvas(), alignCSCRings::e, lut2db_cfg::filename, HcalObjRepresent::Fill(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, alignCSCRings::s, jetcorrextractor::sign(), EcalPulseShape::TEMPLATESAMPLES, THERAW, EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

173  {
174  gStyle->SetPalette(1);
175  // TCanvas canvas("CC map","CC map",840,600);
176  TCanvas canvas("CC map","CC map",800,1200);
177 
178  float xmi[3] = {0.0 , 0.22, 0.78};
179  float xma[3] = {0.22, 0.78, 1.00};
180  TPad*** pad = new TPad**[6];
181  for (int s = 0; s < 6; s++) {
182  pad[s] = new TPad*[3];
183  for (int obj = 0; obj < 3; obj++) {
184  float yma = 1.- (0.17 * s);
185  float ymi = yma - 0.15;
186  pad[s][obj] = new TPad(Form("p_%i_%i", obj, s),Form("p_%i_%i", obj, s),
187  xmi[obj], ymi, xma[obj], yma);
188  pad[s][obj]->Draw();
189  }
190  }
191 
192  const int kSides = 2;
193  const int kBarlRings = EBDetId::MAX_IETA;
194  const int kBarlWedges = EBDetId::MAX_IPHI;
195  const int kEndcWedgesX = EEDetId::IX_MAX;
196  const int kEndcWedgesY = EEDetId::IY_MAX;
197 
198  TH2F** barrel_s = new TH2F*[EcalPulseShape::TEMPLATESAMPLES];
199  TH2F** endc_p_s = new TH2F*[EcalPulseShape::TEMPLATESAMPLES];
200  TH2F** endc_m_s = new TH2F*[EcalPulseShape::TEMPLATESAMPLES];
201  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) {
202  barrel_s[s] = new TH2F(Form("EBs%i",s),Form("sample %i EB",s),360,0,360, 170, -85,85);
203  endc_p_s[s] = new TH2F(Form("EE+s%i",s),Form("sample %i EE+",s),100,1,101,100,1,101);
204  endc_m_s[s] = new TH2F(Form("EE-s%i",s),Form("sample %i EE-",s),100,1,101,100,1,101);
205  }
206 
207  for (int sign=0; sign < kSides; sign++) {
208  int thesign = sign==1 ? 1:-1;
209 
210  for (int ieta=0; ieta<kBarlRings; ieta++) {
211  for (int iphi=0; iphi<kBarlWedges; iphi++) {
212  EBDetId id((ieta+1)*thesign, iphi+1);
213  float y = -1 - ieta;
214  if(sign == 1) y = ieta;
215  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) {
216  barrel_s[s]->Fill(iphi, y, fabs(object()[id.rawId()].val(THERAW,s)));
217  }
218  } // iphi
219  } // ieta
220 
221  for (int ix=0; ix<kEndcWedgesX; ix++) {
222  for (int iy=0; iy<kEndcWedgesY; iy++) {
223  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
224  EEDetId id(ix+1,iy+1,thesign);
225  if (thesign==1) {
226  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s)
227  endc_p_s[s]->Fill(ix+1,iy+1,fabs(object()[id.rawId()].val(THERAW,s)));
228  }
229  else {
230  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s)
231  endc_m_s[s]->Fill(ix+1,iy+1,fabs(object()[id.rawId()].val(THERAW,s)));
232  }
233  } // iy
234  } // ix
235  } // side
236 
237  //canvas.cd(1);
238  TLine* l = new TLine(0., 0., 0., 0.);
239  l->SetLineWidth(1);
240  int ixSectorsEE[202] = {
241  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
242  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
243  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
244  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
245  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
246  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
247  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
248  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
249  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
250  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
251 
252  int iySectorsEE[202] = {
253  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
254  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
255  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
256  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
257  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
258  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
259  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
260  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
261  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
262  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
263 
264  int ipad=0;
265  // plot only the measured ones, not the extrapolated
266  for(int s = 0; s<7; ++s) {
267  // plot only the extrapolated ones
268  // for(int s = 7; s<12; ++s) {
269  // do not plot the maximum sample, which is 1 by default
270  if(s==2) continue;
271  pad[ipad][0]->cd();
272  pad[ipad][0]->SetLogz(1);
273  endc_m_s[s]->SetStats(0);
274  endc_m_s[s]->SetMaximum(1.0);
275  endc_m_s[s]->SetMinimum(1.0e-7);
276  endc_m_s[s]->Draw("colz");
277  for ( int i=0; i<201; i=i+1) {
278  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
279  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
280  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
281  ixSectorsEE[i+1], iySectorsEE[i+1]);
282  l->SetLineWidth(0.2);
283  }
284  }
285  //canvas.cd(2);
286  pad[ipad][1]->cd();
287  pad[ipad][1]->SetLogz(1);
288  barrel_s[s]->SetStats(0);
289  barrel_s[s]->SetMaximum(1.0);
290  barrel_s[s]->SetMinimum(1.0e-7);
291  barrel_s[s]->Draw("colz");
292  for(int i = 0; i <17; i++) {
293  Double_t x = 20.+ (i *20);
294  l = new TLine(x,-85.,x,86.);
295  l->Draw();
296  l->SetLineWidth(0.2);
297  }
298  l = new TLine(0.,0.,360.,0.);
299  l->Draw();
300  //canvas.cd(3);
301  pad[ipad][2]->cd();
302  pad[ipad][2]->SetLogz(1);
303  endc_p_s[s]->SetStats(0);
304  endc_p_s[s]->SetMaximum(1.0);
305  endc_p_s[s]->SetMinimum(1.0e-7);
306  endc_p_s[s]->Draw("colz");
307  for ( int i=0; i<201; i=i+1) {
308  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
309  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
310  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
311  ixSectorsEE[i+1], iySectorsEE[i+1]);
312  l->SetLineWidth(0.2);
313  }
314  }
315  ipad++;
316  }
317 
318  canvas.SaveAs(filename.c_str());
319  return filename;
320  } // plot
int i
Definition: DBlmapReader.cc:9
static const int kBarlRings
double sign(double x)
static const int TEMPLATESAMPLES
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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 184 of file EcalPedestalsPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, 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, getGTfromDQMFile::obj, jetcorrextractor::sign(), EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

187  {
188  gStyle->SetPalette(1);
189  // TCanvas canvas("CC map","CC map",840,600);
190  TCanvas canvas("CC map","CC map",800,1200);
191 
192  float xmi[3] = {0.0 , 0.22, 0.78};
193  float xma[3] = {0.22, 0.78, 1.00};
194  TPad*** pad = new TPad**[6];
195  for (int gId = 0; gId < 6; gId++) {
196  pad[gId] = new TPad*[3];
197  for (int obj = 0; obj < 3; obj++) {
198  float yma = 1.- (0.17 * gId);
199  float ymi = yma - 0.15;
200  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
201  xmi[obj], ymi, xma[obj], yma);
202  pad[gId][obj]->Draw();
203  }
204  }
205 
206  const int kGains = 3;
207  const int gainValues[3] = {12, 6, 1};
208  const int kSides = 2;
209  const int kBarlRings = EBDetId::MAX_IETA;
210  const int kBarlWedges = EBDetId::MAX_IPHI;
211  const int kEndcWedgesX = EEDetId::IX_MAX;
212  const int kEndcWedgesY = EEDetId::IY_MAX;
213 
214  TH2F** barrel_m = new TH2F*[3];
215  TH2F** endc_p_m = new TH2F*[3];
216  TH2F** endc_m_m = new TH2F*[3];
217  TH2F** barrel_r = new TH2F*[3];
218  TH2F** endc_p_r = new TH2F*[3];
219  TH2F** endc_m_r = new TH2F*[3];
220  for (int gainId = 0; gainId < kGains; gainId++) {
221  barrel_m[gainId] = new TH2F(Form("EBm%i",gainId),Form("mean %i EB",gainValues[gainId]),360,0,360, 170, -85,85);
222  endc_p_m[gainId] = new TH2F(Form("EE+m%i",gainId),Form("mean %i EE+",gainValues[gainId]),100,1,101,100,1,101);
223  endc_m_m[gainId] = new TH2F(Form("EE-m%i",gainId),Form("mean %i EE-",gainValues[gainId]),100,1,101,100,1,101);
224  barrel_r[gainId] = new TH2F(Form("EBr%i",gainId),Form("rms %i EB",gainValues[gainId]),360,0,360, 170, -85,85);
225  endc_p_r[gainId] = new TH2F(Form("EE+r%i",gainId),Form("rms %i EE+",gainValues[gainId]),100,1,101,100,1,101);
226  endc_m_r[gainId] = new TH2F(Form("EE-r%i",gainId),Form("rms %i EE-",gainValues[gainId]),100,1,101,100,1,101);
227  }
228 
229  for (int sign=0; sign < kSides; sign++) {
230  int thesign = sign==1 ? 1:-1;
231 
232  for (int ieta=0; ieta<kBarlRings; ieta++) {
233  for (int iphi=0; iphi<kBarlWedges; iphi++) {
234  EBDetId id((ieta+1)*thesign, iphi+1);
235  float y = -1 - ieta;
236  if(sign == 1) y = ieta;
237  barrel_m[0]->Fill(iphi, y, object()[id.rawId()].mean_x12);
238  barrel_r[0]->Fill(iphi, y, object()[id.rawId()].rms_x12);
239  barrel_m[1]->Fill(iphi, y, object()[id.rawId()].mean_x6);
240  barrel_r[1]->Fill(iphi, y, object()[id.rawId()].rms_x6);
241  barrel_m[2]->Fill(iphi, y, object()[id.rawId()].mean_x1);
242  barrel_r[2]->Fill(iphi, y, object()[id.rawId()].rms_x1);
243  } // iphi
244  } // ieta
245 
246  for (int ix=0; ix<kEndcWedgesX; ix++) {
247  for (int iy=0; iy<kEndcWedgesY; iy++) {
248  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
249  EEDetId id(ix+1,iy+1,thesign);
250  if (thesign==1) {
251  endc_p_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x12);
252  endc_p_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x12);
253  endc_p_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6);
254  endc_p_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x6);
255  endc_p_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1);
256  endc_p_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x1);
257  }
258  else{
259  endc_m_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x12);
260  endc_m_r[0]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x12);
261  endc_m_m[1]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x6);
262  endc_m_r[1]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x6);
263  endc_m_m[2]->Fill(ix+1,iy+1,object()[id.rawId()].mean_x1);
264  endc_m_r[2]->Fill(ix+1,iy+1,object()[id.rawId()].rms_x1);
265  }
266  } // iy
267  } // ix
268  } // side
269 
270  //canvas.cd(1);
271  float bmin[3] ={0.7, 0.5, 0.4};
272  float bmax[3] ={1.7, 1.0, 0.8};
273  float emin[3] ={1.5, 0.8, 0.4};
274  float emax[3] ={2.5, 1.5, 0.8};
275  TLine* l = new TLine(0., 0., 0., 0.);
276  l->SetLineWidth(1);
277  int ixSectorsEE[202] = {
278  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
279  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
280  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
281  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
282  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
283  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
284  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
285  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
286  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
287  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
288 
289  int iySectorsEE[202] = {
290  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
291  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
292  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
293  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
294  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
295  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
296  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
297  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
298  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
299  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
300 
301  for (int gId = 0; gId < 3; gId++) {
302  pad[gId][0]->cd();
303  endc_m_m[gId]->SetStats(0);
304  endc_m_m[gId]->SetMaximum(225);
305  endc_m_m[gId]->SetMinimum(175);
306  endc_m_m[gId]->Draw("colz");
307  for ( int i=0; i<201; i=i+1) {
308  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
309  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
310  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
311  ixSectorsEE[i+1], iySectorsEE[i+1]);
312  l->SetLineWidth(0.2);
313  }
314  }
315  pad[gId + 3][0]->cd();
316  endc_m_r[gId]->SetStats(0);
317  endc_m_r[gId]->SetMaximum(emax[gId]);
318  endc_m_r[gId]->SetMinimum(emin[gId]);
319  endc_m_r[gId]->Draw("colz");
320  for ( int i=0; i<201; i=i+1) {
321  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
322  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
323  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
324  ixSectorsEE[i+1], iySectorsEE[i+1]);
325  }
326  }
327  //canvas.cd(2);
328  pad[gId][1]->cd();
329  barrel_m[gId]->SetStats(0);
330  barrel_m[gId]->SetMaximum(225);
331  barrel_m[gId]->SetMinimum(175);
332  barrel_m[gId]->Draw("colz");
333  for(int i = 0; i <17; i++) {
334  Double_t x = 20.+ (i *20);
335  l = new TLine(x,-85.,x,86.);
336  l->Draw();
337  }
338  l = new TLine(0.,0.,360.,0.);
339  l->Draw();
340  pad[gId + 3][1]->cd();
341  barrel_r[gId]->SetStats(0);
342  barrel_r[gId]->SetMaximum(bmax[gId]);
343  barrel_r[gId]->SetMinimum(bmin[gId]);
344  barrel_r[gId]->Draw("colz");
345  for(int i = 0; i <17; i++) {
346  Double_t x = 20.+ (i *20);
347  l = new TLine(x,-85.,x,86.);
348  l->Draw();
349  }
350  l = new TLine(0.,0.,360.,0.);
351  l->Draw();
352  //canvas.cd(3);
353  pad[gId][2]->cd();
354  endc_p_m[gId]->SetStats(0);
355  endc_p_m[gId]->SetMaximum(225);
356  endc_p_m[gId]->SetMinimum(175);
357  endc_p_m[gId]->Draw("colz");
358  for ( int i=0; i<201; i=i+1) {
359  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
360  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
361  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
362  ixSectorsEE[i+1], iySectorsEE[i+1]);
363  }
364  }
365  pad[gId + 3][2]->cd();
366  endc_p_r[gId]->SetStats(0);
367  endc_p_r[gId]->SetMaximum(emax[gId]);
368  endc_p_r[gId]->SetMinimum(emin[gId]);
369  endc_p_r[gId]->Draw("colz");
370  for ( int i=0; i<201; i=i+1) {
371  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
372  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
373  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
374  ixSectorsEE[i+1], iySectorsEE[i+1]);
375  }
376  }
377  }
378 
379  canvas.SaveAs(filename.c_str());
380  return filename;
381  } // plot
int i
Definition: DBlmapReader.cc:9
int gainId(sample_type sample)
get the gainId (2 bits)
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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 192 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(), x(), and EcalScDetId::zside().

Referenced by cuy.FindIssue::__init__().

195  {
196  // std::string fname = filename + ".txt";
197  // EcalDCSTowerStatusXMLTranslator::plot(fname, object());
198  // return fname;
199 
200  // use David's palette
201  gStyle->SetPalette(1);
202 
203  const Int_t NRGBs = 5;
204  const Int_t NCont = 255;
205 
206  Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
207  Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
208  Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
209  Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
210  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
211  gStyle->SetNumberContours(NCont);
212 
213  TCanvas canvas("CC map","CC map",800,800);
214  TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.);
215  padb->Draw();
216  TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45);
217  padem->Draw();
218  TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45);
219  padep->Draw();
220 
221  // TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 35, -17, 18);
222  TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 34, -17, 17);
223  TH2F* endc_p = new TH2F("EE+","EE+ Tower Status",22, 0, 22, 22, 0, 22);
224  TH2F* endc_m = new TH2F("EE-","EE- Tower Status",22, 0, 22, 22, 0, 22);
225  for(uint cellid = 0;
227  ++cellid) {
229  if (object().find(rawid) == object().end()) continue;
230  int ieta = rawid.ieta();
231  if(ieta > 0) ieta--; // 1 to 17
232  int iphi = rawid.iphi() - 1; // 0 to 71
233  barrel->Fill(iphi, ieta, object()[rawid].getStatusCode());
234  }
235  for(uint cellid = 0;
237  ++cellid) {
238  if(EcalScDetId::validHashIndex(cellid)) {
239  EcalScDetId rawid = EcalScDetId::unhashIndex(cellid);
240  int ix = rawid.ix(); // 1 to 20
241  int iy = rawid.iy(); // 1 to 20
242  int side = rawid.zside();
243  if(side == -1)
244  endc_m->Fill(ix, iy, object()[rawid].getStatusCode());
245  else
246  endc_p->Fill(ix, iy, object()[rawid].getStatusCode());
247  }
248  }
249  TLine* l = new TLine(0., 0., 0., 0.);
250  l->SetLineWidth(1);
251  padb->cd();
252  barrel->SetStats(0);
253  barrel->SetMaximum(14);
254  barrel->SetMinimum(0);
255  barrel->Draw("colz");
256  // barrel->Draw("col");
257  for(int i = 0; i <17; i++) {
258  Double_t x = 4.+ (i * 4);
259  l = new TLine(x, -17., x, 17.);
260  l->Draw();
261  }
262  l = new TLine(0., 0., 72., 0.);
263  l->Draw();
264 
265  int ixSectorsEE[133] = {
266  8,14,14,17,17,18,18,19,19,20,20,21,21,20,20,19,19,18,18,17,
267  17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4,
268  4, 5, 5, 8, 8, 8, 9, 9,10,10,12,12,13,13,12,12,10,10, 9, 9,
269  10,10, 0,11,11, 0,10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 0,12,13,
270  13,14,14,15,15,16,16,17,17, 0, 9, 8, 8, 3, 3, 1, 0,13,14,14,
271  19,19,21, 0, 9, 8, 8, 7, 7, 5, 5, 3, 3, 2, 0,13,14,14,15,15,
272  17,17,19,19,20, 0,14,14,13,13,12,12,0};
273  int iySectorsEE[133] = {
274  1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8,14,14,17,17,18,18,19,19,
275  20,20,21,21,20,20,19,19,18,18,17,17,14,14, 8, 8, 5, 5, 4, 4,
276  3, 3, 2, 2, 1, 4, 4, 7, 7, 9, 9,10,10,12,12,13,13,12,12,10,
277  10, 9, 0,13,21, 0,13,13,14,14,15,15,16,16,18,18,19, 0,13,13,
278  14,14,15,15,16,16,18,18,19, 0,11,11,12,12,13,13, 0,11,11,12,
279  12,13,13, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0,10,10, 9, 9, 8,
280  8, 7, 7, 6, 6, 0, 2, 4, 4, 7, 7, 9, 0} ;
281  padem->cd();
282  endc_m->SetStats(0);
283  endc_m->SetMaximum(14);
284  endc_m->SetMinimum(0);
285  endc_m->Draw("colz");
286  for ( int i = 0; i < 132; i=i+1) {
287  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
288  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
289  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
290  ixSectorsEE[i+1], iySectorsEE[i+1]);
291  }
292  }
293 
294  padep->cd();
295  endc_p->SetStats(0);
296  endc_p->SetMaximum(14);
297  endc_p->SetMinimum(0);
298  endc_p->Draw("colz");
299  for ( int i = 0; i < 132; i=i+1) {
300  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
301  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
302  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
303  ixSectorsEE[i+1], iySectorsEE[i+1]);
304  }
305  }
306 
307  canvas.SaveAs(filename.c_str());
308  return filename;
309  }
int i
Definition: DBlmapReader.cc:9
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
static EcalScDetId unhashIndex(int hi)
Definition: EcalScDetId.h:118
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
int ieta() const
get the tower ieta
def canvas
Definition: svgfig.py:481
int ix() const
Definition: EcalScDetId.h:71
#define end
Definition: vmac.h:37
int iy() const
Definition: EcalScDetId.h:77
int iphi() const
get the tower iphi
int zside() const
Definition: EcalScDetId.h:65
static bool validHashIndex(int hi)
Definition: EcalScDetId.h:140
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalLutMetadata >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 200 of file HcalLutMetadataPyWrapper.cc.

References lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), HcalObjRepresent::ADataRepr::id, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, and HcalObjRepresent::ADataRepr::rootname.

Referenced by cuy.FindIssue::__init__().

204  {
205 
206  //how much values are in container
207  unsigned int numOfValues = 3;
208 
209  //create object helper for making plots;
210  HcalLutMetadataDataRepr datarepr(numOfValues, object().getAllContainers());
211 
212  datarepr.nr = 0;
213  datarepr.id = 0;
214  datarepr.rootname.str("_LutMetadatumrootvalue_");
215  datarepr.plotname.str("LutMetadatumValue ");
216  datarepr.filename.str("");
217  datarepr.filename << filename << "_LutMetadatum_";
218 
219  typedef std::vector<TH2F> graphData;
220  std::vector< graphData > graphDataVec(numOfValues);
221  std::vector< graphData >::iterator imageIter;
222  //create images:
223  for (imageIter = graphDataVec.begin(); imageIter != graphDataVec.end(); ++imageIter){
224  switch(datarepr.id){
225  case 0:
226  datarepr.rootname.str("_RCalibrootvalue_");
227  datarepr.plotname.str("RCalib ");
228  datarepr.filename.str("");
229  datarepr.filename << filename << "_RCalib_";
230  break;
231  case 1:
232  datarepr.rootname.str("_LutGranularityrootvalue_");
233  datarepr.plotname.str("LutGranularity ");
234  datarepr.filename.str("");
235  datarepr.filename << filename << "_LutGranularity_";
236  break;
237  case 2:
238  datarepr.rootname.str("_OutputLutThresholdrootvalue_");
239  datarepr.plotname.str("OutputLutThreshold ");
240  datarepr.filename.str("");
241  datarepr.filename << filename << "_OutputLutThreshold_";
242  break;
243  default:
244  throw("Trying to access not existing value!");
245  }
246  //MAIN FUNCTION:
247  datarepr.fillOneGain((*imageIter));
248 
249  //++(datarepr.nr);
250  ++(datarepr.id);
251  }
252  return filename;
253  }
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< EcalTPGCrystalStatus >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 207 of file EcalTPGCrystalStatusPyWrapper.cc.

References Reference_intrackfit_cff::barrel, svgfig::canvas(), lut2db_cfg::filename, h, i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, jetcorrextractor::sign(), EEDetId::validDetId(), w, and x().

Referenced by cuy.FindIssue::__init__().

210  {
211  gStyle->SetPalette(1);
212  const int TOTAL_PADS = 3;
213 
214  // TCanvas canvas("CC map","CC map",700,800);
215  Double_t w = 600;
216  Double_t h = 600;
217  TCanvas canvas("c", "c", w, h);
218  canvas.SetWindowSize(w + (w - canvas.GetWw()), h + (h - canvas.GetWh()));
219  // const float IMG_SIZE = 1.5;
220  // TCanvas canvas("CC map","CC map",800*IMG_SIZE, 200 * IMG_SIZE);//800, 1200
221 
222  float xmi[3] = {0.0, 0.0, 0.5};
223  float xma[3] = {1.0, 0.5, 1.0};
224  float ymi[3] = {0.5, 0.0, 0.0};
225  float yma[3] = {1.0, 0.5, 0.5};
226 
227 
228  TPad** pad = new TPad*[TOTAL_PADS];
229  for (int obj = 0; obj < TOTAL_PADS; obj++) {
230  pad[obj] = new TPad(Form("p_%i", obj),Form("p_%i", obj),
231  xmi[obj], ymi[obj], xma[obj], yma[obj]);
232  pad[obj]->Draw();
233  }
234 
235  const int kSides = 2;
236  const int kBarlRings = EBDetId::MAX_IETA;
237  const int kBarlWedges = EBDetId::MAX_IPHI;
238  const int kEndcWedgesX = EEDetId::IX_MAX;
239  const int kEndcWedgesY = EEDetId::IY_MAX;
240 
241  TH2F* barrel = new TH2F("EB","EB TPG Crystal Status", 360,0,360, 170, -85,85);
242  TH2F* endc_m = new TH2F("EEm","EE- TPG Crystal Status",100,1,101,100,1,101);
243  TH2F* endc_p = new TH2F("EEp","EE+ TPG Crystal Status",100,1,101,100,1,101);
244 
245  for (int sign=0; sign < kSides; sign++) {
246  int thesign = sign==1 ? 1:-1;
247 
248  for (int ieta=0; ieta<kBarlRings; ieta++) {
249  for (int iphi=0; iphi<kBarlWedges; iphi++) {
250  EBDetId id((ieta+1)*thesign, iphi+1);
251  float y = -1 - ieta;
252  if(sign == 1) y = ieta;
253  barrel->Fill(iphi, y, object()[id.rawId()].getStatusCode());
254  } // iphi
255  } // ieta
256 
257  for (int ix=0; ix<kEndcWedgesX; ix++) {
258  for (int iy=0; iy<kEndcWedgesY; iy++) {
259  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
260  EEDetId id(ix+1,iy+1,thesign);
261  if (thesign==1) {
262  endc_p->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode());
263  }
264  else{
265  endc_m->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode());
266  }
267  } // iy
268  } // ix
269  } // side
270 
271  TLine* l = new TLine(0., 0., 0., 0.);
272  l->SetLineWidth(1);
273  int ixSectorsEE[202] = {
274  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
275  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
276  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
277  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
278  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
279  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
280  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
281  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
282  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
283  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
284 
285  int iySectorsEE[202] = {
286  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
287  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
288  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
289  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
290  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
291  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
292  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
293  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
294  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
295  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
296 
297  pad[0]->cd();
298  barrel->SetStats(0);
299  barrel->Draw("colz");
300  for(int i = 0; i <17; i++) {
301  Double_t x = 20.+ (i *20);
302  l = new TLine(x,-85.,x,86.);
303  l->Draw();
304  }
305  l = new TLine(0.,0.,360.,0.);
306  l->Draw();
307 
308  pad[1]->cd();
309  endc_m->SetStats(0);
310  endc_m->Draw("col");
311  for ( int i=0; i<201; i=i+1) {
312  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
313  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
314  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
315  ixSectorsEE[i+1], iySectorsEE[i+1]);
316  l->SetLineWidth(0.2);
317  }
318  }
319 
320  pad[2]->cd();
321  endc_p->SetStats(0);
322  endc_p->Draw("col");
323  for ( int i=0; i<201; i=i+1) {
324  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
325  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
326  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
327  ixSectorsEE[i+1], iySectorsEE[i+1]);
328  }
329  }
330 
331  canvas.SaveAs(filename.c_str());
332  return filename;
333  } // plot
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< EcalDQMChannelStatus >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 211 of file EcalDQMChannelStatusPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, ecalMGPA::gainId(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, getGTfromDQMFile::obj, jetcorrextractor::sign(), AlCaHLTBitMon_QueryRunRegistry::string, EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

214  {
215  gStyle->SetPalette(1);
216  const int TOTAL_IMAGES = 1;
217  const int TOTAL_PADS = 3;
218 
219  const float IMG_SIZE = 1.5;
220  TCanvas canvas("CC map","CC map",800*IMG_SIZE, 200 * TOTAL_IMAGES*IMG_SIZE);//800, 1200
221 
222  float xmi[3] = {0.0 , 0.22, 0.78};
223  float xma[3] = {0.22, 0.78, 1.00};
224 
225 
226  TPad*** pad = new TPad**[TOTAL_IMAGES];
227  for (int gId = 0; gId < TOTAL_IMAGES; gId++) {
228  pad[gId] = new TPad*[TOTAL_PADS];
229  for (int obj = 0; obj < TOTAL_PADS; obj++) {
230  float yma = 1. - 0;//1.- (0.17 * gId);
231  float ymi = yma - 1;//0.15;
232  pad[gId][obj] = new TPad(Form("p_%i_%i", obj, gId),Form("p_%i_%i", obj, gId),
233  xmi[obj], ymi, xma[obj], yma);
234  pad[gId][obj]->Draw();
235  }
236  }
237 
238  const int kGains = 3;
239  const int gainValues[3] = {12, 6, 1};
240  const int kSides = 2;
241  const int kBarlRings = EBDetId::MAX_IETA;
242  const int kBarlWedges = EBDetId::MAX_IPHI;
243  const int kEndcWedgesX = EEDetId::IX_MAX;
244  const int kEndcWedgesY = EEDetId::IY_MAX;
245 
246  TH2F** barrel_m = new TH2F*[3];
247  TH2F** endc_p_m = new TH2F*[3];
248  TH2F** endc_m_m = new TH2F*[3];
249  std::string variableName = "DQMChannelStatus";
250  for (int gainId = 0; gainId < kGains; gainId++) {
251  barrel_m[gainId] = new TH2F(Form((variableName + " EBm%i").c_str(),gainId), Form((variableName + " EB").c_str(),gainValues[gainId]),360,0,360, 170, -85,85);
252  endc_p_m[gainId] = new TH2F(Form((variableName + " EE+m%i").c_str(),gainId), Form((variableName + " EE+").c_str(),gainValues[gainId]),100,1,101,100,1,101);
253  endc_m_m[gainId] = new TH2F(Form((variableName + " EE-m%i").c_str(),gainId), Form((variableName + " EE-").c_str(),gainValues[gainId]),100,1,101,100,1,101);
254  }
255 
256  for (int sign=0; sign < kSides; sign++) {
257  int thesign = sign==1 ? 1:-1;
258 
259  for (int ieta=0; ieta<kBarlRings; ieta++) {
260  for (int iphi=0; iphi<kBarlWedges; iphi++) {
261  EBDetId id((ieta+1)*thesign, iphi+1);
262  float y = -1 - ieta;
263  if(sign == 1) y = ieta;
264  barrel_m[0]->Fill(iphi, y, object()[id.rawId()].getStatusCode());
265  } // iphi
266  } // ieta
267 
268  for (int ix=0; ix<kEndcWedgesX; ix++) {
269  for (int iy=0; iy<kEndcWedgesY; iy++) {
270  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
271  EEDetId id(ix+1,iy+1,thesign);
272  if (thesign==1) {
273  endc_p_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode());
274  }
275  else{
276  endc_m_m[0]->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode());
277  }
278  } // iy
279  } // ix
280  } // side
281 
282  //canvas.cd(1);
283  TLine* l = new TLine(0., 0., 0., 0.);
284  l->SetLineWidth(1);
285  int ixSectorsEE[202] = {
286  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
287  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
288  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
289  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
290  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
291  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
292  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
293  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
294  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
295  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
296 
297  int iySectorsEE[202] = {
298  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
299  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
300  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
301  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
302  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
303  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
304  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
305  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
306  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
307  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
308 
309  for (int gId = 0; gId < TOTAL_IMAGES; gId++) {//was 3
310  pad[gId][0]->cd();
311  endc_m_m[gId]->SetStats(0);
312  //endc_m_m[gId]->SetMaximum(225);
313  //endc_m_m[gId]->SetMinimum(175);
314  endc_m_m[gId]->Draw("colz");
315  for ( int i=0; i<201; i=i+1) {
316  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
317  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
318  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
319  ixSectorsEE[i+1], iySectorsEE[i+1]);
320  l->SetLineWidth(0.2);
321  }
322  }
323 
324  //canvas.cd(2);
325  pad[gId][1]->cd();
326  barrel_m[gId]->SetStats(0);
327  //barrel_m[gId]->SetMaximum(225);
328  //barrel_m[gId]->SetMinimum(175);
329  barrel_m[gId]->Draw("colz");
330  for(int i = 0; i <17; i++) {
331  Double_t x = 20.+ (i *20);
332  l = new TLine(x,-85.,x,86.);
333  l->Draw();
334  }
335  l = new TLine(0.,0.,360.,0.);
336  l->Draw();
337 
338  //canvas.cd(3);
339  pad[gId][2]->cd();
340  endc_p_m[gId]->SetStats(0);
341  //endc_p_m[gId]->SetMaximum(225);
342  //endc_p_m[gId]->SetMinimum(175);
343  endc_p_m[gId]->Draw("colz");
344  for ( int i=0; i<201; i=i+1) {
345  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
346  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
347  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
348  ixSectorsEE[i+1], iySectorsEE[i+1]);
349  }
350  }
351  }
352 
353  canvas.SaveAs(filename.c_str());
354  return filename;
355  } // plot
int i
Definition: DBlmapReader.cc:9
int gainId(sample_type sample)
get the gainId (2 bits)
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< EcalDQMTowerStatus >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 215 of file EcalDQMTowerStatusPyWrapper.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(), x(), and EcalScDetId::zside().

Referenced by cuy.FindIssue::__init__().

218  {
219  // std::string fname = filename + ".txt";
220  // EcalDAQTowerStatusXMLTranslator::plot(fname, object());
221  // return fname;
222  TCanvas canvas("CC map","CC map",800,800);
223  TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.);
224  padb->Draw();
225  TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45);
226  padem->Draw();
227  TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45);
228  padep->Draw();
229 
230  TH2F* barrel = new TH2F("EB","EB Tower Status", 72, 0, 72, 34, -17, 17);
231  TH2F* endc_p = new TH2F("EE+","EE+ Tower Status",22, 0, 22, 22, 0, 22);
232  TH2F* endc_m = new TH2F("EE-","EE- Tower Status",22, 0, 22, 22, 0, 22);
233  for(uint cellid = 0;
235  ++cellid) {
237  if (object().find(rawid) == object().end()) continue;
238  int ieta = rawid.ieta();
239  if(ieta > 0) ieta--; // 1 to 17
240  int iphi = rawid.iphi() - 1; // 0 to 71
241  barrel->Fill(iphi, ieta, object()[rawid].getStatusCode());
242  }
243  for(uint cellid = 0;
245  ++cellid) {
246  if(EcalScDetId::validHashIndex(cellid)) {
247  EcalScDetId rawid = EcalScDetId::unhashIndex(cellid);
248  int ix = rawid.ix(); // 1 to 20
249  int iy = rawid.iy(); // 1 to 20
250  int side = rawid.zside();
251  if(side == -1)
252  endc_m->Fill(ix, iy, object()[rawid].getStatusCode());
253  else
254  endc_p->Fill(ix, iy, object()[rawid].getStatusCode());
255  }
256  }
257  TLine* l = new TLine(0., 0., 0., 0.);
258  l->SetLineWidth(1);
259  padb->cd();
260  barrel->SetStats(0);
261  // barrel->SetMaximum(14);
262  // barrel->SetMinimum(0);
263  // barrel->Draw("colz");
264  barrel->Draw("col");
265  for(int i = 0; i <17; i++) {
266  Double_t x = 4.+ (i * 4);
267  l = new TLine(x, -17., x, 17.);
268  l->Draw();
269  }
270  l = new TLine(0., 0., 72., 0.);
271  l->Draw();
272 
273  int ixSectorsEE[136] = {
274  8,14,14,17,17,18,18,19,19,20,20,21,21,20,20,19,19,18,18,17,
275  17,14,14, 8, 8, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4,
276  4, 5, 5, 8, 8, 8, 9, 9,10,10,12,12,13,13,12,12,10,10, 9, 9,
277  10,10, 0,11,11, 0,10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 0,12,13,
278  13,14,14,15,15,16,16,17,17, 0, 9, 8, 8, 3, 3, 1, 0,13,14,14,
279  19,19,21, 0, 9, 8, 8, 7, 7, 5, 5, 3, 3, 2, 0,13,14,14,15,15,
280  17,17,19,19,20, 0,14,14,13,13,12,12,0};
281  int iySectorsEE[136] = {
282  1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 8, 8,14,14,17,17,18,18,19,19,
283  20,20,21,21,20,20,19,19,18,18,17,17,14,14, 8, 8, 5, 5, 4, 4,
284  3, 3, 2, 2, 1, 4, 4, 7, 7, 9, 9,10,10,12,12,13,13,12,12,10,
285  10, 9, 0,13,21, 0,13,13,14,14,15,15,16,16,18,18,19, 0,13,13,
286  14,14,15,15,16,16,18,18,19, 0,11,11,12,12,13,13, 0,11,11,12,
287  12,13,13, 0,10,10, 9, 9, 8, 8, 7, 7, 6, 6, 0,10,10, 9, 9, 8,
288  8, 7, 7, 6, 6, 0, 2, 4, 4, 7, 7, 9, 0} ;
289  padem->cd();
290  endc_m->SetStats(0);
291  endc_m->Draw("col");
292  for ( int i = 0; i < 136; i=i+1) {
293  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
294  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
295  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
296  ixSectorsEE[i+1], iySectorsEE[i+1]);
297  }
298  }
299 
300  padep->cd();
301  endc_p->SetStats(0);
302  endc_p->Draw("col");
303  for ( int i = 0; i < 136; i=i+1) {
304  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
305  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
306  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
307  ixSectorsEE[i+1], iySectorsEE[i+1]);
308  }
309  }
310 
311  canvas.SaveAs(filename.c_str());
312  return filename;
313  }
int i
Definition: DBlmapReader.cc:9
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
static EcalScDetId unhashIndex(int hi)
Definition: EcalScDetId.h:118
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
int ieta() const
get the tower ieta
def canvas
Definition: svgfig.py:481
int ix() const
Definition: EcalScDetId.h:71
#define end
Definition: vmac.h:37
int iy() const
Definition: EcalScDetId.h:77
int iphi() const
get the tower iphi
int zside() const
Definition: EcalScDetId.h:65
static bool validHashIndex(int hi)
Definition: EcalScDetId.h:140
tuple filename
Definition: lut2db_cfg.py:20
template<>
std::string cond::PayLoadInspector< HcalQIEData >::plot ( std::string const &  filename,
std::string const &  ,
std::vector< int > const &  ,
std::vector< float > const &   
) const

Definition at line 218 of file HcalQIEDataPyWrapper.cc.

References cond::HcalQIEDataDataRepr::fCapId, lut2db_cfg::filename, HcalObjRepresent::ADataRepr::filename, HcalObjRepresent::ADataRepr::fillOneGain(), cond::HcalQIEDataDataRepr::fRange, HcalObjRepresent::ADataRepr::id, mergeVDriftHistosByStation::name, HcalObjRepresent::ADataRepr::nr, HcalObjRepresent::ADataRepr::plotname, cond::QIEDataCounter(), HcalObjRepresent::ADataRepr::rootname, cond::HcalQIEDataDataRepr::slopeOrOffset, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by cuy.FindIssue::__init__().

222  {
223 
224  //how much values are in container
225  unsigned int numOfValues = 32;
226 
227  //create object helper for making plots;
228  HcalQIEDataDataRepr datarepr(numOfValues, object().getAllContainers());
229 
230  typedef std::vector<TH2F> graphData;
231  std::vector< graphData > graphDataVec(numOfValues);
232  std::vector< graphData >::iterator imageIter;
233  imageIter = graphDataVec.begin();
234 
235 
236 
237  std::string name = "_Offset_";
238  datarepr.nr = 0;
239  datarepr.id = 0;
240  datarepr.rootname.str("_Offsetrootvalue_");
241  datarepr.plotname.str("Offset ");
242  datarepr.filename.str("");
243  datarepr.filename << filename << name;
244  //Run trough all values in object:
245  datarepr.slopeOrOffset = false;
246 
247  for (unsigned int fCapId = 0; fCapId < 4; ++fCapId){
248  for (unsigned int fRange = 0; fRange < 4; ++fRange){
249  datarepr.fCapId = fCapId;
250  datarepr.fRange = fRange;
251 
252  QIEDataCounter(datarepr.id, datarepr.nr);
253 
254  if (datarepr.nr == 0){
255  datarepr.filename.str("");
256  datarepr.filename << filename << name <<"0";
257  } else if ( datarepr.nr == 10)
258  {
259  datarepr.filename.str("");
260  datarepr.filename << filename << name;
261  }
262 
263 
264 
265  datarepr.fillOneGain((*imageIter));
266 
267 
268  ++(datarepr.id);
269  ++(datarepr.nr);
270  ++(imageIter);
271  }
272  }
274  name = "_Slope_";
275  datarepr.rootname.str("_Sloperootname_");
276  datarepr.plotname.str("Slope ");
277  datarepr.filename.str("");
278  datarepr.filename << filename << name;
279 
280  datarepr.slopeOrOffset = true;
281  datarepr.nr = 0;
282  datarepr.id = 0;
283 
284  for (unsigned int fCapId = 0; fCapId < 4; ++fCapId){
285  for (unsigned int fRange = 0; fRange < 4; ++fRange){
286  datarepr.fCapId = fCapId;
287  datarepr.fRange = fRange;
288 
289  QIEDataCounter(datarepr.id, datarepr.nr);
290 
291  if (datarepr.nr == 0){
292  datarepr.filename.str("");
293  datarepr.filename << filename << name <<"0";
294  } else if ( datarepr.nr == 10)
295  {
296  datarepr.filename.str("");
297  datarepr.filename << filename << name;
298  }
299 
300  datarepr.fillOneGain((*imageIter));
301 
302  ++(datarepr.id);
303  ++(datarepr.nr);
304  ++(imageIter);
305  }
306  }
307 
308 
309  return filename;
310  }
tuple filename
Definition: lut2db_cfg.py:20
std::string QIEDataCounter(const int nr, unsigned int &formated_nr, int base=4)
template<>
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 231 of file EcalFloatCondObjectContainerPyWrapper.cc.

References svgfig::canvas(), lut2db_cfg::filename, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, jetcorrextractor::sign(), and EEDetId::validDetId().

Referenced by cuy.FindIssue::__init__().

234  {
235 
236  gStyle->SetPalette(1);
237  TCanvas canvas("CC map","CC map",840,280);
238  //canvas.Divide(3,1);
239 
240  TPad pad1("p1","p1", 0.0, 0.0, 0.2, 1.0);
241  TPad pad2("p2","p2", 0.2, 0.0, 0.8, 1.0);
242  TPad pad3("p3","p3", 0.8, 0.0, 1.0, 1.0);
243  pad1.Draw();
244  pad2.Draw();
245  pad3.Draw();
246 
247  TH2F barrelmap("EB","EB",360,1,360, 171, -85,86);
248  TH2F endcmap_p("EE+","EE+",100,1,101,100,1,101);
249  TH2F endcmap_m("EE-","EE-",100,1,101,100,1,101);
250 
251  const int kSides = 2;
252  const int kBarlRings = EBDetId::MAX_IETA;
253  const int kBarlWedges = EBDetId::MAX_IPHI;
254  const int kEndcWedgesX = EEDetId::IX_MAX;
255  const int kEndcWedgesY = EEDetId::IY_MAX;
256 
258  for (int sign=0; sign<kSides; sign++) {
259 
260  int thesign = sign==1 ? 1:-1;
261 
262  for (int ieta=0; ieta<kBarlRings; ieta++) {
263  for (int iphi=0; iphi<kBarlWedges; iphi++) {
264  EBDetId id((ieta+1)*thesign, iphi+1);
265  barrelmap.Fill(iphi+1,ieta*thesign + thesign, object()[id.rawId()]);
266  }
267  }
268 
269  for (int ix=0; ix<kEndcWedgesX; ix++) {
270  for (int iy=0; iy<kEndcWedgesY; iy++) {
271  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
272  EEDetId id(ix+1,iy+1,thesign);
273 
274  if (thesign==1) {
275  endcmap_p.Fill(ix+1,iy+1,object()[id.rawId()]);
276  }
277  else{
278  endcmap_m.Fill(ix+1,iy+1,object()[id.rawId()]);
279 
280  }
281  }//iy
282  }//ix
283 
284 
285 
286  }
287 
288 
289  //canvas.cd(1);
290  pad1.cd();
291  endcmap_m.SetStats(0);
292  endcmap_m.Draw("colz");
293  //canvas.cd(2);
294  pad2.cd();
295  barrelmap.SetStats(0);
296  barrelmap.Draw("colz");
297  //canvas.cd(3);
298  pad3.cd();
299  endcmap_p.SetStats(0);
300  endcmap_p.Draw("colz");
301 
302  canvas.SaveAs(filename.c_str());
303  return filename;
304  }
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
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, EnergyCorrector::c, cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), end, spr::find(), plotBeamSpotDB::first, cond::DbSession::getTypedObject(), timingPdfMaker::histo, i, recoMuon::in, geometryCSVtoXML::line, python.multivaluedict::map(), bookConverter::max, min(), RPCGeomServ::name(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), AlCaHLTBitMon_ParallelJobs::p, EnergyCorrector::pt, HLT_25ns14e33_v3_cff::region, relativeConstraints::ring, edm::second(), cond::DbConnectionConfiguration::setAuthenticationPath(), mathSSE::sqrt(), cond::DbTransaction::start(), relativeConstraints::station, AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, cond::DbSession::transaction(), relativeConstraints::value, w, xPos, and yPos.

Referenced by cuy.FindIssue::__init__().

241  {
242 
243  std::map<std::string,std::pair<float,float> > geoMap;
244  std::ifstream mapFile("/afs/cern.ch/user/s/stupputi/public/barDetPositions.txt",std::ifstream::in);
245  std::string chamb;
246  float xPos,yPos;
247  while(mapFile >> chamb >> xPos >> yPos)
248  geoMap[chamb]=make_pair(xPos,yPos);
249  std::cout<<"size "<<geoMap.size()<<std::endl;
250  gStyle->SetPalette(1);
251 
252  //BEGIN OF NEW DB-SESSION PART
253  //hardcoded values
254  std::string authPath="/afs/cern.ch/cms/DB/conddb";
255  std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
256 
257  //frontend sends token instead of filename
258  std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
259 
260  //make connection object
261  DbConnection dbConn;
262 
263  //set in configuration object authentication path
264  dbConn.configuration().setAuthenticationPath(authPath);
265  dbConn.configure();
266 
267  //create session object from connection
268  DbSession dbSes=dbConn.createSession();
269 
270  //try to make connection
271  dbSes.open(conString,true);
272 
273  //start a transaction (true=readOnly)
274  dbSes.transaction().start(true);
275 
276  //get the actual object
277  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
278  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
279 
280  //we have the object...
281  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
282  //END OF NEW DB-SESSION PART
283 
284  std::vector<RPCObTemp::T_Item> const & temp = object().ObTemp_rpc;
285 
286  std::map<int,std::map<int,std::vector<double> > > valMap;
287  std::map<int,std::string> detMap;
288  for(unsigned int i = 0;i < temp.size(); ++i){
289  for(unsigned int p = 0; p < pvssCont.size(); ++p){
290  if(temp[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=4 || pvssCont[p].region!=0)continue;
291  int whl(pvssCont[p].ring);
292  if(valMap.find(whl)==valMap.end()){
293  std::map<int,std::vector<double> > dumMap;
294  std::vector<double> dumVec;dumVec.push_back(temp[i].value);
295  dumMap[temp[i].dpid]=dumVec;
296  valMap[whl]=dumMap;
297  }
298  else {
299  if(valMap[whl].find(temp[i].dpid)==valMap[whl].end()){
300  std::vector<double> dumVec;dumVec.push_back(temp[i].value);
301  (valMap[whl])[temp[i].dpid]=dumVec;
302  }
303  else
304  (valMap[whl])[temp[i].dpid].push_back(temp[i].value);
305  }
306  if(detMap.find(temp[i].dpid)==detMap.end()){
307  RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1);
308  RPCGeomServ chGS(rpcId);
309  std::string chName(chGS.name());
310  std::string::size_type pos(chName.find("_S"));
311  if(pos!=std::string::npos)
312  chName=chName.substr(0,pos+5);
313  else
314  chName=chName.substr(0,chName.find("_CH")+5);
315  detMap[temp[i].dpid]=chName;
316  }
317  }
318  }
319 
320  float histoScale(710),axisScale(750);
321  int flip(-1);
322  float incr(0.045*histoScale);
323  float midSc(0.267949192431123),diagSc(sqrt((1.+(midSc*midSc))/2.));
324  float dists[]={0.558f*histoScale,0.607f*histoScale,0.697f*histoScale,/*0.6971f*xSc,0.7464f*xSc,*/0.823f*histoScale,0.967f*histoScale};
325 
326  TCanvas *c=new TCanvas("Temp","Temp",1200,700);
327  c->Divide(3,2);
328 
329  for(int w=-2;w<3;w++){
330  // if(w!=1)continue;
331  int canv(w+3);
332  c->cd(canv);
333 
334  char wNumb[8];
335  sprintf(wNumb,"Wheel %i",w);
336 
337  TH2F *histo= new TH2F("","",(2*axisScale)/incr,(-1)*axisScale,axisScale,(2*axisScale)/incr,(-1)*axisScale,axisScale);
338  histo->GetXaxis()->SetTickLength(0);histo->GetXaxis()->SetLabelColor(0);histo->GetXaxis()->SetTitle("Temperature (#circC)");
339  histo->GetYaxis()->SetTickLength(0);histo->GetYaxis()->SetLabelColor(0);
340 
341  double min(1000),max(-1);
342  for(std::map<int,std::vector<double> >::const_iterator mIt=valMap[w].begin();
343  mIt!=valMap[w].end();mIt++){
344 
345  std::pair<double, std::vector<double> > meanAndVals =
346  make_pair(accumulate(mIt->second.begin(),mIt->second.end(),0.)/(double)mIt->second.size(),mIt->second);
347  std::string chName(detMap[mIt->first]);
348  histo->Fill(geoMap[chName].first,geoMap[chName].second,meanAndVals.first);
349  if(meanAndVals.first<min)min=meanAndVals.first;
350  if(meanAndVals.first>max)max=meanAndVals.first;
351  std::cout<<chName<<" "<<geoMap[chName].first<<" "<<geoMap[chName].second<<" "<<meanAndVals.first<<std::endl;
352  }
353 
354  histo->GetZaxis()->SetRangeUser(min,max);
355  histo->Draw("colz");
356 
357  TPaveStats *ptstats = new TPaveStats(0.98,0.98,0.99,0.99,"br");
358  histo->GetListOfFunctions()->Add(ptstats);
359  histo->Draw("same");
360 
361  TPaveText *pt=new TPaveText(-235,763,248,860,"br");
362  pt->SetFillColor(19);
363  pt->AddText(wNumb);
364  pt->Draw("same");
365 
366  TLine *line = new TLine();
367  for(int i=0;i<5;i++){
368  float scDist(midSc*dists[i]),onDiag(diagSc*dists[i]);
369  float furDist(dists[i]+incr),scFurDist(midSc*furDist),furOnDiag(diagSc*furDist);
370 
371  line=new TLine(dists[i],flip*scDist,dists[i],scDist);line->Draw();//S01
372  line=new TLine(dists[i],flip*scDist,furDist,flip*scDist);line->Draw();
373  line=new TLine(dists[i],scDist,furDist,scDist);line->Draw();
374  line=new TLine(furDist,flip*scDist,furDist,scDist);line->Draw();
375  line=new TLine(flip*dists[i],flip*scDist,flip*dists[i],scDist);line->Draw();//S07
376  line=new TLine(flip*dists[i],flip*scDist,flip*furDist,flip*scDist);line->Draw();
377  line=new TLine(flip*dists[i],scDist,flip*furDist,scDist);line->Draw();
378  line=new TLine(flip*furDist,flip*scDist,flip*furDist,scDist);line->Draw();
379  line=new TLine(onDiag,onDiag,dists[i],scDist);line->Draw();//S02
380  line=new TLine(onDiag,onDiag,furOnDiag,furOnDiag);line->Draw();
381  line=new TLine(dists[i],scDist,furDist,scFurDist);line->Draw();
382  line=new TLine(furOnDiag,furOnDiag,furDist,scFurDist);line->Draw();
383  line=new TLine(flip*onDiag,flip*onDiag,flip*dists[i],flip*scDist);line->Draw();//S08
384  line=new TLine(flip*onDiag,flip*onDiag,flip*furOnDiag,flip*furOnDiag);line->Draw();
385  line=new TLine(flip*dists[i],flip*scDist,flip*furDist,flip*scFurDist);line->Draw();
386  line=new TLine(flip*furOnDiag,flip*furOnDiag,flip*furDist,flip*scFurDist);line->Draw();
387  line=new TLine(onDiag,onDiag,scDist,dists[i]);line->Draw();//S03
388  line=new TLine(onDiag,onDiag,furOnDiag,furOnDiag);line->Draw();
389  line=new TLine(scDist,dists[i],scFurDist,furDist);line->Draw();
390  line=new TLine(furOnDiag,furOnDiag,scFurDist,furDist);line->Draw();
391  line=new TLine(flip*onDiag,flip*onDiag,flip*scDist,flip*dists[i]);line->Draw();//S09
392  line=new TLine(flip*onDiag,flip*onDiag,flip*furOnDiag,flip*furOnDiag);line->Draw();
393  line=new TLine(flip*scDist,flip*dists[i],flip*scFurDist,flip*furDist);line->Draw();
394  line=new TLine(flip*furOnDiag,flip*furOnDiag,flip*scFurDist,flip*furDist);line->Draw();
395  if(i==4){
396 
397  line=new TLine(flip*scDist,dists[i],-0.005,dists[i]);line->Draw();//S04-
398  line=new TLine(flip*scDist,dists[i],flip*scDist,furDist);line->Draw();
399  line=new TLine(-0.005,dists[i],-0.005,furDist);line->Draw();
400  line=new TLine(flip*scDist,furDist,-0.005,furDist);line->Draw();
401  line=new TLine(0.005,dists[i],scDist,dists[i]);line->Draw();//S04+
402  line=new TLine(scDist,dists[i],scDist,furDist);line->Draw();
403  line=new TLine(0.005,dists[i],0.005,furDist);line->Draw();
404  line=new TLine(scDist,furDist,0.005,furDist);line->Draw();
405  line=new TLine(flip*scDist,flip*dists[i],-0.005,flip*dists[i]);line->Draw();//S10+
406  line=new TLine(flip*scDist,flip*dists[i],flip*scDist,flip*furDist);line->Draw();
407  line=new TLine(-0.005,flip*dists[i],-0.005,flip*furDist);line->Draw();
408  line=new TLine(flip*scDist,flip*furDist,-0.005,flip*furDist);line->Draw();
409  line=new TLine(0.005,flip*dists[i],scDist,flip*dists[i]);line->Draw();//S10-
410  line=new TLine(0.005,flip*dists[i],0.005,flip*furDist);line->Draw();
411  line=new TLine(scDist,flip*dists[i],scDist,flip*furDist);line->Draw();
412  line=new TLine(scDist,flip*furDist,0.005,flip*furDist);line->Draw();
413  }
414  else{
415  line=new TLine(flip*scDist,dists[i],scDist,dists[i]);line->Draw();//S04
416  line=new TLine(flip*scDist,dists[i],flip*scDist,furDist);line->Draw();
417  line=new TLine(scDist,dists[i],scDist,furDist);line->Draw();
418  line=new TLine(flip*scDist,furDist,scDist,furDist);line->Draw();
419  line=new TLine(flip*scDist,flip*dists[i],scDist,flip*dists[i]);line->Draw();//S10
420  line=new TLine(flip*scDist,flip*dists[i],flip*scDist,flip*furDist);line->Draw();
421  line=new TLine(scDist,flip*dists[i],scDist,flip*furDist);line->Draw();
422  line=new TLine(flip*scDist,flip*furDist,scDist,flip*furDist);line->Draw();
423  }
424  line=new TLine(flip*onDiag,onDiag,flip*scDist,dists[i]);line->Draw();//S05
425  line=new TLine(flip*onDiag,onDiag,flip*furOnDiag,furOnDiag);line->Draw();
426  line=new TLine(flip*scDist,dists[i],flip*scFurDist,furDist);line->Draw();
427  line=new TLine(flip*furOnDiag,furOnDiag,flip*scFurDist,furDist);line->Draw();
428  line=new TLine(onDiag,flip*onDiag,scDist,flip*dists[i]);line->Draw();//S11
429  line=new TLine(onDiag,flip*onDiag,furOnDiag,flip*furOnDiag);line->Draw();
430  line=new TLine(scDist,flip*dists[i],scFurDist,flip*furDist);line->Draw();
431  line=new TLine(furOnDiag,flip*furOnDiag,scFurDist,flip*furDist);line->Draw();
432  line=new TLine(flip*onDiag,onDiag,flip*dists[i],scDist);line->Draw();//S06
433  line=new TLine(flip*onDiag,onDiag,flip*furOnDiag,furOnDiag);line->Draw();
434  line=new TLine(flip*dists[i],scDist,flip*furDist,scFurDist);line->Draw();
435  line=new TLine(flip*furOnDiag,furOnDiag,flip*furDist,scFurDist);line->Draw();
436  line=new TLine(onDiag,flip*onDiag,dists[i],flip*scDist);line->Draw();//S12
437  line=new TLine(onDiag,flip*onDiag,furOnDiag,flip*furOnDiag);line->Draw();
438  line=new TLine(dists[i],flip*scDist,furDist,flip*scFurDist);line->Draw();
439  line=new TLine(furOnDiag,flip*furOnDiag,furDist,flip*scFurDist);line->Draw();
440  }
441  }
442 
443  c->SaveAs(filename.c_str());
444  return filename.c_str();
445 
446  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
const double w
Definition: UKUtility.cc:23
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
uint16_t size_type
U second(std::pair< T, U > const &p)
double xPos
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
double yPos
#define end
Definition: vmac.h:37
T min(T a, T b)
Definition: MathUtil.h:58
#define begin
Definition: vmac.h:30
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
template<>
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.

Referenced by cuy.FindIssue::__init__().

272  {
273 
274 // gStyle->SetPalette(1);
275 
276 // TH1D *iDistr=new TH1D("iDistr","IOV-averaged Current Distribution;Average Current (#muA);Entries/0.2 #muA",500,0.,100.);
277 // TH1D *rmsDistr=new TH1D("rmsDistr","RMS over IOV-Current Distribution;Current RMS (#muA);Entries/0.2 #muA",5000,0.,1000.);
278 
279 // //BEGIN OF NEW DB-SESSION PART
280 // //hardcoded values
281 // std::string authPath="/afs/cern.ch/cms/DB/conddb";
282 // std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
283 
284 // //frontend sends token instead of filename
285 // std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
286 
287 // //make connection object
288 // DbConnection dbConn;
289 
290 // //set in configuration object authentication path
291 // dbConn.configuration().setAuthenticationPath(authPath);
292 // dbConn.configure();
293 
294 // //create session object from connection
295 // DbSession dbSes=dbConn.createSession();
296 
297 // //try to make connection
298 // dbSes.open(conString,true);
299 
300 // //start a transaction (true=readOnly)
301 // dbSes.transaction().start(true);
302 
303 // //get the actual object
304 // boost::shared_ptr<RPCObPVSSmap> pvssPtr;
305 // pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
306 
307 // //we have the object...
308 // std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
309 // //END OF NEW DB-SESSION PART
310 
311 // std::vector<RPCObGas::Item> const & gas = object().ObGas_rpc;
312 
313 // RPCRunIOV *iovHelp=new RPCRunIOV();
314 
315 // std::map<int,std::pair<std::vector<double>,std::vector<double> > > dpidMap;
316 // for(unsigned int i = 0;i < gas.size(); ++i){
317 // for(unsigned int p = 0; p < pvssCont.size(); ++p){
318 // if(gas[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue;
319 // if(dpidMap.find(gas[i].dpid)==dpidMap.end()){
320 // std::vector<double> dumVec1;dumVec1.push_back(gas[i].value);
321 // std::vector<double> dumVec2;dumVec2.push_back((double)iovHelp->toUNIX(gas[i].day,gas[i].time));
322 // dpidMap[gas[i].dpid]=make_pair(dumVec1,dumVec2);
323 // }
324 // else {
325 // dpidMap[gas[i].dpid].first.push_back(gas[i].value);
326 // dpidMap[gas[i].dpid].second.push_back((double)iovHelp->toUNIX(gas[i].day,gas[i].time));
327 // }
328 // }
329 // }
330 
331 // delete iovHelp;
332 
333 // double maxMean(-1.),maxRms(-1.);
334 // double minMean(9999.),minRms(9999.);
335 // std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator minIt,maxIt;
336 // std::vector<float> means,rmss;
337 // for(std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator mIt=dpidMap.begin();
338 // mIt!=dpidMap.end();mIt++){
339 // std::pair<double, std::vector<double> > meanAndVals =
340 // make_pair(accumulate(mIt->second.first.begin(),mIt->second.first.end(),0.)/(double)mIt->second.first.size(),mIt->second.first);
341 
342 // iDistr->Fill(meanAndVals.first);
343 // if(meanAndVals.first>maxMean)maxMean=meanAndVals.first;
344 // if(meanAndVals.first<minMean)minMean=meanAndVals.first;
345 // double rms(0.);
346 // for(std::vector<double>::iterator rmsIt=meanAndVals.second.begin();
347 // rmsIt!=meanAndVals.second.end();++rmsIt){
348 // rms+=pow((*rmsIt-meanAndVals.first)/(double)meanAndVals.second.size(),2);
349 // }
350 // rmsDistr->Fill(sqrt(rms));
351 // if(sqrt(rms)>maxRms){
352 // maxRms=sqrt(rms);
353 // maxIt=mIt;
354 // }
355 // if(sqrt(rms)<minRms){
356 // minRms=sqrt(rms);
357 // if(mIt->second.first.size()>10)
358 // minIt=mIt;
359 // }
360 // means.push_back(meanAndVals.first);
361 // rmss.push_back(sqrt(rms));
362 // }
363 
364 // if(maxMean<100.)
365 // iDistr->GetXaxis()->SetRangeUser(minMean-0.00001,maxMean+1.);
366 // if(maxRms<1000.)
367 // rmsDistr->GetXaxis()->SetRangeUser(minRms-0.00001,maxRms+1.);
368 
369 // TCanvas c("Gas","Gas",1200,700);
370 // c.Divide(2,2);
371 
372 // TVirtualPad *p1=c.cd(1);
373 // p1->SetLogy(1);
374 // iDistr->SetFillColor(4);
375 // iDistr->SetLineColor(4);
376 // iDistr->Draw();
377 // c.cd(1);
378 
379 // TVirtualPad *p2=c.cd(2);
380 // p2->SetLogy(1);
381 // rmsDistr->SetFillColor(3);
382 // rmsDistr->SetLineColor(3);
383 // rmsDistr->Draw();
384 
385 // c.cd(3);
386 // TGraph *iRmsDistr=new TGraph(means.size(),static_cast<const float *>(&rmss[0]),static_cast<const float *>(&means[0]));
387 // iRmsDistr->SetMarkerStyle(7);
388 // iRmsDistr->SetMarkerColor(2);
389 // TF1 *func=new TF1("linearF",linearF,minRms,maxRms,1);
390 // iRmsDistr->Fit("linearF","r");
391 // iRmsDistr->GetXaxis()->SetTitle("Current RMS (#muA)");
392 // iRmsDistr->GetYaxis()->SetTitle("Current Means (#muA)");
393 // iRmsDistr->Draw("AP");
394 
395 
396 // TVirtualPad *p4=c.cd(4);
397 // p4->SetLogy(1);
398 // TMultiGraph *mProf=new TMultiGraph();
399 // TLegend *leg=new TLegend(0.65,0.91,0.99,0.99);
400 // TGraph *minProf=new TGraph(minIt->second.first.size(),&minIt->second.second[0],&minIt->second.first[0]);
401 // TGraph *maxProf=new TGraph(maxIt->second.first.size(),&maxIt->second.second[0],&maxIt->second.first[0]);
402 // minProf->SetMarkerStyle(20);
403 // maxProf->SetMarkerStyle(20);
404 // minProf->SetMarkerColor(2);
405 // maxProf->SetMarkerColor(4);
406 // mProf->Add(minProf);
407 // leg->AddEntry(minProf,"I vs IOV for Min RMS case","lpf");
408 // mProf->Add(maxProf);
409 // leg->AddEntry(maxProf,"I vs IOV for Max RMS case","lpf");
410 // leg->Draw();
411 // mProf->Draw("AP");
412 // mProf->GetXaxis()->SetTitle("IOV");
413 // mProf->GetYaxis()->SetTitle("I (#muA)");
414 
415 // c.SaveAs(filename.c_str());
416 
417 // return filename.c_str();
418 
419  return "";
420 
421  }
template<>
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, EnergyCorrector::c, cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), cond::rpcobgas::day, cond::DbSession::getTypedObject(), i, create_public_lumi_plots::leg, cond::linearF(), python.multivaluedict::map(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), AlCaHLTBitMon_ParallelJobs::p, p1, p2, p4, funct::pow(), HLT_25ns14e33_v3_cff::region, plotscripts::rms(), cond::DbConnectionConfiguration::setAuthenticationPath(), mathSSE::sqrt(), cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, cond::rpcobgas::time, cond::toUNIX(), cond::DbSession::transaction(), and relativeConstraints::value.

Referenced by cuy.FindIssue::__init__().

278  {
279 
280  gStyle->SetPalette(1);
281 
282  TH1D *iDistr=new TH1D("iDistr","IOV-averaged Current Distribution;Average Current (#muA);Entries/0.2 #muA",500,0.,100.);
283  TH1D *rmsDistr=new TH1D("rmsDistr","RMS over IOV-Current Distribution;Current RMS (#muA);Entries/0.2 #muA",5000,0.,1000.);
284 
285  //BEGIN OF NEW DB-SESSION PART
286  //hardcoded values
287  std::string authPath="/afs/cern.ch/cms/DB/conddb";
288  std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
289 
290  //frontend sends token instead of filename
291  std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
292 
293  //make connection object
294  DbConnection dbConn;
295 
296  //set in configuration object authentication path
297  dbConn.configuration().setAuthenticationPath(authPath);
298  dbConn.configure();
299 
300  //create session object from connection
301  DbSession dbSes=dbConn.createSession();
302 
303  //try to make connection
304  dbSes.open(conString,true);
305 
306  //start a transaction (true=readOnly)
307  dbSes.transaction().start(true);
308 
309  //get the actual object
310  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
311  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
312 
313  //we have the object...
314  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
315  //END OF NEW DB-SESSION PART
316 
317  std::vector<RPCObImon::I_Item> const & imon = object().ObImon_rpc;
318 
319  // RPCRunIOV *iovHelp=new RPCRunIOV();
320 
321  std::map<int,std::pair<std::vector<double>,std::vector<double> > > dpidMap;
322  for(unsigned int i = 0;i < imon.size(); ++i){
323  for(unsigned int p = 0; p < pvssCont.size(); ++p){
324  if(imon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue;
325  if(dpidMap.find(imon[i].dpid)==dpidMap.end()){
326  std::vector<double> dumVec1;dumVec1.push_back(imon[i].value);
327  std::vector<double> dumVec2;dumVec2.push_back((double)/*iovHelp->*/toUNIX(imon[i].day,imon[i].time));
328  dpidMap[imon[i].dpid]=make_pair(dumVec1,dumVec2);
329  }
330  else {
331  dpidMap[imon[i].dpid].first.push_back(imon[i].value);
332  dpidMap[imon[i].dpid].second.push_back((double)/*iovHelp->*/toUNIX(imon[i].day,imon[i].time));
333  }
334  }
335  }
336 
337  // delete iovHelp;
338 
339  double maxMean(-1.),maxRms(-1.);
340  double minMean(9999.),minRms(9999.);
341  std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator minIt,maxIt;
342  std::vector<float> means,rmss;
343  for(std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator mIt=dpidMap.begin();
344  mIt!=dpidMap.end();mIt++){
345  std::pair<double, std::vector<double> > meanAndVals =
346  make_pair(accumulate(mIt->second.first.begin(),mIt->second.first.end(),0.)/(double)mIt->second.first.size(),mIt->second.first);
347 
348  iDistr->Fill(meanAndVals.first);
349  if(meanAndVals.first>maxMean)maxMean=meanAndVals.first;
350  if(meanAndVals.first<minMean)minMean=meanAndVals.first;
351  double rms(0.);
352  for(std::vector<double>::iterator rmsIt=meanAndVals.second.begin();
353  rmsIt!=meanAndVals.second.end();++rmsIt){
354  rms+=pow((*rmsIt-meanAndVals.first)/(double)meanAndVals.second.size(),2);
355  }
356  rmsDistr->Fill(sqrt(rms));
357  if(sqrt(rms)>maxRms){
358  maxRms=sqrt(rms);
359  maxIt=mIt;
360  }
361  if(sqrt(rms)<minRms){
362  minRms=sqrt(rms);
363  if(mIt->second.first.size()>10)
364  minIt=mIt;
365  }
366  means.push_back(meanAndVals.first);
367  rmss.push_back(sqrt(rms));
368  }
369 
370  if(maxMean<100.)
371  iDistr->GetXaxis()->SetRangeUser(minMean-0.00001,maxMean+1.);
372  if(maxRms<1000.)
373  rmsDistr->GetXaxis()->SetRangeUser(minRms-0.00001,maxRms+1.);
374 
375  TCanvas c("Imon","Imon",1200,700);
376  c.Divide(2,2);
377 
378  TVirtualPad *p1=c.cd(1);
379  p1->SetLogy(1);
380  iDistr->SetFillColor(4);
381  iDistr->SetLineColor(4);
382  iDistr->Draw();
383  c.cd(1);
384 
385  TVirtualPad *p2=c.cd(2);
386  p2->SetLogy(1);
387  rmsDistr->SetFillColor(3);
388  rmsDistr->SetLineColor(3);
389  rmsDistr->Draw();
390 
391  c.cd(3);
392  TGraph *iRmsDistr=new TGraph(means.size(),static_cast<const float *>(&rmss[0]),static_cast<const float *>(&means[0]));
393  iRmsDistr->SetMarkerStyle(7);
394  iRmsDistr->SetMarkerColor(2);
395  TF1 *func=new TF1("linearF",linearF,minRms,maxRms,1);
396  iRmsDistr->Fit(func,"r");
397  iRmsDistr->GetXaxis()->SetTitle("Current RMS (#muA)");
398  iRmsDistr->GetYaxis()->SetTitle("Current Means (#muA)");
399  iRmsDistr->Draw("AP");
400 
401 
402  TVirtualPad *p4=c.cd(4);
403  p4->SetLogy(1);
404  TMultiGraph *mProf=new TMultiGraph();
405  TLegend *leg=new TLegend(0.65,0.91,0.99,0.99);
406  TGraph *minProf=new TGraph(minIt->second.first.size(),&minIt->second.second[0],&minIt->second.first[0]);
407  TGraph *maxProf=new TGraph(maxIt->second.first.size(),&maxIt->second.second[0],&maxIt->second.first[0]);
408  minProf->SetMarkerStyle(20);
409  maxProf->SetMarkerStyle(20);
410  minProf->SetMarkerColor(2);
411  maxProf->SetMarkerColor(4);
412  mProf->Add(minProf);
413  leg->AddEntry(minProf,"I vs IOV for Min RMS case","lpf");
414  mProf->Add(maxProf);
415  leg->AddEntry(maxProf,"I vs IOV for Max RMS case","lpf");
416  leg->Draw();
417  mProf->Draw("AP");
418  mProf->GetXaxis()->SetTitle("IOV");
419  mProf->GetYaxis()->SetTitle("I (#muA)");
420 
421  c.SaveAs(filename.c_str());
422 
423  return filename.c_str();
424 
425  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
Double_t linearF(Double_t *x, Double_t *par)
T sqrt(T t)
Definition: SSEVec.h:48
double p4[4]
Definition: TauolaWrapper.h:92
Class const & object() const
double p2[4]
Definition: TauolaWrapper.h:90
unsigned long long toUNIX(int date, int time)
double p1[4]
Definition: TauolaWrapper.h:89
tuple filename
Definition: lut2db_cfg.py:20
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
template<>
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, EnergyCorrector::c, cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), i, create_public_lumi_plots::leg, python.multivaluedict::map(), RPCObPVSSmap::ObIDMap_rpc, dbtoconf::object, cond::DbSession::open(), AlCaHLTBitMon_ParallelJobs::p, funct::pow(), HLT_25ns14e33_v3_cff::region, plotscripts::rms(), cond::DbConnectionConfiguration::setAuthenticationPath(), mathSSE::sqrt(), cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, cond::toUNIX(), cond::DbSession::transaction(), and relativeConstraints::value.

Referenced by cuy.FindIssue::__init__().

296  {
297 
298  //std::vector<std::string> strs;
299  //std::string str1 = "123@321@edr";
300  //boost::split(strs, str1, boost::is_any_of("@"));
301  //std::cout << strs[0] << strs[1] << strs[2];
302 
303  gStyle->SetPalette(1);
304 
305  TH1D *vDistr=new TH1D("vDistr","IOV-averaged HV Distribution;Average HV (V);Entries/0.2 #muA",100,5000.,10000.);
306  TH1D *rmsDistr=new TH1D("rmsDistr","RMS over IOV-HV Distribution;HV RMS (V);Entries/0.2 #muA",1000,0.,1000.);//rmsDistr->SetCanExtend(TH1::kAllAxes);
307 
308  //BEGIN OF NEW DB-SESSION PART
309  //hardcoded values
310  std::string authPath="/afs/cern.ch/cms/DB/conddb";
311  std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
312 
313  //frontend sends token instead of filename
314  std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
315 
316  //make connection object
317  DbConnection dbConn;
318 
319  //set in configuration object authentication path
320  dbConn.configuration().setAuthenticationPath(authPath);
321  dbConn.configure();
322 
323  //create session object from connection
324  DbSession dbSes=dbConn.createSession();
325 
326  //try to make connection
327  dbSes.open(conString,true);
328 
329  //start a transaction (true=readOnly)
330  dbSes.transaction().start(true);
331 
332  //get the actual object
333  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
334  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
335 
336  //we have the object...
337  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
338  //END OF NEW DB-SESSION PART
339 
340  std::vector<RPCObVmon::V_Item> const & vmon = object().ObVmon_rpc;
341 
342  std::map<int,std::pair<std::vector<double>,std::vector<double> > > dpidMap;
343  for(unsigned int i = 0;i < vmon.size(); ++i){
344  for(unsigned int p = 0; p < pvssCont.size(); ++p){
345  if(vmon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue;
346  if(dpidMap.find(vmon[i].dpid)==dpidMap.end()){
347  std::vector<double> dumVec1;dumVec1.push_back(vmon[i].value);
348  std::vector<double> dumVec2;dumVec2.push_back((double)toUNIX(vmon[i].day,vmon[i].time));
349  dpidMap[vmon[i].dpid]=make_pair(dumVec1,dumVec2);
350  }
351  else {
352  dpidMap[vmon[i].dpid].first.push_back(vmon[i].value);
353  dpidMap[vmon[i].dpid].second.push_back((double)toUNIX(vmon[i].day,vmon[i].time));
354  }
355  }
356  }
357 
358  double maxMean(-1.),maxRms(-1.);
359  double minMean(9999.),minRms(9999.);
360  std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator minIt,maxIt;
361  std::vector<float> means,rmss;
362  for(std::map<int,std::pair<std::vector<double>,std::vector<double> > >::const_iterator mIt=dpidMap.begin();
363  mIt!=dpidMap.end();mIt++){
364  std::pair<double, std::vector<double> > meanAndVals =
365  make_pair(accumulate(mIt->second.first.begin(),mIt->second.first.end(),0.)/(double)mIt->second.first.size(),mIt->second.first);
366 
367  vDistr->Fill(meanAndVals.first);
368  if(meanAndVals.first>maxMean)maxMean=meanAndVals.first;
369  if(meanAndVals.first<minMean)minMean=meanAndVals.first;
370  double rms(0.);
371  for(std::vector<double>::iterator rmsIt=meanAndVals.second.begin();
372  rmsIt!=meanAndVals.second.end();++rmsIt){
373  rms+=pow((*rmsIt-meanAndVals.first)/(double)meanAndVals.second.size(),2);
374  }
375  rmsDistr->Fill(sqrt(rms));std::cout<<sqrt(rms)<<std::endl;
376  if(sqrt(rms)>maxRms){
377  maxRms=sqrt(rms);
378  maxIt=mIt;
379  }
380  if(sqrt(rms)<minRms){
381  minRms=sqrt(rms);
382  if(mIt->second.first.size()>5)
383  minIt=mIt;
384  }
385  means.push_back(meanAndVals.first);
386  rmss.push_back(sqrt(rms));
387  }
388 
389  if(maxMean<100.)
390  vDistr->GetXaxis()->SetRangeUser(minMean-0.00001,maxMean+1.);
391  if(maxRms<1000.)
392  rmsDistr->GetXaxis()->SetRangeUser(minRms-0.00001,maxRms+1.);
393 
394  TCanvas c("Vmon","Vmon",1200,700);
395  c.Divide(2,2);
396 
397  //TVirtualPad *p1=c.cd(1);
398  // p1->SetLogy(1);
399  c.cd(1);
400  vDistr->SetFillColor(4);
401  vDistr->SetLineColor(4);
402  vDistr->Draw();
403 
404  //TVirtualPad *p2=c.cd(2);
405  // p2->SetLogy(1);
406  c.cd(2);
407  rmsDistr->SetFillColor(3);
408  rmsDistr->SetLineColor(3);
409  rmsDistr->Draw();
410 
411  c.cd(3);
412  TGraph *vRmsDistr=new TGraph(means.size(),static_cast<const float *>(&rmss[0]),static_cast<const float *>(&means[0]));
413  vRmsDistr->SetMarkerStyle(7);
414  vRmsDistr->SetMarkerColor(2);
415  //TF1 *func=new TF1("linearF",linearF,minRms,maxRms,1);
416  // vRmsDistr->Fit("linearF","r");
417  vRmsDistr->GetXaxis()->SetTitle("HV RMS (V)");
418  vRmsDistr->GetYaxis()->SetTitle("HV Means (V)");
419  vRmsDistr->Draw("AP");
420 
421  c.cd(4);
422  TMultiGraph *mProf=new TMultiGraph();
423  TLegend *leg=new TLegend(0.65,0.91,0.99,0.99);
424  TGraph *minProf=new TGraph(minIt->second.first.size(),&minIt->second.second[0],&minIt->second.first[0]);
425  TGraph *maxProf=new TGraph(maxIt->second.first.size(),&maxIt->second.second[0],&maxIt->second.first[0]);
426  minProf->SetMarkerStyle(20);
427  maxProf->SetMarkerStyle(20);
428  minProf->SetMarkerColor(2);
429  maxProf->SetMarkerColor(4);
430  mProf->Add(minProf);
431  leg->AddEntry(minProf,"V vs IOV for Min RMS case","lpf");
432  mProf->Add(maxProf);
433  leg->AddEntry(maxProf,"V vs IOV for Max RMS case","lpf");
434  leg->Draw();
435  mProf->Draw("AP");
436  mProf->GetXaxis()->SetTitle("IOV");
437  mProf->GetYaxis()->SetTitle("I (V)");
438 
439  c.SaveAs(filename.c_str());
440 
441  return filename.c_str();
442 
443  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
unsigned long long toUNIX(int date, int time)
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
template<>
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 346 of file EcalChannelStatusPyWrapper.cc.

References Reference_intrackfit_cff::barrel, svgfig::canvas(), lut2db_cfg::filename, cmsRelvalreport::green(), i, EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, prof2calltree::l, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, cmsRelvalreport::red(), jetcorrextractor::sign(), EEDetId::validDetId(), and x().

Referenced by cuy.FindIssue::__init__().

349  {
350  // use David's palette
351  gStyle->SetPalette(1);
352 
353  const Int_t NRGBs = 5;
354  const Int_t NCont = 255;
355 
356  Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
357  Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
358  Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
359  Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
360  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
361  gStyle->SetNumberContours(NCont);
362 
363  TCanvas canvas("CC map","CC map",800,800);
364  TPad* padb = new TPad("padb","padb", 0., 0.55, 1., 1.);
365  padb->Draw();
366  TPad* padem = new TPad("padem","padem", 0., 0., 0.45, 0.45);
367  padem->Draw();
368  TPad* padep = new TPad("padep","padep", 0.55, 0., 1., 0.45);
369  padep->Draw();
370 
371  const int kSides = 2;
372  const int kBarlRings = EBDetId::MAX_IETA;
373  const int kBarlWedges = EBDetId::MAX_IPHI;
374  const int kEndcWedgesX = EEDetId::IX_MAX;
375  const int kEndcWedgesY = EEDetId::IY_MAX;
376 
377  TH2F* barrel = new TH2F("EB","EB Channel Status",360,0,360, 171, -85,86);
378  TH2F* endc_p = new TH2F("EE+","EE+ Channel Status",100,1,101,100,1,101);
379  TH2F* endc_m = new TH2F("EE-","EE- Channel Status",100,1,101,100,1,101);
380 
381  for (int sign=0; sign < kSides; sign++) {
382  int thesign = sign==1 ? 1:-1;
383 
384  for (int ieta=0; ieta<kBarlRings; ieta++) {
385  for (int iphi=0; iphi<kBarlWedges; iphi++) {
386  EBDetId id((ieta+1)*thesign, iphi+1);
387  barrel->Fill(iphi, ieta*thesign + thesign, object()[id.rawId()].getStatusCode());
388  // if(iphi < 20 && object()[id.rawId()].getStatusCode() > 10)
389  // std::cout << " phi " << iphi << " eta " << ieta << " status " << object()[id.rawId()].getStatusCode() << std::endl;
390  } // iphi
391  } // ieta
392 
393  for (int ix=0; ix<kEndcWedgesX; ix++) {
394  for (int iy=0; iy<kEndcWedgesY; iy++) {
395  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
396  EEDetId id(ix+1,iy+1,thesign);
397  if (thesign==1) {
398  endc_p->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode());
399  }
400  else{
401  endc_m->Fill(ix+1,iy+1,object()[id.rawId()].getStatusCode());
402  }
403  } // iy
404  } // ix
405  } // side
406 
407  TLine* l = new TLine(0., 0., 0., 0.);
408  l->SetLineWidth(1);
409  padb->cd();
410  barrel->SetStats(0);
411  barrel->SetMaximum(14);
412  barrel->SetMinimum(0);
413  barrel->Draw("colz");
414  for(int i = 0; i <17; i++) {
415  Double_t x = 20.+ (i *20);
416  l = new TLine(x,-85.,x,86.);
417  l->Draw();
418  }
419  l = new TLine(0.,0.,360.,0.);
420  l->Draw();
421  int ixSectorsEE[202] = {
422  62, 62, 61, 61, 60, 60, 59, 59, 58, 58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42,
423  41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 44, 44, 46, 46, 56, 56, 58, 58, 59, 59,
424  60, 60, 61, 61, 62, 62, 0,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81,
425  81, 76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9,
426  9, 6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26,
427  26, 36, 36, 41, 41, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88, 93, 93, 96,
428  96, 98, 98,101,101, 0, 62, 66, 66, 71, 71, 81, 81, 91, 91, 93, 0, 62, 66, 66,
429  91, 91, 98, 0, 58, 61, 61, 66, 66, 71, 71, 76, 76, 81, 81, 0, 51, 51, 0, 44,
430  41, 41, 36, 36, 31, 31, 26, 26, 21, 21, 0, 40, 36, 36, 11, 11, 4, 0, 40, 36,
431  36, 31, 31, 21, 21, 11, 11, 9, 0, 46, 46, 41, 41, 36, 36, 0, 56, 56, 61, 61, 66, 66};
432 
433  int iySectorsEE[202] = {
434  51, 56, 56, 58, 58, 59, 59, 60, 60, 61, 61, 62, 62, 61, 61, 60, 60, 59, 59, 58,
435  58, 56, 56, 46, 46, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 41, 41, 42, 42, 43,
436  43, 44, 44, 46, 46, 51, 0, 51, 61, 61, 66, 66, 76, 76, 81, 81, 86, 86, 88, 88,
437  93, 93, 96, 96, 98, 98,101,101, 98, 98, 96, 96, 93, 93, 88, 88, 86, 86, 81, 81,
438  76, 76, 66, 66, 61, 61, 41, 41, 36, 36, 26, 26, 21, 21, 16, 16, 14, 14, 9, 9,
439  6, 6, 4, 4, 1, 1, 4, 4, 6, 6, 9, 9, 14, 14, 16, 16, 21, 21, 26, 26,
440  36, 36, 41, 41, 51, 0, 46, 46, 41, 41, 36, 36, 31, 31, 26, 26, 0, 51, 51, 56,
441  56, 61, 61, 0, 61, 61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 62,101, 0, 61,
442  61, 66, 66, 71, 71, 76, 76, 86, 86, 88, 0, 51, 51, 56, 56, 61, 61, 0, 46, 46,
443  41, 41, 36, 36, 31, 31, 26, 26, 0, 40, 31, 31, 16, 16, 6, 0, 40, 31, 31, 16, 16, 6};
444 
445  padem->cd();
446  endc_m->SetStats(0);
447  endc_m->SetMaximum(14);
448  endc_m->SetMinimum(0);
449  endc_m->Draw("colz");
450  for ( int i=0; i<201; i=i+1) {
451  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
452  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
453  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
454  ixSectorsEE[i+1], iySectorsEE[i+1]);
455  }
456  }
457  padep->cd();
458  endc_p->SetStats(0);
459  endc_p->SetMaximum(14);
460  endc_p->SetMinimum(0);
461  endc_p->Draw("colz");
462  for ( int i=0; i<201; i=i+1) {
463  if ( (ixSectorsEE[i]!=0 || iySectorsEE[i]!=0) &&
464  (ixSectorsEE[i+1]!=0 || iySectorsEE[i+1]!=0) ) {
465  l->DrawLine(ixSectorsEE[i], iySectorsEE[i],
466  ixSectorsEE[i+1], iySectorsEE[i+1]);
467  }
468  }
469  canvas.SaveAs(filename.c_str());
470  return filename;
471  }
int i
Definition: DBlmapReader.cc:9
static const int kBarlRings
double sign(double x)
static const int kSides
def canvas
Definition: svgfig.py:481
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
tuple filename
Definition: lut2db_cfg.py:20
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< CSCBadChambers >::summary ( void  ) const

How many bad chambers are there

Return the container of bad chambers

Is the given chamber flagged as bad?

Definition at line 13 of file CSCBadChambersPyWrapper.cc.

References CSCIndexer::chamberIndex(), CSCIndexer::detIdFromChamberIndex(), cmsHarvester::index, CSCIndexer::layerIndex(), dbtoconf::object, and contentValuesCheck::ss.

13  {
14  std::stringstream ss;
15  CSCIndexer indexer;
17  int numberOfChambers = object().numberOfChambers();
18 
20  std::vector<int> vContainerInts = object().container();
21  std::vector<CSCDetId> vCSCDetIds;
22  std::vector<int>::const_iterator iInt;
23  //get vector of CSCDetId:
24  for (iInt = vContainerInts.begin(); iInt != vContainerInts.end(); ++iInt){
25  vCSCDetIds.push_back(indexer.detIdFromChamberIndex(*iInt));
26  }
28  //bool isInBadChamber0 = object().isInBadChamber( const CSCDetId& id );
29 
30  //print data:
31  ss << "---Total of bad Chambers: " << numberOfChambers << std::endl;
32  ss << "--Bad chambers:" << std::endl;
33  iInt = vContainerInts.begin();
34  int index = 0;
35  for (std::vector<CSCDetId>::const_iterator iCSCDetId = vCSCDetIds.begin(); iCSCDetId != vCSCDetIds.end(); ++iCSCDetId, ++iInt){
36  ss << index++ << ". "<< "Id[" << *iInt
37  << "]-> Chamber index: " << indexer.chamberIndex( *iCSCDetId )
38  << "; Layer index: " << indexer.layerIndex( *iCSCDetId )
39  << ";"<< std::endl;
40  }
41 
42  return ss.str();
43  }
IndexType chamberIndex(const CSCDetId &id) const
Definition: CSCIndexer.h:66
CSCDetId detIdFromChamberIndex(IndexType ici) const
Definition: CSCIndexer.cc:62
Class const & object() const
IndexType layerIndex(const CSCDetId &id) const
Definition: CSCIndexer.h:80
template<>
std::string cond::PayLoadInspector< CentralityTable >::summary ( void  ) const

Definition at line 15 of file CentralityTablePyWrapper.cc.

References CentralityTable::CBin::b, CentralityTable::CBin::bin_edge, j, CentralityTable::m_table, CentralityTable::BinValues::mean, CentralityTable::CBin::n_coll, CentralityTable::CBin::n_part, dbtoconf::object, contentValuesCheck::ss, table, and CentralityTable::BinValues::var.

15  {
16 
17  CentralityTable const & table = object();
18 
19  std::stringstream ss;
20 
21  ss<<"Bin \t";
22  ss<<"Lower Boundary\t";
23  ss<<"Npart \t";
24  ss<<"sigma \t";
25  ss<<"Ncoll \t";
26  ss<<"sigma \t";
27  ss<<"B \t";
28  ss<<"sigma \t"<<std::endl;
29  ss<<"__________________________________________________"<<std::endl;
30 
31  for(unsigned int j=0; j<table.m_table.size(); j++){
32 
33  const CentralityTable::CBin& thisBin = table.m_table[j];
34  ss<<j<<" \t";
35  ss<<thisBin.bin_edge <<"\t";
36  ss<<thisBin.n_part.mean<<" \t";
37  ss<<thisBin.n_part.var<<" \t";
38  ss<<thisBin.n_coll.mean<<" \t";
39  ss<<thisBin.n_coll.var<<" \t";
40  ss<<thisBin.b.mean<<" \t";
41  ss<<thisBin.b.var<<" \t"<<std::endl;
42  ss<<"__________________________________________________"<<std::endl;
43 
44  }
45 
46  return ss.str();
47  }
std::vector< CBin > m_table
Class const & object() const
int j
Definition: DBlmapReader.cc:9
#define table(NAME)
Definition: DbCore.h:49
template<>
std::string cond::PayLoadInspector< EcalTimeOffsetConstant >::summary ( void  ) const

Definition at line 27 of file EcalTimeOffsetConstantPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

27  {
28  std::stringstream ss;
29  ss <<" Barrel and endcap Time Offset" << std::endl;
30  ss << " EB " << object().getEBValue()
31  << " EE " << object().getEEValue() << std::endl;
32  return ss.str();
33  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalTPGFineGrainEBIdMap >::summary ( void  ) const

Definition at line 30 of file EcalTPGFineGrainEBIdMapPyWrapper.cc.

References python.multivaluedict::map(), dbtoconf::object, and contentValuesCheck::ss.

30  {
31  std::stringstream ss;
32 
35  uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT;
36  ss<<std::endl;
37  for (it=map.begin();it!=map.end();++it) {
38  ss <<"FG "<<(*it).first<<std::endl;
39  (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
40  ss <<std::hex<<"0x"<<ThresholdETLow<<" 0x"<<ThresholdETHigh<<" 0x"<<RatioLow<<" 0x"<<RatioHigh<<" 0x"<<LUT<<std::endl;
41  }
42  return ss.str();
43  }
Class const & object() const
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
std::map< uint32_t, EcalTPGFineGrainConstEB > EcalTPGFineGrainEBMap
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:32
template<>
std::string cond::PayLoadInspector< EcalTPGLutIdMap >::summary ( void  ) const

Definition at line 30 of file EcalTPGLutIdMapPyWrapper.cc.

References i, lumiPlot::lut, python.multivaluedict::map(), dbtoconf::object, and contentValuesCheck::ss.

30  {
31  std::stringstream ss;
33  const EcalTPGLutIdMap::EcalTPGLutMap map=object().getMap();
34 
35  ss<<std::endl;
36  for (it=map.begin();it!=map.end();++it) {
37  ss <<"LUT "<<(*it).first<<std::endl;
38  const unsigned int * lut=(*it).second.getLut();
39  for (unsigned int i=0;i<1024;++i) ss <<std::hex<<"0x"<<*lut++<<std::endl;
40  }
41 
42  return ss.str();
43  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
tuple lut
Definition: lumiPlot.py:244
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
template<>
std::string cond::PayLoadInspector< EcalTPGWeightIdMap >::summary ( void  ) const

Definition at line 30 of file EcalTPGWeightIdMapPyWrapper.cc.

References python.multivaluedict::map(), dbtoconf::object, contentValuesCheck::ss, w2, w3, and w4.

30  {
31  std::stringstream ss;
32 
33  ss<<std::endl;
35  uint32_t w0,w1,w2,w3,w4;
37  for (it=map.begin();it!=map.end();++it) {
38  ss <<"WEIGHT "<<(*it).first<<std::endl;
39  (*it).second.getValues(w0,w1,w2,w3,w4);
40  ss <<std::hex<<"0x"<<w0<<" 0x"<<w1<<" 0x"<<w2<<" 0x"<<w3<<" 0x"<<w4<<" "<<std::endl;
41  }
42  return ss.str();
43  }
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
common ppss p3p6s2 common epss epspn46 common const1 w4
Definition: inclppp.h:1
Class const & object() const
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
template<>
std::string cond::PayLoadInspector< RPCObPVSSmap >::summary ( void  ) const

Definition at line 32 of file RPCObPVSSmapPyWrapper.cc.

References i, dbtoconf::object, and contentValuesCheck::ss.

32  {
33  std::stringstream ss;
34 
35  std::vector<RPCObPVSSmap::Item> const & vdetid = object().ObIDMap_rpc;
36 
37 
38  for(unsigned int i = 0; i < vdetid.size(); ++i ){
39  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<<" ";
40  }
41 
42  return ss.str();
43  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalTPGPhysicsConst >::summary ( void  ) const

Definition at line 33 of file EcalTPGPhysicsConstPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

33  {
34  std::stringstream ss;
35  EcalTPGPhysicsConstMap valuesMap = object().getMap();
36 
37  EcalTPGPhysicsConstMapIterator iValue = valuesMap.begin();
38  ss << "---Barrels: " << std::endl;
39  ss << "EtSat: " << (*iValue).second.EtSat << std::endl;
40  ss << "ttf_threshold_Low: " << (*iValue).second.ttf_threshold_Low << std::endl;
41  ss << "ttf_threshold_High: " << (*iValue).second.ttf_threshold_High << std::endl;
42  ss << "FG_lowThreshold: " << (*iValue).second.FG_lowThreshold << std::endl;
43  ss << "FG_highThreshold: " << (*iValue).second.FG_highThreshold << std::endl;
44  ss << "FG_lowRatio: " << (*iValue).second.FG_lowRatio << std::endl;
45  ss << "FG_highRatio: " << (*iValue).second.FG_highRatio << std::endl;
46 
47  ++iValue;
48  ss << "---Endcaps: " << std::endl;
49  ss << "EtSat: " << (*iValue).second.EtSat << std::endl;
50  ss << "ttf_threshold_Low: " << (*iValue).second.ttf_threshold_Low << std::endl;
51  ss << "ttf_threshold_High: " << (*iValue).second.ttf_threshold_High << std::endl;
52  ss << "FG_lowThreshold: " << (*iValue).second.FG_lowThreshold << std::endl;
53  ss << "FG_highThreshold: " << (*iValue).second.FG_highThreshold << std::endl;
54  ss << "FG_lowRatio: " << (*iValue).second.FG_lowRatio << std::endl;
55  ss << "FG_highRatio: " << (*iValue).second.FG_highRatio << std::endl;
56  return ss.str();
57  }
Class const & object() const
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
template<>
std::string cond::PayLoadInspector< EcalTimeBiasCorrections >::summary ( void  ) const

Definition at line 35 of file EcalTimeBiasCorrectionsPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

35  {
36  std::stringstream ss;
37  object().print(ss);
38  return ss.str();
39  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalTPGTowerStatus >::summary ( void  ) const

Definition at line 39 of file EcalTPGTowerStatusPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

39  {
40  std::stringstream ss;
41 
42  const EcalTPGTowerStatusMap &towerMap = object().getMap();
44  int NbMaskedTT = 0;
45  for(it = towerMap.begin(); it != towerMap.end(); ++it)
46  if((*it).second > 0) NbMaskedTT++;
47  ss <<"Barrel masked Trigger Towers " << NbMaskedTT <<std::endl;
48  return ss.str();
49  }
std::map< uint32_t, uint16_t >::const_iterator EcalTPGTowerStatusMapIterator
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripBackPlaneCorrection >::summary ( void  ) const

Definition at line 40 of file SiStripBackPlaneCorrectionPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

40  {
41  std::stringstream ss;
42  object().printSummary(ss);
43  return ss.str();
44  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripLorentzAngle >::summary ( void  ) const

Definition at line 40 of file SiStripLorentzAnglePyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

40  {
41  std::stringstream ss;
42  object().printSummary(ss);
43  return ss.str();
44  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripBaseDelay >::summary ( void  ) const

Definition at line 40 of file SiStripBaseDelayPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

40  {
41  std::stringstream ss;
42  object().printSummary(ss);
43  return ss.str();
44  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTRangeT0 >::summary ( void  ) const

Definition at line 41 of file DTRangeT0PyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< DTT0 >::summary ( void  ) const

Definition at line 41 of file DTT0PyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< DTCCBConfig >::summary ( void  ) const

Definition at line 41 of file DTCCBConfigPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< SiStripDetVOff >::summary ( void  ) const

Definition at line 41 of file SiStripDetVOffPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  ss << std::endl;
45  object().printDebug(ss);
46  return ss.str();
47  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTStatusFlag >::summary ( void  ) const

Definition at line 41 of file DTStatusFlagPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< EcalMappingElectronics >::summary ( void  ) const

Definition at line 41 of file EcalMappingElectronicsPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< SiStripPedestals >::summary ( void  ) const

Definition at line 41 of file SiStripPedestalsPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripNoises >::summary ( void  ) const

Definition at line 41 of file SiStripNoisesPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTDeadFlag >::summary ( void  ) const

Definition at line 41 of file DTDeadFlagPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< SiStripBadStrip >::summary ( void  ) const

Definition at line 41 of file SiStripBadStripPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTReadOutMapping >::summary ( void  ) const

Definition at line 41 of file DTReadOutMappingPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< SiStripLatency >::summary ( void  ) const

Definition at line 41 of file SiStripLatencyPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< L1TriggerScaler >::summary ( void  ) const

Definition at line 41 of file L1TriggerScalerPyWrapper.cc.

References i, dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  ss << object().m_run.size() <<", ";
44  if (!object().m_run.empty()) {
45  ss << object().m_run.front().m_rn;
46  ss << ", ";
47  ss << object().m_run.front().m_lumisegment;
48  ss << ", " << object().m_run.front().m_date;
49  ss << ", " << object().m_run.front().m_date;
50 
51  for(size_t i=0; i<object().m_run.front().m_GTAlgoCounts.size(); i++ ){
52  ss << "m_GTAlgoCounts["<<i<<"] = "<< object().m_run.front().m_GTAlgoCounts[i]<<std::endl;
53  }
54  for(size_t i=0; i<object().m_run.front().m_GTAlgoRates.size(); i++ ){
55  ss << "m_GTAlgoRates["<<i<<"] = "<< object().m_run.front().m_GTAlgoRates[i]<<std::endl;
56  }
57  for(size_t i=0; i<object().m_run.front().m_GTAlgoPrescaling.size(); i++ ){
58  ss << "m_GTAlgoPrescaling["<<i<<"] = "<< object().m_run.front().m_GTAlgoPrescaling[i]<<std::endl;
59  }
60  for(size_t i=0; i<object().m_run.front().m_GTTechCounts.size(); i++ ){
61  ss << " m_GTTechCounts["<<i<<"] = "<< object().m_run.front().m_GTTechCounts[i]<<std::endl;
62  }
63  for(size_t i=0; i<object().m_run.front().m_GTTechRates.size(); i++ ){
64  ss << " m_GTTechRates["<<i<<"] = "<< object().m_run.front().m_GTTechRates[i]<<std::endl;
65  }
66  for(size_t i=0; i<object().m_run.front().m_GTTechPrescaling.size(); i++ ){
67  ss << " m_GTTechPrescaling["<<i<<"] = "<< object().m_run.front().m_GTTechPrescaling[i]<<std::endl;
68  }
69  for(size_t i=0; i<object().m_run.front().m_GTPartition0TriggerCounts.size(); i++ ){
70  ss << " m_GTPartition0TriggerCounts["<<i<<"] = "<< object().m_run.front().m_GTPartition0TriggerCounts[i]<<std::endl;
71  }
72  for(size_t i=0; i<object().m_run.front().m_GTPartition0TriggerRates.size(); i++ ){
73  ss << " m_GTPartition0TriggerRates["<<i<<"] = "<< object().m_run.front().m_GTPartition0TriggerRates[i]<<std::endl;
74  }
75  for(size_t i=0; i<object().m_run.front().m_GTPartition0DeadTime.size(); i++ ){
76  ss << " m_GTPartition0DeadTime["<<i<<"] = "<< object().m_run.front().m_GTPartition0DeadTime[i]<<std::endl;
77  }
78  for(size_t i=0; i<object().m_run.front().m_GTPartition0DeadTimeRatio.size(); i++ ){
79  ss << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< object().m_run.front().m_GTPartition0DeadTimeRatio[i]<<std::endl;
80  }
81 
82 
83  ss << "; ";
84  ss << object().m_run.back().m_rn;
85  ss << ", ";
86  ss << object().m_run.back().m_lumisegment;
87  ss << ", " << object().m_run.back().m_date;
88 
89  for(size_t i=0; i<object().m_run.back().m_GTAlgoCounts.size(); i++ ){
90  ss << "m_GTAlgoCounts["<<i<<"] = "<< object().m_run.back().m_GTAlgoCounts[i]<<std::endl;
91  }
92  for(size_t i=0; i<object().m_run.back().m_GTAlgoRates.size(); i++ ){
93  ss << "m_GTAlgoRates["<<i<<"] = "<< object().m_run.back().m_GTAlgoRates[i]<<std::endl;
94  }
95  for(size_t i=0; i<object().m_run.back().m_GTAlgoPrescaling.size(); i++ ){
96  ss << "m_GTAlgoPrescaling["<<i<<"] = "<< object().m_run.back().m_GTAlgoPrescaling[i]<<std::endl;
97  }
98  for(size_t i=0; i<object().m_run.back().m_GTTechCounts.size(); i++ ){
99  ss << " m_GTTechCounts["<<i<<"] = "<< object().m_run.back().m_GTTechCounts[i]<<std::endl;
100  }
101  for(size_t i=0; i<object().m_run.back().m_GTTechRates.size(); i++ ){
102  ss << " m_GTTechRates["<<i<<"] = "<< object().m_run.back().m_GTTechRates[i]<<std::endl;
103  }
104  for(size_t i=0; i<object().m_run.back().m_GTTechPrescaling.size(); i++ ){
105  ss << " m_GTTechPrescaling["<<i<<"] = "<< object().m_run.back().m_GTTechPrescaling[i]<<std::endl;
106  }
107  for(size_t i=0; i<object().m_run.back().m_GTPartition0TriggerCounts.size(); i++ ){
108  ss << " m_GTPartition0TriggerCounts["<<i<<"] = "<< object().m_run.back().m_GTPartition0TriggerCounts[i]<<std::endl;
109  }
110  for(size_t i=0; i<object().m_run.back().m_GTPartition0TriggerRates.size(); i++ ){
111  ss << " m_GTPartition0TriggerRates["<<i<<"] = "<< object().m_run.back().m_GTPartition0TriggerRates[i]<<std::endl;
112  }
113  for(size_t i=0; i<object().m_run.back().m_GTPartition0DeadTime.size(); i++ ){
114  ss << " m_GTPartition0DeadTime["<<i<<"] = "<< object().m_run.back().m_GTPartition0DeadTime[i]<<std::endl;
115  }
116  for(size_t i=0; i<object().m_run.back().m_GTPartition0DeadTimeRatio.size(); i++ ){
117  ss << " m_GTPartition0DeadTimeRatio["<<i<<"] = "<< object().m_run.back().m_GTPartition0DeadTimeRatio[i]<<std::endl;
118  }
119  }
120  return ss.str();
121  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< RunSummary >::summary ( void  ) const

Definition at line 41 of file RunSummaryPyWrapper.cc.

References i, dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  ss << "RUN: "<<object().m_run;
44  ss << ", NAME: " <<object().m_name;
45  ss << ", START TIME: " << object().m_start_time_str;
46  ss << ", STOP TIME:" << object().m_stop_time_str;
47  ss << ", LUMISECTIONS: " << object().m_lumisections;
48  ss << ", HLT_KEY: " << object().m_hltkey;
49  ss << ", TRG_NEVENTS: " << object().m_nevents;
50  ss << ", TRG_RATE: " << object().m_rate;
51  ss << ", SUBDETS IB RUN: ";
52  for (size_t i=0; i<object().m_subdt_in.size() ; i++){
53  if (object().m_subdt_in[i]==0) {
54  ss<< "PIXEL, ";
55  }
56  if (object().m_subdt_in[i]==1) {
57  ss<<"TRACKER, ";
58  }
59  if (object().m_subdt_in[i]==2) {
60  ss<< "ECAL, " ;
61  }
62  if (object().m_subdt_in[i]==3) {
63  ss<< "HCAL, ";
64  }
65  if (object().m_subdt_in[i]==4) {
66  ss<<"DT," ;
67  }
68  if (object().m_subdt_in[i]==5) {
69  ss<<"CSC,";
70  }
71  if (object().m_subdt_in[i]==6) {
72  ss<<"RPC, ";
73  }
74  }
75 
76 
77  return ss.str();
78  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTTPGParameters >::summary ( void  ) const

Definition at line 41 of file DTTPGParametersPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< Phase2TrackerCabling >::summary ( void  ) const

Definition at line 41 of file Phase2TrackerCablingPyWrapper.cc.

References dbtoconf::object.

41  {
42  return object().summaryDescription();
43  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripApvGain >::summary ( void  ) const

Definition at line 41 of file SiStripApvGainPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< BeamSpotObjects >::summary ( void  ) const

Definition at line 41 of file BeamSpotObjectsPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().print(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripConfObject >::summary ( void  ) const

Definition at line 41 of file SiStripConfObjectPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< SiStripFedCabling >::summary ( void  ) const

Definition at line 41 of file SiStripFedCablingPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTHVStatus >::summary ( void  ) const

Definition at line 41 of file DTHVStatusPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< AlCaRecoTriggerBits >::summary ( void  ) const

Definition at line 41 of file AlCaRecoTriggerBitsPyWrapper.cc.

References dbtoconf::object, query::result, and AlCaHLTBitMon_QueryRunRegistry::string.

41  {
42  // std::stringstream ss;
43  std::string result = "empty map";
44  if( object().m_alcarecoToTrig.size() > 0 ) {
45  // ss << "trigger bit : value \n";
46  // std::map<std::string, std::string>::const_iterator it = object().m_alcarecoToTrig.begin();
47 
48  //std::vector<std::string> strs;
49  //boost::split(strs, object().m_alcarecoToTrig.begin()->second, boost::is_any_of(";"));
50  result = object().m_alcarecoToTrig.begin()->first +" :\n"+ object().m_alcarecoToTrig.begin()->second;
51  boost::replace_all(result, ";", ";\n");
52  //ss << it->first << " : " << it->second << "\n";
53  }
54  return result;
55  }
tuple result
Definition: query.py:137
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTLVStatus >::summary ( void  ) const

Definition at line 41 of file DTLVStatusPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< SiStripRunSummary >::summary ( void  ) const

Definition at line 41 of file SiStripRunSummaryPyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< SiStripThreshold >::summary ( void  ) const

Definition at line 41 of file SiStripThresholdPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  object().printSummary(ss);
44  return ss.str();
45  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< DTPerformance >::summary ( void  ) const

Definition at line 41 of file DTPerformancePyWrapper.cc.

References contentValuesCheck::ss.

41  {
42  std::stringstream ss;
43  return ss.str();
44  }
template<>
std::string cond::PayLoadInspector< ESGain >::summary ( void  ) const

Definition at line 42 of file ESGainPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

42  {
43  std::stringstream ss;
44  object().print(ss);
45  return ss.str();
46  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalWeightXtalGroups >::summary ( void  ) const

Definition at line 43 of file EcalWeightXtalGroupsPyWrapper.cc.

References contentValuesCheck::ss.

43  {
44  std::stringstream ss;
45  return ss.str();
46  }
template<>
std::string cond::PayLoadInspector< RunNumber >::summary ( void  ) const

Definition at line 43 of file RunNumberPyWrapper.cc.

References i, dbtoconf::object, and contentValuesCheck::ss.

43  {
44  std::stringstream ss;
45  ss << object().m_runnumber.size() <<", ";
46  if (!object().m_runnumber.empty()) {
47  ss << object().m_runnumber.front().m_run;
48  ss << ", ";
49  ss << object().m_runnumber.front().m_name;
50  ss << ", " << object().m_runnumber.front().m_start_time_str;
51  ss << "; ";
52  ss << ", " << object().m_runnumber.front().m_stop_time_str;
53  ss << "; ";
54  for (size_t i=0; i< object().m_runnumber.front().m_subdt_joined.size(); ++i){
55  ss << ", " << object().m_runnumber.front().m_subdt_joined[i];
56  ss << "; ";
57  }
58 
59  }
60  return ss.str();
61 
62  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalADCToGeVConstant >::summary ( void  ) const

Definition at line 43 of file EcalADCToGeVConstantPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

43  {
44  std::stringstream ss;
45  object().print(ss);
46  return ss.str();
47  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalTPGStripStatus >::summary ( void  ) const

Definition at line 45 of file EcalTPGStripStatusPyWrapper.cc.

References gather_cfg::cout, dbtoconf::object, and contentValuesCheck::ss.

45  {
46  std::stringstream ss;
47  const EcalTPGStripStatusMap &stripMap = object().getMap();
48  std::cout << " tower map size " << stripMap.size() << std::endl;
49  ss <<" Endcap : Number of masked Trigger Strips " << stripMap.size() << std::endl;
50  return ss.str();
51  }
Class const & object() const
tuple cout
Definition: gather_cfg.py:121
std::map< uint32_t, uint16_t > EcalTPGStripStatusMap
template<>
std::string cond::PayLoadInspector< EcalTBWeights >::summary ( void  ) const

Definition at line 45 of file EcalTBWeightsPyWrapper.cc.

References EcalTBWeightsXMLTranslator::dumpXML(), h, and contentValuesCheck::ss.

45  {
46  std::stringstream ss;
48  ss<< EcalTBWeightsXMLTranslator::dumpXML(h,object());
49  return ss.str();
50  }
static std::string dumpXML(const EcalCondHeader &header, const EcalTBWeights &record)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
template<>
std::string cond::PayLoadInspector< FillInfo >::summary ( void  ) const

Definition at line 45 of file FillInfoPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

45  {
46  std::stringstream ss;
47  ss << this->object();
48  return ss.str();
49  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< HcalChannelQuality >::summary ( void  ) const

Definition at line 48 of file HcalChannelQualityPyWrapper.cc.

References HcalObjRepresent::getBitsSummary(), HcalObjRepresent::IntToBinary(), j, dbtoconf::object, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

48  {
49  std::stringstream ss;
50 
51  //setting map for representing errors
52  std::string statusBitArray[20];
53  short unsigned int bitMap[9];
54  statusBitArray[0] = std::string("cell is off" );
55  statusBitArray[1] = std::string("cell is masked/to be masked at RecHit Level" );
56  statusBitArray[5] = std::string("cell is dead (from DQM algo)");
57  statusBitArray[6] = std::string("cell is hot (from DQM algo)" );
58  statusBitArray[7] = std::string("cell has stability error");
59  statusBitArray[8] = std::string("cell has timing error" );
60  statusBitArray[15] = std::string("cell is masked from the Trigger ");
61  statusBitArray[18] = std::string("cell is always excluded from the CaloTower regardless of other bit settings.");
62  statusBitArray[19] = std::string("cell is counted as problematic within the tower.");
63  bitMap[0] = 0; //{0, 1, 5, 6, 7, 8, 15, 18, 19};
64  bitMap[1] = 1;
65  bitMap[2] = 5;
66  bitMap[3] = 6;
67  bitMap[4] = 7;
68  bitMap[5] = 8;
69  bitMap[6] = 15;
70  bitMap[7] = 18;
71  bitMap[8] = 19;
72 
73  // get all containers with names
74  HcalChannelQuality::tAllContWithNames allContainers = object().getAllContainers();
75 
76  // initializing iterators
77  HcalChannelQuality::tAllContWithNames::const_iterator iter;
78  std::vector<HcalChannelStatus>::const_iterator contIter;
79  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
80 
81  //run trough all pair containers, print error values if any.
82  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter){
83  ss << "---------------------------------------------" << std::endl;
84  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
85  unsigned int j = 0;
86  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
87 
88  //if not 0, it have error, print it:
89  if ((*contIter).getValue() != 0){//HcalDetId::HcalDetId(uint32_t rawid)
90  ss << " Id["<< j << "]: " <<
91  " rawId: " << (uint32_t)(*contIter).rawId() << " "<< HcalDetId((uint32_t)(*contIter).rawId())<<"; Channel bits: " <<
92  (uint32_t)(*contIter).getValue()<< "; Binary format: " << IntToBinary((uint32_t)(*contIter).getValue()) << "; Errors: "
93  << getBitsSummary((uint32_t)((*contIter).getValue()), statusBitArray, bitMap);
94  }
95  ++j;
96  }
97  }
98  return ss.str();
99  }
std::string getBitsSummary(uint32_t bits, std::string statusBitArray[], short unsigned int bitMap[])
std::string IntToBinary(unsigned int number)
Class const & object() const
int j
Definition: DBlmapReader.cc:9
template<>
std::string cond::PayLoadInspector< RunInfo >::summary ( void  ) const

Definition at line 49 of file RunInfoPyWrapper.cc.

References i, dbtoconf::object, and contentValuesCheck::ss.

49  {
50  std::stringstream ss;
51  ss << "RUN: "<<object().m_run;
52  ss << ", START TIME: " << object().m_start_time_str;
53  ss << ", STOP TIME:" << object().m_stop_time_str;
54  ss << ", START CURRENT: " << object().m_start_current;
55  ss << ", STOP CURRENT: " << object().m_stop_current;
56  ss << ", AVG CURRENT: " << object().m_avg_current;
57  ss << ", MIN CURRENT: " << object().m_min_current;
58  ss << ", MAX CURRENT: " << object().m_max_current;
59  ss << ", RUN INTERVALL IN MICROSECONDS: "<< object().m_run_intervall_micros; /*
60  ss << ", ALL CURRENT VALUE FROM STOP TO START (BACKWARD) :" ;
61  for (size_t i=0; i< object().m_current.size() ; i++){
62  ss<< object().m_current[i] << ", ";
63  }
64  */
65  ss << ", FED IN :" ;
66  for (size_t i=0; i<object().m_fed_in.size(); i++){
67  ss<< object().m_fed_in[i] << ", ";
68  }
69 
70  return ss.str();
71 }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
string cond::PayLoadInspector< Alignments >::summary ( void  ) const

Definition at line 49 of file EcalAlignmentPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

49  {
50 
51  stringstream ss;
52  ss << " Id x y z phi theta psi " << endl;
53  for ( vector<AlignTransform>::const_iterator it = object().m_align.begin();
54  it != object().m_align.end(); it++ ) {
55  ss << hex << (*it).rawId()
56  << " " << (*it).translation().x()
57  << " " << (*it).translation().y()
58  << " " << (*it).translation().z()
59  << " " << (*it).rotation().getPhi()
60  << " " << (*it).rotation().getTheta()
61  << " " << (*it).rotation().getPsi()
62  << endl;
63  }
64  return ss.str();
65  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< HcalGains >::summary ( void  ) const

Definition at line 50 of file HcalGainsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

50  {
51  std::stringstream ss;
52 
53  // get all containers with names
54  HcalGains::tAllContWithNames allContainers = object().getAllContainers();
55 
56  // initializing iterators
57  HcalGains::tAllContWithNames::const_iterator iter;
58  std::vector<HcalGain>::const_iterator contIter;
59 
60  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
61 
62  int capIdSize = 4;
63  float capValue = 0.0;
64  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
65 
66  std::vector<tPora> vec(allContainers.size());
67 
68  std::vector<tPora>::iterator iMaz = vec.begin();
69 
70  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
71  int size = 0;
72 
73  //Run trough all 8 detector containers:
74  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
75  ss << "---------------------------------------------" << std::endl;
76  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
77  unsigned int j = 0;
78  //ss << sizes.size() <<index;
79  //vec.push_back(std::pair<std::vector<float>(4, 0.0), 0>);
80  iMaz->second = (*iter).second.size();
81  (iMaz->first).first = std::vector<float>(4, 0.0);
82  (iMaz->first).second = std::vector<float>(4, 0.0);
83 
84  //Run trough all values in container
85  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
86 
87  //Run trough all values (4) in object:
88  for (int i = 0; i < capIdSize; ++i){
89  capValue = (*contIter).getValue(i);
90  (iMaz->first).first[i] += capValue;
91  (iMaz->first).second[i]+= (capValue * capValue);
92  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
93  }
94  //ss << std::endl;
95  ++j;
96  }
97 
98  size = (*iMaz).second;
99  //ss << k++ << ": size = "<< size << "; ";
100  for (int i = 0; i < capIdSize; ++i){
101  sum = ((*iMaz).first).first[i];
102  sqr_sum = ((*iMaz).first).second[i];
103  average = sum/size;
104  std_dev = sqrt( (sqr_sum/size) - (average * average) );
105  ss << " Gain " << i << " :"<< std::endl;
106  ss << " Average: " << average << "; "<< std::endl;
107  ss << " Standart deviation: " << std_dev << "; " << std::endl;
108  }
109  }
110  return ss.str();
111  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< EcalFunParams >::summary ( void  ) const

Definition at line 56 of file EcalFunParamsPyWrapper.cc.

References gather_cfg::cout, dbtoconf::object, and contentValuesCheck::ss.

56  {
57  std::cout << "EcalFunParamsPyWrapper summary " << std::endl;
58  std::stringstream ss;
59  ss << "EcalFunParamsPyWrapper nb of parameters : " << object().params().size();
60 
61  return ss.str();
62  }
Class const & object() const
tuple cout
Definition: gather_cfg.py:121
template<>
std::string cond::PayLoadInspector< EcalTPGPedestals >::summary ( void  ) const

Definition at line 75 of file EcalTPGPedestalsPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

75  {
76  std::stringstream ss;
77  EcalTPGPedestalsHelper helper;
78  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
79  return ss.str();
80  }
template<>
std::string cond::PayLoadInspector< SiStripSummary >::summary ( void  ) const

Definition at line 81 of file SiStripSummaryPyWrapper.cc.

References dbtoconf::object, and contentValuesCheck::ss.

81  {
82  std::stringstream ss;
83  ss << "Nr.Det " << object().getRegistryVectorEnd()-object().getRegistryVectorBegin()
84  << "\nNr.Quantities " << object().getUserDBContent().size()
85  << "\nNr.values " << object().getDataVectorEnd()-object().getDataVectorBegin()
86  << "\nRunNr= " << object().getRunNr()
87  << "\ntimeValue= " << object().getTimeValue();
88  //ss << "names of DBquantities ";
89  //std::vector<std::string> listWhat= object().getUserDBContent();
90  //for(size_t i=0;i<listWhat.size();++i)
91  // ss << listWhat[i] << "\n";
92  return ss.str();
93  }
Class const & object() const
template<>
std::string cond::PayLoadInspector< HcalValidationCorrs >::summary ( void  ) const

Definition at line 87 of file HcalValidationCorrsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

87  {
88  std::stringstream ss;
89  unsigned int totalValues = 1;
90  // get all containers with names
91  HcalValidationCorrs::tAllContWithNames allContainers = object().getAllContainers();
92 
93  // initializing iterators
94  HcalValidationCorrs::tAllContWithNames::const_iterator iter;
95  std::vector<HcalValidationCorr>::const_iterator contIter;
96 
97  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
98 
99  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
100 
101  std::vector<tPora> vec(allContainers.size());
102 
103  std::vector<tPora>::iterator iMaz = vec.begin();
104 
105  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
106  int size = 0;
107 
108  //Run trough all 8 detector containers:
109  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
110  ss << "---------------------------------------------" << std::endl;
111  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
112  unsigned int j = 0;
113  iMaz->second = (*iter).second.size();
114  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
115  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
116  float capValue = 0.0;
117  //Run trough all values in container
118  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
119 
120  //Run trough all values (8) in object:
121  for (unsigned int i = 0; i < totalValues; ++i){
122  capValue = (*contIter).getValue();
123  (iMaz->first).first[i] += capValue;
124  (iMaz->first).second[i]+= (capValue * capValue);
125  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
126  }
127  //ss << std::endl;
128  ++j;
129  }
130 
131  size = (*iMaz).second;
132  for (unsigned int i = 0; i < totalValues; ++i){
133  sum = ((*iMaz).first).first[i];
134  sqr_sum = ((*iMaz).first).second[i];
135  average = sum/size;
136  //here needs to take absoValidatione value for sqrt:
137  std_dev = sqrt( fabs((sqr_sum / size) - (average * average)) );
138 
139  ss << " ValidationCorr " << " :"<< std::endl;
140  ss << " Average: " << average << "; "<< std::endl;
141  ss << " Standart deviation: " << std_dev << "; " << std::endl;
142 
143  }
144  }
145  //std::cout << ss.str();
146  return ss.str();
147  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalPFCorrs >::summary ( void  ) const

Definition at line 87 of file HcalPFCorrsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

87  {
88  std::stringstream ss;
89  unsigned int totalValues = 1;
90  // get all containers with names
91  HcalPFCorrs::tAllContWithNames allContainers = object().getAllContainers();
92 
93  // initializing iterators
94  HcalPFCorrs::tAllContWithNames::const_iterator iter;
95  std::vector<HcalPFCorr>::const_iterator contIter;
96 
97  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
98 
99  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
100 
101  std::vector<tPora> vec(allContainers.size());
102 
103  std::vector<tPora>::iterator iMaz = vec.begin();
104 
105  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
106  int size = 0;
107 
108  //Run trough all 8 detector containers:
109  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
110  ss << "---------------------------------------------" << std::endl;
111  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
112  unsigned int j = 0;
113  iMaz->second = (*iter).second.size();
114  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
115  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
116  float capValue = 0.0;
117  //Run trough all values in container
118  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
119 
120  //Run trough all values (8) in object:
121  for (unsigned int i = 0; i < totalValues; ++i){
122  capValue = (*contIter).getValue();
123  (iMaz->first).first[i] += capValue;
124  (iMaz->first).second[i]+= (capValue * capValue);
125  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
126  }
127  //ss << std::endl;
128  ++j;
129  }
130 
131  size = (*iMaz).second;
132  for (unsigned int i = 0; i < totalValues; ++i){
133  sum = ((*iMaz).first).first[i];
134  sqr_sum = ((*iMaz).first).second[i];
135  average = sum/size;
136  std_dev = sqrt( (sqr_sum/size) - (average * average) );
137 
138  ss << " PFCorr " << " :"<< std::endl;
139  ss << " Average: " << average << "; "<< std::endl;
140  ss << " Standart deviation: " << std_dev << "; " << std::endl;
141 
142  }
143  }
144  //std::cout << ss.str();
145  return ss.str();
146  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalZSThresholds >::summary ( void  ) const

Definition at line 87 of file HcalZSThresholdsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

87  {
88  std::stringstream ss;
89  unsigned int totalValues = 1;
90  // get all containers with names
91  HcalZSThresholds::tAllContWithNames allContainers = object().getAllContainers();
92 
93  // initializing iterators
94  HcalZSThresholds::tAllContWithNames::const_iterator iter;
95  std::vector<HcalZSThreshold>::const_iterator contIter;
96 
97  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
98 
99  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
100 
101  std::vector<tPora> vec(allContainers.size());
102 
103  std::vector<tPora>::iterator iMaz = vec.begin();
104 
105  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
106  int size = 0;
107 
108  //Run trough all 8 detector containers:
109  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
110  ss << "---------------------------------------------" << std::endl;
111  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
112  unsigned int j = 0;
113  iMaz->second = (*iter).second.size();
114  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
115  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
116  int capValue = 0;
117  //Run trough all values in container
118  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
119 
120  //Run trough all values (8) in object:
121  for (unsigned int i = 0; i < totalValues; ++i){
122  capValue = (*contIter).getValue();
123  (iMaz->first).first[i] += capValue;
124  (iMaz->first).second[i]+= (capValue * capValue);
125  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
126  }
127  //ss << std::endl;
128  ++j;
129  }
130 
131  size = (*iMaz).second;
132  for (unsigned int i = 0; i < totalValues; ++i){
133  sum = ((*iMaz).first).first[i];
134  sqr_sum = ((*iMaz).first).second[i];
135  average = sum/size;
136  //here needs to take absolute value for sqrt:
137  std_dev = sqrt( fabs((sqr_sum / size) - (average * average)) );
138 
139  ss << " ZSThreshold " << " :"<< std::endl;
140  ss << " Average: " << average << "; "<< std::endl;
141  ss << " Standart deviation: " << std_dev << "; " << std::endl;
142 
143  }
144  }
145  //std::cout << ss.str();
146  return ss.str();
147  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalLUTCorrs >::summary ( void  ) const

Definition at line 87 of file HcalLUTCorrsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

87  {
88  std::stringstream ss;
89  unsigned int totalValues = 1;
90  // get all containers with names
91  HcalLUTCorrs::tAllContWithNames allContainers = object().getAllContainers();
92 
93  // initializing iterators
94  HcalLUTCorrs::tAllContWithNames::const_iterator iter;
95  std::vector<HcalLUTCorr>::const_iterator contIter;
96 
97  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
98 
99  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
100 
101  std::vector<tPora> vec(allContainers.size());
102 
103  std::vector<tPora>::iterator iMaz = vec.begin();
104 
105  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
106  int size = 0;
107 
108  //Run trough all 8 detector containers:
109  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
110  ss << "---------------------------------------------" << std::endl;
111  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
112  unsigned int j = 0;
113  iMaz->second = (*iter).second.size();
114  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
115  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
116  float capValue = 0.0;
117  //Run trough all values in container
118  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
119 
120  //Run trough all values (8) in object:
121  for (unsigned int i = 0; i < totalValues; ++i){
122  capValue = (*contIter).getValue();
123  (iMaz->first).first[i] += capValue;
124  (iMaz->first).second[i]+= (capValue * capValue);
125  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
126  }
127  //ss << std::endl;
128  ++j;
129  }
130 
131  size = (*iMaz).second;
132  for (unsigned int i = 0; i < totalValues; ++i){
133  sum = ((*iMaz).first).first[i];
134  sqr_sum = ((*iMaz).first).second[i];
135  average = sum/size;
136  //here needs to take absolute value for sqrt:
137  std_dev = sqrt( fabs((sqr_sum / size) - (average * average)) );
138 
139  ss << " LUTCorr " << " :"<< std::endl;
140  ss << " Average: " << average << "; "<< std::endl;
141  ss << " Standart deviation: " << std_dev << "; " << std::endl;
142 
143  }
144  }
145  //std::cout << ss.str();
146  return ss.str();
147  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalRespCorrs >::summary ( void  ) const

Definition at line 87 of file HcalRespCorrsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

87  {
88  std::stringstream ss;
89  unsigned int totalValues = 1;
90  // get all containers with names
91  HcalRespCorrs::tAllContWithNames allContainers = object().getAllContainers();
92 
93  // initializing iterators
94  HcalRespCorrs::tAllContWithNames::const_iterator iter;
95  std::vector<HcalRespCorr>::const_iterator contIter;
96 
97  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
98 
99  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
100 
101  std::vector<tPora> vec(allContainers.size());
102 
103  std::vector<tPora>::iterator iMaz = vec.begin();
104 
105  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
106  int size = 0;
107 
108  //Run trough all 8 detector containers:
109  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
110  ss << "---------------------------------------------" << std::endl;
111  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
112  unsigned int j = 0;
113  iMaz->second = (*iter).second.size();
114  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
115  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
116  float capValue = 0.0;
117  //Run trough all values in container
118  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
119 
120  //Run trough all values (8) in object:
121  for (unsigned int i = 0; i < totalValues; ++i){
122  capValue = (*contIter).getValue();
123  (iMaz->first).first[i] += capValue;
124  (iMaz->first).second[i]+= (capValue * capValue);
125  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
126  }
127  //ss << std::endl;
128  ++j;
129  }
130 
131  size = (*iMaz).second;
132  for (unsigned int i = 0; i < totalValues; ++i){
133  sum = ((*iMaz).first).first[i];
134  sqr_sum = ((*iMaz).first).second[i];
135  average = sum/size;
136  std_dev = sqrt( (sqr_sum/size) - (average * average) );
137 
138  ss << " RespCorr " << " :"<< std::endl;
139  ss << " Average: " << average << "; "<< std::endl;
140  ss << " Standart deviation: " << std_dev << "; " << std::endl;
141 
142  }
143  }
144  //std::cout << ss.str();
145  return ss.str();
146  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalTimeCorrs >::summary ( void  ) const

Definition at line 87 of file HcalTimeCorrsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

87  {
88  std::stringstream ss;
89  unsigned int totalValues = 1;
90  // get all containers with names
91  HcalTimeCorrs::tAllContWithNames allContainers = object().getAllContainers();
92 
93  // initializing iterators
94  HcalTimeCorrs::tAllContWithNames::const_iterator iter;
95  std::vector<HcalTimeCorr>::const_iterator contIter;
96 
97  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
98 
99  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
100 
101  std::vector<tPora> vec(allContainers.size());
102 
103  std::vector<tPora>::iterator iMaz = vec.begin();
104 
105  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
106  int size = 0;
107 
108  //Run trough all 8 detector containers:
109  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
110  ss << "---------------------------------------------" << std::endl;
111  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
112  unsigned int j = 0;
113  iMaz->second = (*iter).second.size();
114  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
115  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
116  float capValue = 0.0;
117  //Run trough all values in container
118  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
119 
120  //Run trough all values (8) in object:
121  for (unsigned int i = 0; i < totalValues; ++i){
122  capValue = (*contIter).getValue();
123  (iMaz->first).first[i] += capValue;
124  (iMaz->first).second[i]+= (capValue * capValue);
125  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
126  }
127  //ss << std::endl;
128  ++j;
129  }
130 
131  size = (*iMaz).second;
132  for (unsigned int i = 0; i < totalValues; ++i){
133  sum = ((*iMaz).first).first[i];
134  sqr_sum = ((*iMaz).first).second[i];
135  average = sum/size;
136  //here needs to take absolute value for sqrt:
137  std_dev = sqrt( fabs((sqr_sum / size) - (average * average)) );
138 
139  ss << " TimeCorr " << " :"<< std::endl;
140  ss << " Average: " << average << "; "<< std::endl;
141  ss << " Standart deviation: " << std_dev << "; " << std::endl;
142 
143  }
144  }
145  //std::cout << ss.str();
146  return ss.str();
147  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< EcalGainRatios >::summary ( void  ) const

Definition at line 88 of file EcalGainRatiosPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

88  {
89  std::stringstream ss;
90  EcalGainRatiosHelper helper;
91  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
92  return ss.str();
93  }
template<>
std::string cond::PayLoadInspector< HcalGainWidths >::summary ( void  ) const

Definition at line 93 of file HcalGainWidthsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

93  {
94  std::stringstream ss;
95  unsigned int totalValues = 4;
96  // get all containers with names
97  HcalGainWidths::tAllContWithNames allContainers = object().getAllContainers();
98 
99  // initializing iterators
100  HcalGainWidths::tAllContWithNames::const_iterator iter;
101  std::vector<HcalGainWidth>::const_iterator contIter;
102 
103  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
104 
105  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
106 
107  std::vector<tPora> vec(allContainers.size());
108 
109  std::vector<tPora>::iterator iMaz = vec.begin();
110 
111  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
112  int size = 0;
113 
114  //Run trough all 8 detector containers:
115  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
116  ss << "---------------------------------------------" << std::endl;
117  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
118  unsigned int j = 0;
119  iMaz->second = (*iter).second.size();
120  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
121  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
122  float capValue = 0.0;
123  //Run trough all values in container
124  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
125 
126  //Run trough all values in object:
127  for (unsigned int i = 0; i < totalValues; ++i){
128  capValue = (*contIter).getValue(i);
129  (iMaz->first).first[i] += capValue;
130  (iMaz->first).second[i]+= (capValue * capValue);
131  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
132  }
133  //ss << std::endl;
134  ++j;
135  }
136 
137  size = (*iMaz).second;
138  for (unsigned int i = 0; i < totalValues; ++i){
139  sum = ((*iMaz).first).first[i];
140  sqr_sum = ((*iMaz).first).second[i];
141  average = sum/size;
142  //here needs to take absolute value for sqrt:
143  std_dev = sqrt( fabs((sqr_sum / size) - (average * average)) );
144 
145  ss << " GainWidth " << i << " :"<< std::endl;
146  ss << " Average: " << average << "; "<< std::endl;
147  ss << " Standart deviation: " << std_dev << "; " << std::endl;
148  }
149  }
150  //std::cout << ss.str();
151  return ss.str();
152  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalPedestals >::summary ( void  ) const

Definition at line 93 of file HcalPedestalsPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

93  {
94  std::stringstream ss;
95  unsigned int totalValues = 8;
96  // get all containers with names
97  HcalPedestals::tAllContWithNames allContainers = object().getAllContainers();
98 
99  // initializing iterators
100  HcalPedestals::tAllContWithNames::const_iterator iter;
101  std::vector<HcalPedestal>::const_iterator contIter;
102 
103  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
104 
105  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
106 
107  std::vector<tPora> vec(allContainers.size());
108 
109  std::vector<tPora>::iterator iMaz = vec.begin();
110 
111  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
112  int size = 0;
113 
114  //Run trough all 8 detector containers:
115  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
116  ss << "---------------------------------------------" << std::endl;
117  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
118  unsigned int j = 0;
119  iMaz->second = (*iter).second.size();
120  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
121  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
122  float capValue = 0.0;
123  //Run trough all values in container
124  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
125 
126  //Run trough all values (8) in object:
127  for (unsigned int i = 0; i < totalValues; ++i){
128  capValue = (*contIter).getValue(i);
129  (iMaz->first).first[i] += capValue;
130  (iMaz->first).second[i]+= (capValue * capValue);
131  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
132  }
133  //ss << std::endl;
134  ++j;
135  }
136 
137  size = (*iMaz).second;
138  for (unsigned int i = 0; i < totalValues; ++i){
139  sum = ((*iMaz).first).first[i];
140  sqr_sum = ((*iMaz).first).second[i];
141  average = sum/size;
142  std_dev = sqrt( (sqr_sum/size) - (average * average) );
143  if (i >= 4){
144  ss << " PedestalWidth " << (i - 4) << " :"<< std::endl;
145  ss << " Average: " << average << "; "<< std::endl;
146  ss << " Standart deviation: " << std_dev << "; " << std::endl;
147  }
148  else {
149  ss << " Pedestal " << i << " :"<< std::endl;
150  ss << " Average: " << average << "; "<< std::endl;
151  ss << " Standart deviation: " << std_dev << "; " << std::endl;
152  }
153  }
154  }
155  //std::cout << ss.str();
156  return ss.str();
157  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< EcalLinearCorrections >::summary ( void  ) const

Definition at line 97 of file EcalLinearCorrectionsPyWrapper.cc.

References i, dbtoconf::object, EcalPyWrapperHelper< T >::printBarrelsEndcaps(), contentValuesCheck::ss, cond::timestamp, and relativeConstraints::value.

97  {
98  std::stringstream ss;
99 
100 
101  EcalLinearCorrectionsHelper helper;
102  ss << helper.printBarrelsEndcaps(object().getValueMap().barrelItems(), object().getValueMap().endcapItems());
103  ss<< std::endl;
104 
105 
106  const EcalLinearCorrections::EcalTimeMap& laserTimeMap =
107  object().getTimeMap();
108 
109 
110  for (int i=0; i<92; i++) {
112 
113 
114  unsigned int x1= ((timestamp.t1).value() >> 32) ;
115  std::time_t tt1 = x1;
116 
117 
118  ss<<"T1["<<i<<"]=" << timestamp.t1.value()<<" "<< x1<< std::ctime(&tt1) ;
119 
120  unsigned int x2= (timestamp.t2).value() >> 32;
121  std::time_t tt2 = x2;
122 
123  ss<<" T2["<<i<<"]=" << timestamp.t2.value()<< " "<<x2<<std::ctime(&tt2) ;
124 
125  unsigned int x3= (timestamp.t3).value() >> 32 ;
126  std::time_t tt3 = x3;
127 
128  ss <<" T3["<<i<<"]=" << timestamp.t3.value()<<" "<< x3<< std::ctime(&tt3) << std::endl;
129 
130  }
131 
132  return ss.str();
133  return ss.str();
134  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalLaserAPDPNRatios >::summary ( void  ) const

Definition at line 97 of file EcalLaserAPDPNRatiosPyWrapper.cc.

References i, dbtoconf::object, EcalPyWrapperHelper< T >::printBarrelsEndcaps(), contentValuesCheck::ss, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t1, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t2, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t3, cond::timestamp, relativeConstraints::value, and edm::Timestamp::value().

97  {
98  std::stringstream ss;
99 
100 
101  EcalLaserAPDPNRatiosHelper helper;
102  ss << helper.printBarrelsEndcaps(object().getLaserMap().barrelItems(), object().getLaserMap().endcapItems());
103  ss<< std::endl;
104 
105 
106  const EcalLaserAPDPNRatios::EcalLaserTimeStampMap& laserTimeMap =
107  object().getTimeMap();
108 
109 
110  for (int i=0; i<92; i++) {
112 
113 
114  unsigned int x1= ((timestamp.t1).value() >> 32) ;
115  std::time_t tt1 = x1;
116 
117 
118  ss<<"T1["<<i<<"]=" << timestamp.t1.value()<<" "<< x1<< std::ctime(&tt1) ;
119 
120  unsigned int x2= (timestamp.t2).value() >> 32;
121  std::time_t tt2 = x2;
122 
123  ss<<" T2["<<i<<"]=" << timestamp.t2.value()<< " "<<x2<<std::ctime(&tt2) ;
124 
125  unsigned int x3= (timestamp.t3).value() >> 32 ;
126  std::time_t tt3 = x3;
127 
128  ss <<" T3["<<i<<"]=" << timestamp.t3.value()<<" "<< x3<< std::ctime(&tt3) << std::endl;
129 
130  }
131 
132  return ss.str();
133  return ss.str();
134  }
int i
Definition: DBlmapReader.cc:9
Class const & object() const
std::vector< EcalLaserTimeStamp > EcalLaserTimeStampMap
TimeValue_t value() const
Definition: Timestamp.h:56
template<>
std::string cond::PayLoadInspector< EcalTPGLinearizationConst >::summary ( void  ) const

Definition at line 100 of file EcalTPGLinearizationConstPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

100  {
101  std::stringstream ss;
102  EcalTPGLinearizationConstHelper helper;
103  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
104  return ss.str();
105  }
template<typename DataT >
std::string cond::PayLoadInspector< DataT >::summary ( ) const
inline

Definition at line 101 of file PayLoadInspector.h.

101  {
102  std::ostringstream os;
103  os << std::endl;
104  return os.str();
105  }
template<>
std::string cond::PayLoadInspector< HcalLutMetadata >::summary ( void  ) const

Definition at line 107 of file HcalLutMetadataPyWrapper.cc.

References PDRates::average, plotBeamSpotDB::first, i, j, dbtoconf::object, edm::second(), findQualityFiles::size, mathSSE::sqrt(), and contentValuesCheck::ss.

107  {
108  std::stringstream ss;
109 
110  unsigned int totalValues = 3;
111 
112  // get all containers with names
113  HcalLutMetadata::tAllContWithNames allContainers = object().getAllContainers();
114 
115  // initializing iterators
116  HcalLutMetadata::tAllContWithNames::const_iterator iter;
117  std::vector<HcalLutMetadatum>::const_iterator contIter;
118 
119  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
120 
121  typedef std::pair<std::pair< std::vector<float>, std::vector<float> >, int> tPora;
122 
123  std::vector<tPora> vec(allContainers.size());
124 
125  std::vector<tPora>::iterator iMaz = vec.begin();
126 
127  float sum = 0.0, average = 0.0, std_dev = 0.0, sqr_sum = 0.0;
128  int size = 0;
129 
130  //Run trough all 8 detector containers:
131  for (iter = allContainers.begin(), iMaz = vec.begin(); iter != allContainers.end(); ++iter, ++iMaz){
132  ss << "---------------------------------------------" << std::endl;
133  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
134  unsigned int j = 0;
135  iMaz->second = (*iter).second.size();
136  (iMaz->first).first = std::vector<float>(totalValues, 0.0);
137  (iMaz->first).second = std::vector<float>(totalValues, 0.0);
138  float capValue = 0.0;
139  //Run trough all values in container
140  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
141 
142  //Run trough all values in object:
143  for (unsigned int i = 0; i < totalValues; ++i){
144 
145  //GET VALUE:
146  switch(i){
147  case 0:
148  capValue = (*contIter).getRCalib();
149  break;
150  case 1:
151  capValue = (*contIter).getLutGranularity();
152  break;
153  case 2:
154  capValue = (*contIter).getOutputLutThreshold();
155  break;
156  default:
157  throw("Trying to access not existing value!");
158  }
159 
160  //capValue = (*contIter).getValue(i);
161  (iMaz->first).first[i] += capValue;
162  (iMaz->first).second[i]+= (capValue * capValue);
163  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
164  }
165  //ss << std::endl;
166  ++j;
167  }
168 
169  size = (*iMaz).second;
170  for (unsigned int i = 0; i < totalValues; ++i){
171  sum = ((*iMaz).first).first[i];
172  sqr_sum = ((*iMaz).first).second[i];
173  average = sum/size;
174  //here needs to take absolute value for sqrt:
175  std_dev = sqrt( fabs((sqr_sum / size) - (average * average)) );
176 
177  switch(i){
178  case 0:
179  ss << " LutMetadata RecHit calibration:"<< std::endl;
180  break;
181  case 1:
182  ss << " LutMetadata LUT granularity:"<< std::endl;
183  break;
184  case 2:
185  ss << " LutMetadata output LUT threshold :"<< std::endl;
186  break;
187  default:
188  throw("Trying to access not existing value!");
189  }
190 
191  ss << " Average: " << average << "; "<< std::endl;
192  ss << " Standart deviation: " << std_dev << "; " << std::endl;
193  }
194  }
195  //std::cout << ss.str();
196  return ss.str();
197  }
int i
Definition: DBlmapReader.cc:9
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
int j
Definition: DBlmapReader.cc:9
int average
Definition: PDRates.py:137
tuple size
Write out results.
template<>
std::string cond::PayLoadInspector< HcalQIEData >::summary ( void  ) const

Definition at line 117 of file HcalQIEDataPyWrapper.cc.

References plotBeamSpotDB::first, i, dbtoconf::object, hltrates_dqm_sourceclient-live_cfg::offset, edm::second(), slope, mathSSE::sqrt(), and contentValuesCheck::ss.

117  {
118  std::stringstream ss;
119  // get all containers with names
120  HcalQIEData::tAllContWithNames allContainers = object().getAllContainers();
121 
122  // initializing iterators
123  HcalQIEData::tAllContWithNames::const_iterator iter;
124  std::vector<HcalQIECoder>::const_iterator contIter;
125 
126  ss << "Total HCAL containers: " << allContainers.size() << std::endl;
127 
128  typedef std::pair<std::pair< float, float >, int> tPora;
129 
130  //std::vector<tPora> vMaz(allContainers.size());
131  //std::vector<tPora>::iterator iMaz = vMaz.begin();
132 
133  std::vector<tPora> vOffsets(allContainers.size());// for each container (total 8)
134  std::vector<tPora> vSlopes(allContainers.size());// for each container (total 8)
135 
136  std::vector<tPora>::iterator iOffset = vOffsets.begin();
137  std::vector<tPora>::iterator iSlope = vSlopes.begin();
138 
139  float offset = .0;
140  float slope = .0;
141 
142 
143  //Run trough all 8 detector containers:
144  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter, ++iOffset, ++iSlope){
145  iOffset->second = (*iter).second.size();// total number of values in detector
146  iSlope->second = (*iter).second.size();// total number of values in detector
147 
148  (iOffset->first).first = .0;
149  (iOffset->first).second = .0;
150  (iSlope->first).first = .0;
151  (iSlope->first).second = .0;
152 
153  //Run trough all values in container
154  unsigned int i = 0;
155  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
156 
157  //Run trough all values in object:
158  for (unsigned int fCapId = 0; fCapId < 4; ++fCapId){
159  for (unsigned int fRange = 0; fRange < 4; ++fRange){
160  offset = (*contIter).offset (fCapId, fRange);
161  (iOffset->first).first += offset;
162  (iOffset->first).second+= (offset * offset);
163 
164  slope = (*contIter).slope (fCapId, fRange);
165  (iSlope->first).first += slope;
166  (iSlope->first).second+= (slope * slope);
167  }
168  }
169  ++i;
170  //ss << "[" << i << "] " << capValue << ", " << (iMaz->first).first[i] << ", " << (iMaz->first).second[i] << "; ";
171  }
172  }
173  //ss << std::endl;
174 
175  //got all the values, now do the work:
176  iOffset = vOffsets.begin();
177  iSlope = vSlopes.begin();
178  float sumOffset = 0.0, averageOffset = 0.0, std_devOffset = 0.0, sqr_sumOffset = 0.0;
179  int sizeOffset = 0;
180 
181  float sumSlope = 0.0, averageSlope = 0.0, std_devSlope = 0.0, sqr_sumSlope = 0.0;
182  int sizeSlope = 0;
183 
184  sizeOffset = (*iOffset).second;
185  sizeSlope = (*iSlope).second;
186 
187 
188 
189  unsigned int i = 0;
190  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter, ++i, ++iSlope, ++iOffset){
191 
192  ss << "---------------------------------------------" << std::endl;
193  ss << "Detector: " << (*iter).first << "; Total values: "<< (*iter).second.size() << std::endl;
194  sumOffset = ((*iOffset).first).first;
195  sqr_sumOffset = ((*iOffset).first).second;
196  averageOffset = sumOffset/sizeOffset;
197  //here needs to take absolute value for sqrt:
198  std_devOffset = sqrt( fabs((sqr_sumOffset / sizeOffset) - (averageOffset * averageOffset)) );
199 
200  sumSlope = ((*iSlope).first).first;
201  sqr_sumSlope = ((*iSlope).first).second;
202  averageSlope = sumSlope/sizeSlope;
203  //here needs to take absolute value for sqrt:
204  std_devSlope = sqrt( fabs((sqr_sumSlope / sizeSlope) - (averageSlope * averageSlope)) );
205 
206  ss << " Offset: " << std::endl;
207  ss << " Average: " << averageOffset << "; "<< std::endl;
208  ss << " Standart deviation: " << std_devOffset << "; " << std::endl;
209  ss << " Slope: " << std::endl;
210  ss << " Average: " << averageSlope << "; "<< std::endl;
211  ss << " Standart deviation: " << std_devSlope << "; " << std::endl;
212  }
213  //std::cout << ss.str();
214  return ss.str();
215  }
int i
Definition: DBlmapReader.cc:9
static const double slope[3]
U second(std::pair< T, U > const &p)
T sqrt(T t)
Definition: SSEVec.h:48
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalPulseShapes >::summary ( void  ) const

Definition at line 156 of file EcalPulseShapesPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

156  {
157  std::stringstream ss;
158  EcalPulseShapesHelper helper;
159  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
160  return ss.str();
161  } // summary
template<>
std::string cond::PayLoadInspector< EcalDAQTowerStatus >::summary ( void  ) const

Definition at line 158 of file EcalDAQTowerStatusPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

158  {
159  std::stringstream ss;
160  EcalDAQTowerStatusHelper helper;
161  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
162  return ss.str();
163  }
template<>
std::string cond::PayLoadInspector< EcalPulseSymmCovariances >::summary ( void  ) const

Definition at line 160 of file EcalPulseSymmCovariancesPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

160  {
161  std::stringstream ss;
162  EcalPulseSymmCovariancesHelper helper;
163  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
164  return ss.str();
165  } // summary
template<>
std::string cond::PayLoadInspector< EcalFloatCondObjectContainer >::summary ( void  ) const

calculate mean and sigma

Definition at line 164 of file EcalFloatCondObjectContainerPyWrapper.cc.

References EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, dbtoconf::object, jetcorrextractor::sign(), contentValuesCheck::ss, EEDetId::validDetId(), and x().

164  {
165 
166  std::stringstream ss;
167 
168  const int kSides = 2;
169  const int kBarlRings = EBDetId::MAX_IETA;
170  const int kBarlWedges = EBDetId::MAX_IPHI;
171  const int kEndcWedgesX = EEDetId::IX_MAX;
172  const int kEndcWedgesY = EEDetId::IY_MAX;
173 
175 
176  float mean_x_EB=0;
177  float mean_xx_EB=0;
178  int num_x_EB=0;
179 
180  float mean_x_EE=0;
181  float mean_xx_EE=0;
182  int num_x_EE=0;
183 
184 
185  for (int sign=0; sign<kSides; sign++) {
186 
187  int thesign = sign==1 ? 1:-1;
188 
189  for (int ieta=0; ieta<kBarlRings; ieta++) {
190  for (int iphi=0; iphi<kBarlWedges; iphi++) {
191  EBDetId id((ieta+1)*thesign, iphi+1);
192  float x= object()[id.rawId()];
193  num_x_EB++;
194  mean_x_EB=mean_x_EB+x;
195  mean_xx_EB=mean_xx_EB+x*x;
196  }
197  }
198 
199  for (int ix=0; ix<kEndcWedgesX; ix++) {
200  for (int iy=0; iy<kEndcWedgesY; iy++) {
201  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
202  EEDetId id(ix+1,iy+1,thesign);
203  float x=object()[id.rawId()];
204  num_x_EE++;
205  mean_x_EE=mean_x_EE+x;
206  mean_xx_EE=mean_xx_EE+x*x;
207 
208  }//iy
209  }//ix
210 
211 
212  }
213 
214  mean_x_EB=mean_x_EB/num_x_EB;
215  mean_x_EE=mean_x_EE/num_x_EE;
216  mean_xx_EB=mean_xx_EB/num_x_EB;
217  mean_xx_EE=mean_xx_EE/num_x_EE;
218  float rms_EB=(mean_xx_EB-mean_x_EB*mean_x_EB);
219  float rms_EE=(mean_xx_EE-mean_x_EE*mean_x_EE);
220 
221  ss << "ECAL BARREL Mean: "<< mean_x_EB <<" RMS: "<< rms_EB << " Nchan: "<< num_x_EB<< std::endl
222  << "ECAL Endcap Mean: "<< mean_x_EE <<" RMS: "<< rms_EE << " Nchan: "<< num_x_EE<< std::endl ;
223 
224 
225  return ss.str();
226  }
static const int kBarlRings
double sign(double x)
static const int kSides
static const int kBarlWedges
static const int kEndcWedgesX
Class const & object() const
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< EcalTPGCrystalStatus >::summary ( void  ) const

Definition at line 172 of file EcalTPGCrystalStatusPyWrapper.cc.

References EEDetId::IX_MAX, EEDetId::IY_MAX, kBarlRings, kBarlWedges, kEndcWedgesX, kEndcWedgesY, kSides, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, jetcorrextractor::sign(), contentValuesCheck::ss, and EEDetId::validDetId().

172  {
173  std::stringstream ss;
174  // EcalTPGCrystalStatusHelper helper;
175  // ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
176  const int kSides = 2;
177  const int kBarlRings = EBDetId::MAX_IETA;
178  const int kBarlWedges = EBDetId::MAX_IPHI;
179  const int kEndcWedgesX = EEDetId::IX_MAX;
180  const int kEndcWedgesY = EEDetId::IY_MAX;
181 
182  int EB[2] = {0, 0}, EE[2] = {0, 0};
183  for (int sign=0; sign < kSides; sign++) {
184  int thesign = sign==1 ? 1:-1;
185 
186  for (int ieta=0; ieta<kBarlRings; ieta++) {
187  for (int iphi=0; iphi<kBarlWedges; iphi++) {
188  EBDetId id((ieta+1)*thesign, iphi+1);
189  if(object()[id.rawId()].getStatusCode() > 0) EB[sign]++;
190  } // iphi
191  } // ieta
192 
193  for (int ix=0; ix<kEndcWedgesX; ix++) {
194  for (int iy=0; iy<kEndcWedgesY; iy++) {
195  if (! EEDetId::validDetId(ix+1,iy+1,thesign)) continue;
196  EEDetId id(ix+1,iy+1,thesign);
197  if(object()[id.rawId()].getStatusCode() > 0) EE[sign]++;
198  } // iy
199  } // ix
200  } // side
201  ss << " number of masked Crystals EB- " << EB[0] << " EB+ " << EB[1]
202  << " EE- " << EE[0] << " EE+ " << EE[1] << std::endl;
203  return ss.str();
204  }
static const int kBarlRings
double sign(double x)
static const int kSides
static const int kBarlWedges
static const int kEndcWedgesX
static const int IX_MAX
Definition: EEDetId.h:302
static const int MAX_IPHI
Definition: EBDetId.h:144
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
static const int MAX_IETA
Definition: EBDetId.h:143
static const int IY_MAX
Definition: EEDetId.h:306
static const int kEndcWedgesY
template<>
std::string cond::PayLoadInspector< EcalPedestals >::summary ( void  ) const

Definition at line 174 of file EcalPedestalsPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

174  {
175  std::stringstream ss;
176  EcalPedestalsHelper helper;
177  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
178  return ss.str();
179  } // summary
template<>
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(), AlCaHLTBitMon_ParallelJobs::p, HLT_25ns14e33_v3_cff::region, relativeConstraints::ring, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), relativeConstraints::station, AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().

177  {
178 
179  std::stringstream ss;
180 
181  //BEGIN OF NEW DB-SESSION PART
182  //hardcoded values
183  std::string authPath="/afs/cern.ch/cms/DB/conddb";
184  std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
185 
186  //frontend sends token instead of filename
187  std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
188 
189  //make connection object
190  DbConnection dbConn;
191 
192  //set in configuration object authentication path
193  dbConn.configuration().setAuthenticationPath(authPath);
194  dbConn.configure();
195 
196  //create session object from connection
197  DbSession dbSes=dbConn.createSession();
198 
199  //try to make connection
200  dbSes.open(conString,true);
201 
202  //start a transaction (true=readOnly)
203  //cond::DbTransaction dbTr=
204  dbSes.transaction().start(true);
205 
206  //get the actual object
207  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
208  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
209 
210  //we have the object...
211  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
212  //END OF NEW DB-SESSION PART
213 
214  std::vector<RPCObImon::I_Item> const & imon = object().ObImon_rpc;
215 
216  ss<<"DetID\t\t\tI(uA)\tTime\tDay\n";
217  for(unsigned int i = 0; i < imon.size(); ++i ){
218  for(unsigned int p = 0; p < pvssCont.size(); ++p){
219  if(imon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue;
220  RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1);
221  RPCGeomServ rGS(rpcId);
222  std::string chName(rGS.name().substr(0,rGS.name().find("_Backward")));
223  ss <<chName <<"\t"<<imon[i].value<<"\t"<<imon[i].time<<"\t"<<imon[i].day<<"\n";
224  }
225  }
226 
227  //close db session
228  dbSes.close();
229 
230  return ss.str();
231  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
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(), AlCaHLTBitMon_ParallelJobs::p, HLT_25ns14e33_v3_cff::region, relativeConstraints::ring, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), relativeConstraints::station, AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().

180  {
181  std::stringstream ss;
182 
183  //hardcoded values
184  std::string authPath="/afs/cern.ch/cms/DB/conddb";
185  std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
186 
187  //frontend sends token instead of filename
188  std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
189 
190  //make connection object
191  DbConnection dbConn;
192 
193  //set in configuration object authentication path
194  dbConn.configuration().setAuthenticationPath(authPath);
195  dbConn.configure();
196 
197  //create session object from connection
198  DbSession dbSes=dbConn.createSession();
199 
200  //try to make connection
201  dbSes.open(conString,true);
202 
203  //start a transaction (true=readOnly)
204  dbSes.transaction().start(true);
205 
206  //get the actual object
207  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
208  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
209 
210  //we have the object...
211  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
212 
213  std::vector<RPCObTemp::T_Item> const & tmon = object().ObTemp_rpc;
214 
215  ss <<"DetID\t\t"<<"T(C)\t"<<"Time\t"<<"Day\n";
216  for(unsigned int i = 0; i < tmon.size(); ++i ){
217  for(unsigned int p = 0; p < pvssCont.size(); ++p){
218  if(tmon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=4 || pvssCont[p].region!=0)continue;
219  RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1);
220  RPCGeomServ rGS(rpcId);
221  std::string chName(rGS.name().substr(0,rGS.name().find("_Backward")));
222  ss <<chName <<"\t"<<tmon[i].value<<"\t"<<tmon[i].time<<"\t"<<tmon[i].day<<"\n";
223  }
224  }
225 
226  dbSes.close();
227 
228  return ss.str();
229 
230  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< EcalDCSTowerStatus >::summary ( void  ) const

Definition at line 182 of file EcalDCSTowerStatusPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

182  {
183  std::stringstream ss;
185  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
186  return ss.str();
187  }
template<>
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(), AlCaHLTBitMon_ParallelJobs::p, HLT_25ns14e33_v3_cff::region, relativeConstraints::ring, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), relativeConstraints::station, AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().

200  {
201 
202  //hardcoded values
203  std::string authPath="/afs/cern.ch/cms/DB/conddb";
204  std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
205 
206  //frontend sends token instead of filename
207  std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
208 
209  //make connection object
210  DbConnection dbConn;
211 
212  //set in configuration object authentication path
213  dbConn.configuration().setAuthenticationPath(authPath);
214  dbConn.configure();
215 
216  //create session object from connection
217  DbSession dbSes=dbConn.createSession();
218 
219  //try to make connection
220  dbSes.open(conString,true);
221 
222  //start a transaction (true=readOnly)
223  dbSes.transaction().start(true);
224 
225  //get the actual object
226  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
227  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
228 
229  //we have the object...
230  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
231 
232  std::stringstream ss;
233 
234  std::vector<RPCObVmon::V_Item> const & vmon = object().ObVmon_rpc;
235 
236  ss <<"DetID\t\t"<<"V(V)\t"<<"Time\t"<<"Day\n";
237  for(unsigned int i = 0; i < vmon.size(); ++i ){
238  for(unsigned int p = 0; p < pvssCont.size(); ++p){
239  if(vmon[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue;
240  RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1);
241  RPCGeomServ rGS(rpcId);
242  std::string chName(rGS.name().substr(0,rGS.name().find("_Backward")));
243  ss <<chName <<"\t"<<vmon[i].value<<"\t"<<vmon[i].time<<"\t"<<vmon[i].day<<"\n";
244  }
245  }
246 
247  dbSes.close();
248 
249  return ss.str();
250  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
Class const & object() const
template<>
std::string cond::PayLoadInspector< RPCObGas >::summary ( void  ) const

Definition at line 200 of file RPCObGasPyWrapper.cc.

200  {
201 
202 // std::stringstream ss;
203 
204 // //BEGIN OF NEW DB-SESSION PART
205 // //hardcoded values
206 // std::string authPath="/afs/cern.ch/cms/DB/conddb";
207 // std::string conString="oracle://cms_orcoff_prod/CMS_COND_31X_RPC";
208 
209 // //frontend sends token instead of filename
210 // std::string token="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
211 
212 // //make connection object
213 // DbConnection dbConn;
214 
215 // //set in configuration object authentication path
216 // dbConn.configuration().setAuthenticationPath(authPath);
217 // dbConn.configure();
218 
219 // //create session object from connection
220 // DbSession dbSes=dbConn.createSession();
221 
222 // //try to make connection
223 // dbSes.open(conString,true);
224 
225 // //start a transaction (true=readOnly)
226 // //cond::DbTransaction dbTr=
227 // dbSes.transaction().start(true);
228 
229 // //get the actual object
230 // boost::shared_ptr<RPCObPVSSmap> pvssPtr;
231 // pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(token);
232 
233 // //we have the object...
234 // std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc;
235 // //END OF NEW DB-SESSION PART
236 
237 // std::vector<RPCObGas::Item> const & gas = object().ObGas_rpc;
238 
239 // ss<<"DetID\t\t\tI(uA)\tTime\tDay\n";
240 // for(unsigned int i = 0; i < gas.size(); ++i ){
241 // for(unsigned int p = 0; p < pvssCont.size(); ++p){
242 // if(gas[i].dpid!=pvssCont[p].dpid || pvssCont[p].suptype!=0 || pvssCont[p].region!=0)continue;
243 // RPCDetId rpcId(pvssCont[p].region,pvssCont[p].ring,pvssCont[p].station,pvssCont[p].sector,pvssCont[p].layer,pvssCont[p].subsector,1);
244 // RPCGeomServ rGS(rpcId);
245 // std::string chName(rGS.name().substr(0,rGS.name().find("_Backward")));
246 // ss <<chName <<"\t"<<gas[i].value<<"\t"<<gas[i].time<<"\t"<<gas[i].day<<"\n";
247 // }
248 // }
249 
250 // //close db session
251 // dbSes.close();
252 
253 // return ss.str();
254 
255  return "";
256 
257  }
template<>
std::string cond::PayLoadInspector< EcalDQMChannelStatus >::summary ( void  ) const

Definition at line 202 of file EcalDQMChannelStatusPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

202  {
203  std::stringstream ss;
204  EcalDQMChannelStatusHelper helper;
205  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
206  return ss.str();
207  }
template<>
std::string cond::PayLoadInspector< EcalDQMTowerStatus >::summary ( void  ) const

Definition at line 206 of file EcalDQMTowerStatusPyWrapper.cc.

References EcalPyWrapperHelper< T >::printBarrelsEndcaps(), and contentValuesCheck::ss.

206  {
207  std::stringstream ss;
208  EcalDQMTowerStatusHelper helper;
209  ss << helper.printBarrelsEndcaps(object().barrelItems(), object().endcapItems());
210  return ss.str();
211  }
template<>
std::string cond::PayLoadInspector< EcalChannelStatus >::summary ( void  ) const

Definition at line 292 of file EcalChannelStatusPyWrapper.cc.

References cond::ecalcond::bad(), cond::getTotalErrors(), dbtoconf::object, and contentValuesCheck::ss.

292  {
293  const std::vector<EcalChannelStatusCode> barrelItems = object().barrelItems();
294  const std::vector<EcalChannelStatusCode> endcapItems = object().endcapItems();
295  std::stringstream ss;
296 
297  ss << std::endl << "------Barrel Items: " << std::endl;
298  ss << "---Total: " << barrelItems.size() << std::endl;
299  ss << "---With errors: " << ecalcond::bad(barrelItems) << std::endl;
300  ss << getTotalErrors(barrelItems);
301 
302  ss << std::endl << "------Endcap Items: " << std::endl;
303  ss << "---Total: " << endcapItems.size() << std::endl;
304  ss << "---With errors: " << ecalcond::bad(endcapItems) << std::endl;
305  ss << getTotalErrors(endcapItems);
306 
307  //for (std::vector<EcalChannelStatusCode>::const_iterator barIter = barrelItems.begin(); barIter != barrelItems.end(); ++barIter){
308  // stcode = barIter->getStatusCode();
309  // if (stcode !=0){
310  // barrelId = EBDetId::detIdFromDenseIndex(count);
311  // ss << "Id[" << count << "] RawId:[" << barrelId.rawId() << "]"
312  // << "; Ieta:" << barrelId.ieta() <<
313  // "; Iphi:" << barrelId.iphi()<<
314  // "; Ism:" << barrelId.ism()<<
315  // "; Ic:" << barrelId.ic()<<
316  // "; Errors:" << StCodeToStr(barIter->getStatusCode(), vBarrWithErr, barrelId);
317  // }
318  // ++count;
319  //}
320 
321  //EEDetId endcapId;
322  //ss << std::endl << "------Endcap Items: " << std::endl;
323  //ss << "---Total: " << endcapItems.size() << std::endl;
324  //ss << "---With errors: " << ecalcond::bad(endcapItems) << std::endl;
325  //count = 0;
326  //for (std::vector<EcalChannelStatusCode>::const_iterator endcapIter = endcapItems.begin(); endcapIter != endcapItems.end(); ++endcapIter){
327  // stcode = endcapIter->getStatusCode();
328  // if (stcode !=0){
329  // endcapId = EEDetId::detIdFromDenseIndex(count);
330  // ss << "Id[" << count << "] RawId:[" << endcapId.rawId() << "]"
331  // << "; Zside:" << endcapId.zside() <<
332  // "; Ix:" << endcapId.ix()<<
333  // "; Iy:" << endcapId.iy()<<
334  // "; Errors:" << StCodeToStr(endcapIter->getStatusCode());
335  // }
336  // ++count;
337  //}
338 
339  //ss << StCodeToStr(0xFFF09);
340 
341  return ss.str();
342  }
int bad(Items const &cont)
Class const & object() const
std::string getTotalErrors(const std::vector< EcalChannelStatusCode > &vItems)
template<typename DataT >
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 119 of file PayLoadInspector.h.

121  {return "";}
template<>
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.

References contentValuesCheck::ss.

186  {
187 
188  std::stringstream ss;
189  std::vector<std::string>::const_iterator iStr;
190  ss << "Strings got: " << std::endl;
191  for (iStr = vStrings.begin(); iStr != vStrings.end(); ++ iStr){
192  ss << *iStr << std::endl;
193  }
194  return ss.str();
195  }
template<>
std::string cond::PayLoadInspector< BeamSpotObjects >::trend_plot ( std::string const &  filename,
std::string const &  opt_string,
std::vector< int > const &  ints,
std::vector< float > const &  floats,
std::vector< std::string > const &  strings 
) const

Definition at line 61 of file BeamSpotObjectsPyWrapper.cc.

References builder_last_value_cfg::authPath, svgfig::canvas(), cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), create_public_lumi_plots::leg, bookConverter::max, min(), cond::DbSession::open(), query::result, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().

66  {
67  std::stringstream ss("");
68 
69  if (strings.size() < 2)
70  return ("Error! Not enough data for initializing connection for making plots! (from \
71  template<>\
72  std::string PayLoadInspector<BeamSpotObjects>::trend_plot)");
73 
74  std::vector<std::string>::const_iterator iter_beg = strings.begin();
75 
76  std::string conString= (*iter_beg);
77  ++iter_beg;
78  std::string authPath = (*iter_beg);
79  ++iter_beg;
80 
81  //make connection object
82  DbConnection dbConn;
83 
84  //set in configuration object authentication path
85  dbConn.configuration().setAuthenticationPath(authPath);
86  dbConn.configure();
87 
88  //create session object from connection
89  DbSession dbSes=dbConn.createSession();
90 
91  //try to make connection
92  dbSes.open(conString,true);
93 
94  //start a transaction (true=readOnly)
95  dbSes.transaction().start(true);
96 
97  //get the actual object
98  boost::shared_ptr<BeamSpotObjects> ptrBeamSpot;
99 
100  //iter_beg now stands on first token in the vector
101  std::string token;
102 
103  std::vector<float> vecX;
104  std::vector<float> vecY;
105  std::vector<float> vecZ;
106  for (std::vector<float>::const_iterator iter_float = floats.begin() ;iter_beg != strings.end();++iter_beg, ++iter_float){
107  token = (*iter_beg);
108  //std::cout << token << " ";
109 
110  ptrBeamSpot = dbSes.getTypedObject<BeamSpotObjects>(token);
111 
112  //get data from the objects:
113  vecX.push_back(ptrBeamSpot->GetX());
114  vecY.push_back(ptrBeamSpot->GetY());
115  vecZ.push_back(ptrBeamSpot->GetZ());
116  std::cout << "since: "<<(*iter_float)<< " X: "<< ptrBeamSpot->GetX() << " Y: "<< ptrBeamSpot->GetY() << " Z: " << ptrBeamSpot->GetZ() << std::endl;
117 
118 
119  }
120 
121  //close db session
122  dbSes.close();
123 
124  TCanvas canvas("iC","iC",1200,1200);
125  //canvas.UseCurrentStyle();
126  //gStyle->SetPalette(1);
127  std::cout << *(floats.end() -1) << " " << *(floats.begin());
128  float max = *(floats.end() -1);
129  float min = *(floats.begin());
130 
131  unsigned int lineWidth = 2;
132  unsigned int startColor = 2;
133 
134  float result = ((max - min) / max) ;
135  if ( result >= 0.1 ){
136  canvas.SetLogx(1);
137  }
138  std::cout << "result: " << result << std::endl;
139 
140 
141  //1)
142  TGraph graphdataX(vecX.size(), static_cast<const float *>(&floats[0]), static_cast<const float *>(&vecX[0]));
143  //graphdataX.GetXaxis()->SetRangeUser(*(floats.begin()),*(floats.end() -1));
144  //graphdataX.GetXaxis()-> SetLabelSize(0.03);
145  graphdataX.SetLineColor(startColor++);
146  graphdataX.SetLineWidth(lineWidth);
147 
148  //2)
149  TGraph graphdataY(vecY.size(), static_cast<const float *>(&floats[0]), static_cast<const float *>(&vecY[0]));
150  //graphdataY.GetXaxis()->SetRangeUser(*(floats.begin()),*(floats.end() -1));
151  //graphdataY.GetXaxis()-> SetLabelSize(0.03);
152  graphdataY.SetLineColor(startColor++);
153  graphdataY.SetLineWidth(lineWidth);
154 
155  //3)
156  TGraph graphdataZ(vecZ.size(), static_cast<const float *>(&floats[0]), static_cast<const float *>(&vecZ[0]));
157  //graphdataZ.GetXaxis()->SetRangeUser(*(floats.begin()),*(floats.end() -1));
158  //graphdataZ.GetXaxis()-> SetLabelSize(0.03);
159  graphdataZ.SetLineColor(startColor++);
160  graphdataZ.SetLineWidth(lineWidth);
161 
162 
163  TMultiGraph mg;
164  std::stringstream plotTitle;
165  plotTitle.precision(0);
166  plotTitle << std::fixed;
167  //plotTitle << "BeamSpot trend graph. X0 = black, Y0 = red, Z0 = green; since(first="
168  plotTitle << "BeamSpot trend graph (first="
169  <<(double)min
170  << ", last="
171  << (double) max
172  << ", total="
173  << floats.size()
174  <<");since;value";
175  mg.SetTitle( plotTitle.str().c_str());
176 
177  //graphdataX.GetXaxis()->SetBinLabel(2,"mylabel");
178  //graphdataY.GetXaxis()->SetBinLabel(2,"mylabel");
179  //graphdataZ.GetXaxis()->SetBinLabel(2,"mylabel");
180 
181  mg.Add(&graphdataX);
182  mg.Add(&graphdataY);
183  mg.Add(&graphdataZ);
184 
185 
186  //float size1 = mg.GetXaxis()-> GetBinWidth();
187  //std::cout <<" BinWidth: " << size1 << std::endl;
188 
189  mg.Draw("LA*");
190 
191  TLegend leg(0.7,0.7,0.9,0.9,"Beam Spot Legend");
192  leg.AddEntry(&graphdataX,"X_{0}","lpf");
193  leg.AddEntry(&graphdataY,"Y_{0}","lpf");
194  leg.AddEntry(&graphdataZ,"Z_{0}","lpf");
195 
196  leg.Draw();
197 
198  ss.str("");
199  ss << filename << ".png";
200  canvas.SaveAs((ss.str()).c_str());
201  return ss.str();
202  }
def canvas
Definition: svgfig.py:481
tuple result
Definition: query.py:137
T min(T a, T b)
Definition: MathUtil.h:58
tuple cout
Definition: gather_cfg.py:121
tuple size
Write out results.
template<typename DataT >
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 114 of file PayLoadInspector.h.

116  {return "";}
template<>
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.

428  {
429 
430 // std::stringstream ss("");
431 
432 // if(strings.size()<2)
433 // return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)");
434 
435 // std::vector<std::string>::const_iterator strIt=strings.begin();
436 
437 // std::string conString=(*strIt);strIt++;
438 // std::string authPath=(*strIt);strIt++;
439 
440 // //BEGIN OF NEW DB-SESSION PART
441 
442 // //make connection object
443 // DbConnection dbConn;
444 
445 // //set in configuration object authentication path
446 // dbConn.configuration().setAuthenticationPath(authPath);
447 // dbConn.configure();
448 
449 // //create session object from connection
450 // DbSession dbSes=dbConn.createSession();
451 
452 // //try to make connection
453 // dbSes.open(conString,true);
454 
455 // //start a transaction (true=readOnly)
456 // dbSes.transaction().start(true);
457 
458 // std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
459 // //get the actual object
460 // boost::shared_ptr<RPCObGas> gasPtr;
461 // boost::shared_ptr<RPCObPVSSmap> pvssPtr;
462 // pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken);
463 
464 // //we get the objects...
465 // std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero;
466 
467 // for(unsigned int p=0;p<pvssCont.size();p++){
468 // if(pvssCont[p].suptype!=0)
469 // pvssZero.push_back(pvssCont[p]);
470 // }
471 
472 // std::string token;
473 // std::vector<float> vecI;vecI.assign(floats.size(),0.);
474 // int elCount(0);
475 
476 // for(;strIt!=strings.end();++strIt){
477 
478 // token=(*strIt);
479 // gasPtr=dbSes.getTypedObject<RPCObGas>(token);
480 // std::vector<RPCObGas::Item> const & gas = gasPtr->ObGas_rpc;
481 
482 // float iCount(0.);
483 // for(unsigned int i=0;i<gas.size();i++){
484 // for(unsigned int p=0;p<pvssZero.size();p++){
485 // if(gas[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue;
486 // iCount++;
487 // vecI[elCount]+=gas[i].value;
488 // }
489 // }
490 // if(iCount!=0)
491 // vecI[elCount]/=iCount;
492 // elCount++;
493 // }
494 
495 // //END OF NEW DB-SESSION PART
496 
497 // dbSes.close();
498 
499 // std::vector<unsigned long long> lngs ;
500 // for(std::vector<float>::const_iterator fIt=floats.begin();fIt!=floats.end();fIt++){
501 // lngs.push_back((unsigned long long)*fIt);
502 // // std::cout<<*fIt<<" "<<(long double)*fIt<<" "<<(unsigned long long)*fIt<<" "<<vecI[0]<<" "<<(unsigned long long)vecI[0]<<std::endl;
503 // }
504 // std::vector<unsigned long long> const longs=lngs;
505 
506 // // TGraph trend(vecI.size(),static_cast<const float *>(&longs[0]),static_cast<const float *>(&vecI[0]));
507 // std::cout<<(int)longs[longs.size()-1]-longs[0]<<std::endl;
508 // TH1F trend("trend","trend",(int)longs[longs.size()-1]-longs[0],longs[0],longs[longs.size()-1]);
509 // //TH1F trend("trend","trend",floats.size(),static_cast<const float* >(&floats[0]));
510 // trend.GetXaxis()->SetTimeDisplay(1);
511 // trend.GetXaxis()->SetTimeFormat("%d/%m/%y %H:%M");
512 // trend.SetLineColor(2);
513 // trend.SetLineWidth(2);
514 // trend.GetYaxis()->SetTitle("<I> (#muA)");
515 
516 // std::cout<<"Bins "<<trend.GetNbinsX()<<std::endl;
517 // for(unsigned int fill=0;fill<=longs.size();fill++){
518 // trend.SetBinContent(longs[fill]-longs[0],vecI[fill]);
519 // std::cout<<fill<<" "<<floats[fill]<<" "<<longs[fill]-longs[0]<<" "<<vecI[fill]<<std::endl;
520 // }
521 
522 // float min(*(floats.begin())),max(*(floats.end()-1));
523 // float scaleToggle((max-min)/max);
524 // TCanvas c("Itrend","Itrend",1200,700);
525 
526 // if(scaleToggle>=0.1)
527 // c.SetLogx(1);
528 
529 // trend.Draw(/*"LA*"*/);
530 
531 // TLegend leg(0.65,0.91,0.99,0.99);
532 // leg.AddEntry(&trend,"Gas trend","lpf");
533 
534 // leg.Draw("");
535 
536 // ss.str("");
537 // ss<<filename<<".C";
538 // c.SaveAs((ss.str()).c_str());
539 
540 // return ss.str();
541 
542  return "";
543 
544  }
template<>
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, EnergyCorrector::c, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), gather_cfg::cout, cond::DbConnection::createSession(), lumiContext::fill, cond::DbSession::getTypedObject(), i, create_public_lumi_plots::leg, bookConverter::max, min(), RPCObPVSSmap::ObIDMap_rpc, RPCObImon::ObImon_rpc, cond::DbSession::open(), AlCaHLTBitMon_ParallelJobs::p, HLT_25ns14e33_v3_cff::region, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().

432  {
433 
434  std::stringstream ss("");
435 
436  if(strings.size()<2)
437  return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)");
438 
439  std::vector<std::string>::const_iterator strIt=strings.begin();
440 
441  std::string conString=(*strIt);strIt++;
442  std::string authPath=(*strIt);strIt++;
443 
444  //BEGIN OF NEW DB-SESSION PART
445 
446  //make connection object
447  DbConnection dbConn;
448 
449  //set in configuration object authentication path
450  dbConn.configuration().setAuthenticationPath(authPath);
451  dbConn.configure();
452 
453  //create session object from connection
454  DbSession dbSes=dbConn.createSession();
455 
456  //try to make connection
457  dbSes.open(conString,true);
458 
459  //start a transaction (true=readOnly)
460  dbSes.transaction().start(true);
461 
462  std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
463  //get the actual object
464  boost::shared_ptr<RPCObImon> imonPtr;
465  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
466  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken);
467 
468  //we get the objects...
469  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero;
470 
471  for(unsigned int p=0;p<pvssCont.size();p++){
472  if(pvssCont[p].suptype!=0)
473  pvssZero.push_back(pvssCont[p]);
474  }
475 
476  std::string token;
477  std::vector<float> vecI;vecI.assign(floats.size(),0.);
478  int elCount(0);
479 
480  for(;strIt!=strings.end();++strIt){
481 
482  token=(*strIt);
483  imonPtr=dbSes.getTypedObject<RPCObImon>(token);
484  std::vector<RPCObImon::I_Item> const & imon = imonPtr->ObImon_rpc;
485 
486  float iCount(0.);
487  for(unsigned int i=0;i<imon.size();i++){
488  for(unsigned int p=0;p<pvssZero.size();p++){
489  if(imon[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue;
490  iCount++;
491  vecI[elCount]+=imon[i].value;
492  }
493  }
494  if(iCount!=0)
495  vecI[elCount]/=iCount;
496  elCount++;
497  }
498 
499  //END OF NEW DB-SESSION PART
500 
501  dbSes.close();
502 
503  std::vector<unsigned long long> lngs ;
504  for(std::vector<float>::const_iterator fIt=floats.begin();fIt!=floats.end();fIt++){
505  lngs.push_back((unsigned long long)*fIt);
506  // std::cout<<*fIt<<" "<<(long double)*fIt<<" "<<(unsigned long long)*fIt<<" "<<vecI[0]<<" "<<(unsigned long long)vecI[0]<<std::endl;
507  }
508  std::vector<unsigned long long> const longs=lngs;
509 
510  // TGraph trend(vecI.size(),static_cast<const float *>(&longs[0]),static_cast<const float *>(&vecI[0]));
511  std::cout<<(int)longs[longs.size()-1]-longs[0]<<std::endl;
512  TH1F trend("trend","trend",(int)longs[longs.size()-1]-longs[0],longs[0],longs[longs.size()-1]);
513  //TH1F trend("trend","trend",floats.size(),static_cast<const float* >(&floats[0]));
514  trend.GetXaxis()->SetTimeDisplay(1);
515  trend.GetXaxis()->SetTimeFormat("%d/%m/%y %H:%M");
516  trend.SetLineColor(2);
517  trend.SetLineWidth(2);
518  trend.GetYaxis()->SetTitle("<I> (#muA)");
519 
520  std::cout<<"Bins "<<trend.GetNbinsX()<<std::endl;
521  for(unsigned int fill=0;fill<=longs.size();fill++){
522  trend.SetBinContent(longs[fill]-longs[0],vecI[fill]);
523  std::cout<<fill<<" "<<floats[fill]<<" "<<longs[fill]-longs[0]<<" "<<vecI[fill]<<std::endl;
524  }
525 
526  float min(*(floats.begin())),max(*(floats.end()-1));
527  float scaleToggle((max-min)/max);
528  TCanvas c("Itrend","Itrend",1200,700);
529 
530  if(scaleToggle>=0.1)
531  c.SetLogx(1);
532 
533  trend.Draw(/*"LA*"*/);
534 
535  TLegend leg(0.65,0.91,0.99,0.99);
536  leg.AddEntry(&trend,"Imon trend","lpf");
537 
538  leg.Draw("");
539 
540  ss.str("");
541  ss<<filename<<".C";
542  c.SaveAs((ss.str()).c_str());
543 
544  return ss.str();
545 
546  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
string fill
Definition: lumiContext.py:319
T min(T a, T b)
Definition: MathUtil.h:58
std::vector< I_Item > ObImon_rpc
Definition: RPCObCond.h:27
tuple filename
Definition: lut2db_cfg.py:20
tuple cout
Definition: gather_cfg.py:121
template<>
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, EnergyCorrector::c, cond::DbSession::close(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), cond::DbSession::getTypedObject(), i, create_public_lumi_plots::leg, bookConverter::max, min(), RPCObPVSSmap::ObIDMap_rpc, RPCObVmon::ObVmon_rpc, cond::DbSession::open(), AlCaHLTBitMon_ParallelJobs::p, HLT_25ns14e33_v3_cff::region, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::DbSession::transaction().

451  {
452 
453  std::stringstream ss("");
454 
455  if(strings.size()<2)
456  return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)");
457 
458  std::vector<std::string>::const_iterator strIt=strings.begin();
459 
460  std::string conString=(*strIt);strIt++;
461  std::string authPath=(*strIt);strIt++;
462 
463  //BEGIN OF NEW DB-SESSION PART
464 
465  //make connection object
466  DbConnection dbConn;
467 
468  //set in configuration object authentication path
469  dbConn.configuration().setAuthenticationPath(authPath);
470  dbConn.configure();
471 
472  //create session object from connection
473  DbSession dbSes=dbConn.createSession();
474 
475  //try to make connection
476  dbSes.open(conString,true);
477 
478  //start a transaction (true=readOnly)
479  dbSes.transaction().start(true);
480 
481  std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
482  //get the actual object
483  boost::shared_ptr<RPCObVmon> vmonPtr;
484  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
485  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken);
486 
487  //we get the objects...
488  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero;
489 
490  for(unsigned int p=0;p<pvssCont.size();p++){
491  if(pvssCont[p].suptype!=0)
492  pvssZero.push_back(pvssCont[p]);
493  }
494 
495  std::string token;
496  std::vector<float> vecI;vecI.assign(floats.size(),0.);
497  int elCount(0);
498 
499  for(;strIt!=strings.end();++strIt){
500 
501  token=(*strIt);
502  vmonPtr=dbSes.getTypedObject<RPCObVmon>(token);
503  std::vector<RPCObVmon::V_Item> const & vmon = vmonPtr->ObVmon_rpc;
504 
505  float iCount(0.);
506  for(unsigned int i=0;i<vmon.size();i++){
507  for(unsigned int p=0;p<pvssZero.size();p++){
508  if(vmon[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue;
509  iCount++;
510  vecI[elCount]+=vmon[i].value;
511  }
512  }
513  if(iCount!=0)
514  vecI[elCount]/=iCount;
515  elCount++;
516  }
517 
518  //END OF NEW DB-SESSION PART
519 
520  dbSes.close();
521 
522  TGraph trend(vecI.size(),static_cast<const float *>(&floats[0]),static_cast<const float *>(&vecI[0]));
523  trend.SetLineColor(2);
524  trend.SetLineWidth(2);
525  trend.GetYaxis()->SetTitle("<V> (V)");
526 
527  float min(*(floats.begin())),max(*(floats.end()-1));
528  float scaleToggle((max-min)/max);
529  TCanvas c("Itrend","Itrend",1200,700);
530 
531  if(scaleToggle>=0.1)
532  c.SetLogx(1);
533 
534  trend.Draw("LA*");
535 
536  TLegend leg(0.65,0.91,0.99,0.99);
537  leg.AddEntry(&trend,"Vmon trend","lpf");
538 
539  leg.Draw("");
540 
541  ss.str("");
542  ss<<filename<<".C";
543  c.SaveAs((ss.str()).c_str());
544 
545  return ss.str();
546 
547  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9
std::vector< V_Item > ObVmon_rpc
Definition: RPCObCond.h:44
T min(T a, T b)
Definition: MathUtil.h:58
tuple filename
Definition: lut2db_cfg.py:20
template<>
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(), cond::DbSession::getTypedObject(), i, RPCObPVSSmap::ObIDMap_rpc, cond::DbSession::open(), AlCaHLTBitMon_ParallelJobs::p, HLT_25ns14e33_v3_cff::region, cond::DbConnectionConfiguration::setAuthenticationPath(), contentValuesCheck::ss, cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, and cond::DbSession::transaction().

455  {
456 
457  std::stringstream ss("");
458 
459  if(strings.size()<2)
460  return ("Error!Not enough data for initializing connection for making plots!(from template<> std::string PayLoadInspector<BeamSpotObjects>::trend_plot)");
461 
462  std::vector<std::string>::const_iterator strIt=strings.begin();
463 
464  std::string conString=(*strIt);strIt++;
465  std::string authPath=(*strIt);strIt++;
466 
467  //BEGIN OF NEW DB-SESSION PART
468 
469  //make connection object
470  DbConnection dbConn;
471 
472  //set in configuration object authentication path
473  dbConn.configuration().setAuthenticationPath(authPath);
474  dbConn.configure();
475 
476  //create session object from connection
477  DbSession dbSes=dbConn.createSession();
478 
479  //try to make connection
480  dbSes.open(conString,true);
481 
482  //start a transaction (true=readOnly)
483  dbSes.transaction().start(true);
484 
485  std::string pvssToken="[DB=00000000-0000-0000-0000-000000000000][CNT=RPCObPVSSmap][CLID=53B2D2D9-1F4E-9CA9-4D71-FFCCA123A454][TECH=00000B01][OID=0000000C-00000000]";
486  //get the actual object
487  boost::shared_ptr<RPCObTemp> tempPtr;
488  boost::shared_ptr<RPCObPVSSmap> pvssPtr;
489  pvssPtr=dbSes.getTypedObject<RPCObPVSSmap>(pvssToken);
490 
491  //we get the objects...
492  std::vector<RPCObPVSSmap::Item> pvssCont=pvssPtr->ObIDMap_rpc,pvssZero;
493 
494  for(unsigned int p=0;p<pvssCont.size();p++){
495  if(pvssCont[p].suptype!=4)
496  pvssZero.push_back(pvssCont[p]);
497  }
498 
499  std::string token;
500  std::vector<float> vecI;vecI.assign(floats.size(),0.);
501  int elCount(0);
502 
503  for(;strIt!=strings.end();++strIt){
504 
505  token=(*strIt);
506  tempPtr=dbSes.getTypedObject<RPCObTemp>(token);
507  std::vector<RPCObTemp::T_Item> const & temp = tempPtr->ObTemp_rpc;
508 
509  float iCount(0.);
510  for(unsigned int i=0;i<temp.size();i++){
511  for(unsigned int p=0;p<pvssZero.size();p++){
512  if(temp[i].dpid!=pvssZero[p].dpid || pvssZero[p].region!=0)continue;
513  iCount++;
514  vecI[elCount]+=temp[i].value;
515  }
516  }
517  if(iCount!=0)
518  vecI[elCount]/=iCount;
519  elCount++;
520  }
521 
522  //END OF NEW DB-SESSION PART
523 
524  dbSes.close();
525 
526  return ss.str();
527 
528  }
std::vector< Item > ObIDMap_rpc
Definition: RPCObPVSSmap.h:34
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

template<typename DataT >
ora::Object cond::PayLoadInspector< DataT >::m_object
private
template<typename DataT >
cond::DbSession cond::PayLoadInspector< DataT >::m_session
private

Definition at line 148 of file PayLoadInspector.h.

Referenced by cond::PayLoadInspector< DataT >::load().

template<typename DataT >
cond::Time_t cond::PayLoadInspector< DataT >::m_since
private
template<typename DataT >
std::string cond::PayLoadInspector< DataT >::m_token
private