CMS 3D CMS Logo

Enumerations | Functions
edm::writeParameterValue Namespace Reference

Enumerations

enum  ValueFormat { CFI, DOC }
 

Functions

void formatDouble (double value, std::string &result)
 
bool hasNestedContent (int const &value)
 
bool hasNestedContent (std::vector< int > const &value)
 
bool hasNestedContent (unsigned const &value)
 
bool hasNestedContent (std::vector< unsigned > const &value)
 
bool hasNestedContent (long long const &value)
 
bool hasNestedContent (std::vector< long long > const &value)
 
bool hasNestedContent (unsigned long long const &value)
 
bool hasNestedContent (std::vector< unsigned long long > const &value)
 
bool hasNestedContent (double const &value)
 
bool hasNestedContent (std::vector< double > const &value)
 
bool hasNestedContent (bool const &value)
 
bool hasNestedContent (std::string const &value)
 
bool hasNestedContent (std::vector< std::string > const &value)
 
bool hasNestedContent (EventID const &value)
 
bool hasNestedContent (std::vector< EventID > const &value)
 
bool hasNestedContent (LuminosityBlockID const &value)
 
bool hasNestedContent (std::vector< LuminosityBlockID > const &value)
 
bool hasNestedContent (LuminosityBlockRange const &value)
 
bool hasNestedContent (std::vector< LuminosityBlockRange > const &value)
 
bool hasNestedContent (EventRange const &value)
 
bool hasNestedContent (std::vector< EventRange > const &value)
 
bool hasNestedContent (InputTag const &value)
 
bool hasNestedContent (std::vector< InputTag > const &value)
 
bool hasNestedContent (FileInPath const &value)
 
template<typename T >
void writeSingleValue (std::ostream &os, T const &value, ValueFormat)
 
template<>
void writeSingleValue< bool > (std::ostream &os, bool const &value, ValueFormat)
 
template<>
void writeSingleValue< double > (std::ostream &os, double const &value, ValueFormat)
 
template<>
void writeSingleValue< EventID > (std::ostream &os, EventID const &value, ValueFormat format)
 
template<>
void writeSingleValue< EventRange > (std::ostream &os, EventRange const &value, ValueFormat format)
 
template<>
void writeSingleValue< FileInPath > (std::ostream &os, FileInPath const &value, ValueFormat)
 
template<>
void writeSingleValue< InputTag > (std::ostream &os, InputTag const &value, ValueFormat format)
 
template<>
void writeSingleValue< LuminosityBlockID > (std::ostream &os, LuminosityBlockID const &value, ValueFormat format)
 
template<>
void writeSingleValue< LuminosityBlockRange > (std::ostream &os, LuminosityBlockRange const &value, ValueFormat format)
 
template<>
void writeSingleValue< std::string > (std::ostream &os, std::string const &value, ValueFormat)
 
void writeValue (std::ostream &os, int indentation, int const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< int > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, unsigned const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< unsigned > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, long long const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< long long > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, unsigned long long const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< unsigned long long > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, double const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< double > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, bool const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::string const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< std::string > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, EventID const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< EventID > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, LuminosityBlockID const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< LuminosityBlockID > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, LuminosityBlockRange const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< LuminosityBlockRange > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, EventRange const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< EventRange > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, InputTag const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< InputTag > const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, FileInPath const &value_, ValueFormat format)
 
template<typename T >
void writeValue (std::ostream &os, T const &value_, ValueFormat format)
 
template<typename T >
void writeValueInVector (std::ostream &os, T const &value, ValueFormat format)
 
template<>
void writeValueInVector< EventID > (std::ostream &os, EventID const &value, ValueFormat format)
 
template<>
void writeValueInVector< InputTag > (std::ostream &os, InputTag const &value, ValueFormat)
 
template<>
void writeValueInVector< LuminosityBlockID > (std::ostream &os, LuminosityBlockID const &value, ValueFormat format)
 
template<typename T >
void writeValueInVectorWithSpace (T const &value, std::ostream &os, int indentation, bool &startWithComma, ValueFormat format, int &i)
 
template<typename T >
void writeVector (std::ostream &os, int indentation, std::vector< T > const &value_, ValueFormat format)
 

Enumeration Type Documentation

Function Documentation

void edm::writeParameterValue::formatDouble ( double  value,
std::string &  result 
)

Definition at line 413 of file ParameterDescription.cc.

References alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by writeSingleValue< double >().

413  {
414  std::stringstream s;
415  s << std::setprecision(17) << value;
416  result = s.str();
417 
418  if (result.size() > 15 && std::string::npos != result.find(".")) {
419  std::stringstream s;
420  s << std::setprecision(15) << value;
421  std::string resultLessPrecision = s.str();
422 
423  if (resultLessPrecision.size() < result.size() - 2) {
424  double test = std::strtod(resultLessPrecision.c_str(), nullptr);
425  if (test == value) {
426  result = resultLessPrecision;
427  }
428  }
429  }
430  }
bool edm::writeParameterValue::hasNestedContent ( int const &  value)
bool edm::writeParameterValue::hasNestedContent ( std::vector< int > const &  value)

Definition at line 729 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

729 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( unsigned const &  value)

Definition at line 730 of file ParameterDescription.cc.

730 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< unsigned > const &  value)

Definition at line 731 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

731 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( long long const &  value)

Definition at line 732 of file ParameterDescription.cc.

732 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< long long > const &  value)

Definition at line 733 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

733 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( unsigned long long const &  value)

Definition at line 734 of file ParameterDescription.cc.

734 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< unsigned long long > const &  value)

Definition at line 735 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

735 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( double const &  value)

Definition at line 736 of file ParameterDescription.cc.

736 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< double > const &  value)

Definition at line 737 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

737 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( bool const &  value)

Definition at line 738 of file ParameterDescription.cc.

738 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::string const &  value)

Definition at line 739 of file ParameterDescription.cc.

739 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< std::string > const &  value)

Definition at line 740 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

740 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( EventID const &  value)

Definition at line 741 of file ParameterDescription.cc.

741 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< EventID > const &  value)

Definition at line 742 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

742 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( LuminosityBlockID const &  value)

Definition at line 743 of file ParameterDescription.cc.

743 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< LuminosityBlockID > const &  value)

Definition at line 744 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

744 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( LuminosityBlockRange const &  value)

Definition at line 745 of file ParameterDescription.cc.

745 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< LuminosityBlockRange > const &  value)

Definition at line 746 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

746 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( EventRange const &  value)

Definition at line 747 of file ParameterDescription.cc.

747 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< EventRange > const &  value)

Definition at line 748 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

748 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( InputTag const &  value)

Definition at line 749 of file ParameterDescription.cc.

749 { return false; }
bool edm::writeParameterValue::hasNestedContent ( std::vector< InputTag > const &  value)

Definition at line 750 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

750 { return value.size() > 5U; }
Definition: value.py:1
bool edm::writeParameterValue::hasNestedContent ( FileInPath const &  value)

Definition at line 751 of file ParameterDescription.cc.

751 { return false; }
template<typename T >
void edm::writeParameterValue::writeSingleValue ( std::ostream &  os,
T const &  value,
ValueFormat   
)

Definition at line 390 of file ParameterDescription.cc.

References relativeConstraints::value.

390  {
391  os << value;
392  }
template<>
void edm::writeParameterValue::writeSingleValue< bool > ( std::ostream &  os,
bool const &  value,
ValueFormat   
)

Definition at line 440 of file ParameterDescription.cc.

440  {
441  value ? os << "True" : os << "False";
442  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< double > ( std::ostream &  os,
double const &  value,
ValueFormat   
)

Definition at line 433 of file ParameterDescription.cc.

References formatDouble(), and AlCaHLTBitMon_QueryRunRegistry::string.

433  {
434  std::string sValue;
435  formatDouble(value, sValue);
436  os << sValue;
437  }
Definition: value.py:1
void formatDouble(double value, std::string &result)
template<>
void edm::writeParameterValue::writeSingleValue< EventID > ( std::ostream &  os,
EventID const &  value,
ValueFormat  format 
)

Definition at line 450 of file ParameterDescription.cc.

References CFI, and mitigatedMETSequence_cff::U.

450  {
451  if (format == CFI) {
452  os << value.run() << ", " << value.luminosityBlock() << ", " << value.event();
453  } else {
454  if (value.luminosityBlock() == 0U) {
455  os << value.run() << ":" << value.event();
456  } else {
457  os << value.run() << ":" << value.luminosityBlock() << ":" << value.event();
458  }
459  }
460  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< EventRange > ( std::ostream &  os,
EventRange const &  value,
ValueFormat  format 
)

Definition at line 471 of file ParameterDescription.cc.

References CFI, and mitigatedMETSequence_cff::U.

471  {
472  if (value.startLumi() == 0U) {
473  if (format == CFI)
474  os << "'" << value.startRun() << ":" << value.startEvent() << "-" << value.endRun() << ":" << value.endEvent()
475  << "'";
476  else
477  os << value.startRun() << ":" << value.startEvent() << "-" << value.endRun() << ":" << value.endEvent();
478  } else {
479  if (format == CFI)
480  os << "'" << value.startRun() << ":" << value.startLumi() << ":" << value.startEvent() << "-"
481  << value.endRun() << ":" << value.endLumi() << ":" << value.endEvent() << "'";
482  else
483  os << value.startRun() << ":" << value.startLumi() << ":" << value.startEvent() << "-" << value.endRun()
484  << ":" << value.endLumi() << ":" << value.endEvent();
485  }
486  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< FileInPath > ( std::ostream &  os,
FileInPath const &  value,
ValueFormat   
)

Definition at line 522 of file ParameterDescription.cc.

522  {
523  os << "'" << value.relativePath() << "'";
524  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< InputTag > ( std::ostream &  os,
InputTag const &  value,
ValueFormat  format 
)

Definition at line 500 of file ParameterDescription.cc.

References CFI.

500  {
501  if (format == CFI) {
502  os << "'" << value.label() << "'";
503  if (!value.instance().empty() || !value.process().empty()) {
504  os << ", '" << value.instance() << "'";
505  }
506  if (!value.process().empty()) {
507  os << ", '" << value.process() << "'";
508  }
509  } else {
510  os << "'" << value.label();
511  if (!value.instance().empty() || !value.process().empty()) {
512  os << ":" << value.instance();
513  }
514  if (!value.process().empty()) {
515  os << ":" << value.process();
516  }
517  os << "'";
518  }
519  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< LuminosityBlockID > ( std::ostream &  os,
LuminosityBlockID const &  value,
ValueFormat  format 
)

Definition at line 463 of file ParameterDescription.cc.

References CFI.

463  {
464  if (format == CFI)
465  os << value.run() << ", " << value.luminosityBlock();
466  else
467  os << value.run() << ":" << value.luminosityBlock();
468  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< LuminosityBlockRange > ( std::ostream &  os,
LuminosityBlockRange const &  value,
ValueFormat  format 
)

Definition at line 489 of file ParameterDescription.cc.

References CFI.

491  {
492  if (format == CFI)
493  os << "'" << value.startRun() << ":" << value.startLumi() << "-" << value.endRun() << ":" << value.endLumi()
494  << "'";
495  else
496  os << value.startRun() << ":" << value.startLumi() << "-" << value.endRun() << ":" << value.endLumi();
497  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< std::string > ( std::ostream &  os,
std::string const &  value,
ValueFormat   
)

Definition at line 445 of file ParameterDescription.cc.

445  {
446  os << "'" << value << "'";
447  }
Definition: value.py:1
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
int const &  value_,
ValueFormat  format 
)
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< int > const &  value_,
ValueFormat  format 
)

Definition at line 627 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

627  {
628  writeVector<int>(os, indentation, value_, format);
629  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
unsigned const &  value_,
ValueFormat  format 
)

Definition at line 631 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

631  {
632  writeValue<unsigned>(os, value_, format);
633  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< unsigned > const &  value_,
ValueFormat  format 
)

Definition at line 635 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

635  {
636  writeVector<unsigned>(os, indentation, value_, format);
637  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
long long const &  value_,
ValueFormat  format 
)

Definition at line 639 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

639  {
640  writeValue<long long>(os, value_, format);
641  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< long long > const &  value_,
ValueFormat  format 
)

Definition at line 643 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

643  {
644  writeVector<long long>(os, indentation, value_, format);
645  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
unsigned long long const &  value_,
ValueFormat  format 
)

Definition at line 647 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

647  {
648  writeValue<unsigned long long>(os, value_, format);
649  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< unsigned long long > const &  value_,
ValueFormat  format 
)

Definition at line 651 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

654  {
655  writeVector<unsigned long long>(os, indentation, value_, format);
656  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
double const &  value_,
ValueFormat  format 
)

Definition at line 658 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

658  {
659  writeValue<double>(os, value_, format);
660  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< double > const &  value_,
ValueFormat  format 
)

Definition at line 662 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

662  {
663  writeVector<double>(os, indentation, value_, format);
664  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
bool const &  value_,
ValueFormat  format 
)

Definition at line 666 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

666  {
667  writeValue<bool>(os, value_, format);
668  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::string const &  value_,
ValueFormat  format 
)

Definition at line 670 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

670  {
671  writeValue<std::string>(os, value_, format);
672  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< std::string > const &  value_,
ValueFormat  format 
)

Definition at line 674 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

674  {
675  writeVector<std::string>(os, indentation, value_, format);
676  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
EventID const &  value_,
ValueFormat  format 
)

Definition at line 678 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

678  {
679  writeValue<EventID>(os, value_, format);
680  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< EventID > const &  value_,
ValueFormat  format 
)

Definition at line 682 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

682  {
683  writeVector<EventID>(os, indentation, value_, format);
684  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
LuminosityBlockID const &  value_,
ValueFormat  format 
)

Definition at line 686 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

686  {
687  writeValue<LuminosityBlockID>(os, value_, format);
688  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< LuminosityBlockID > const &  value_,
ValueFormat  format 
)

Definition at line 690 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

693  {
694  writeVector<LuminosityBlockID>(os, indentation, value_, format);
695  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
LuminosityBlockRange const &  value_,
ValueFormat  format 
)

Definition at line 697 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

697  {
698  writeValue<LuminosityBlockRange>(os, value_, format);
699  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< LuminosityBlockRange > const &  value_,
ValueFormat  format 
)

Definition at line 701 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

704  {
705  writeVector<LuminosityBlockRange>(os, indentation, value_, format);
706  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
EventRange const &  value_,
ValueFormat  format 
)

Definition at line 708 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

708  {
709  writeValue<EventRange>(os, value_, format);
710  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< EventRange > const &  value_,
ValueFormat  format 
)

Definition at line 712 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

712  {
713  writeVector<EventRange>(os, indentation, value_, format);
714  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
InputTag const &  value_,
ValueFormat  format 
)

Definition at line 716 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

716  {
717  writeValue<InputTag>(os, value_, format);
718  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< InputTag > const &  value_,
ValueFormat  format 
)

Definition at line 720 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

720  {
721  writeVector<InputTag>(os, indentation, value_, format);
722  }
format
Some error handling for the usage.
void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
FileInPath const &  value_,
ValueFormat  format 
)

Definition at line 724 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

724  {
725  writeValue<FileInPath>(os, value_, format);
726  }
format
Some error handling for the usage.
template<typename T >
void edm::writeParameterValue::writeValue ( std::ostream &  os,
T const &  value_,
ValueFormat  format 
)

Definition at line 527 of file ParameterDescription.cc.

References TauDecayModes::dec, alignCSCRings::ff, cmsPerfStripChart::format, and edm::ParameterDescription< T >::value_.

527  {
528  std::ios_base::fmtflags ff = os.flags(std::ios_base::dec);
529  os.width(0);
530  writeSingleValue<T>(os, value_, format);
531  os.flags(ff);
532  }
format
Some error handling for the usage.
template<typename T >
void edm::writeParameterValue::writeValueInVector ( std::ostream &  os,
T const &  value,
ValueFormat  format 
)

Definition at line 535 of file ParameterDescription.cc.

References cmsPerfStripChart::format, and relativeConstraints::value.

535  {
536  writeSingleValue<T>(os, value, format);
537  }
format
Some error handling for the usage.
template<>
void edm::writeParameterValue::writeValueInVector< EventID > ( std::ostream &  os,
EventID const &  value,
ValueFormat  format 
)

Definition at line 542 of file ParameterDescription.cc.

References CFI, and mitigatedMETSequence_cff::U.

542  {
543  if (value.luminosityBlock() == 0U) {
544  if (format == CFI)
545  os << "'" << value.run() << ":" << value.event() << "'";
546  else
547  os << value.run() << ":" << value.event();
548  } else {
549  if (format == CFI)
550  os << "'" << value.run() << ":" << value.luminosityBlock() << ":" << value.event() << "'";
551  else
552  os << value.run() << ":" << value.luminosityBlock() << ":" << value.event();
553  }
554  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeValueInVector< InputTag > ( std::ostream &  os,
InputTag const &  value,
ValueFormat   
)

Definition at line 565 of file ParameterDescription.cc.

565  {
566  os << "'" << value.label();
567  if (!value.instance().empty() || !value.process().empty()) {
568  os << ":" << value.instance();
569  }
570  if (!value.process().empty()) {
571  os << ":" << value.process();
572  }
573  os << "'";
574  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeValueInVector< LuminosityBlockID > ( std::ostream &  os,
LuminosityBlockID const &  value,
ValueFormat  format 
)

Definition at line 557 of file ParameterDescription.cc.

References CFI.

557  {
558  if (format == CFI)
559  os << "'" << value.run() << ":" << value.luminosityBlock() << "'";
560  else
561  os << value.run() << ":" << value.luminosityBlock();
562  }
Definition: value.py:1
template<typename T >
void edm::writeParameterValue::writeValueInVectorWithSpace ( T const &  value,
std::ostream &  os,
int  indentation,
bool &  startWithComma,
ValueFormat  format,
int &  i 
)

Definition at line 577 of file ParameterDescription.cc.

References CFI, DOC, cmsPerfStripChart::format, mps_fire::i, and relativeConstraints::value.

578  {
579  if (startWithComma && format == CFI)
580  os << ",";
581  startWithComma = true;
582  os << "\n" << std::setw(indentation) << "";
583  if (format == DOC)
584  os << "[" << i << "]: ";
585  writeValueInVector<T>(os, value, format);
586  ++i;
587  }
format
Some error handling for the usage.
template<typename T >
void edm::writeParameterValue::writeVector ( std::ostream &  os,
int  indentation,
std::vector< T > const &  value_,
ValueFormat  format 
)

Definition at line 590 of file ParameterDescription.cc.

References CFI, TauDecayModes::dec, DOC, alignCSCRings::ff, edm::for_all(), cmsPerfStripChart::format, mps_fire::i, and mitigatedMETSequence_cff::U.

590  {
591  std::ios_base::fmtflags ff = os.flags(std::ios_base::dec);
592  char oldFill = os.fill();
593  os.width(0);
594  if (value_.empty() && format == DOC) {
595  os << "empty";
596  } else if (value_.size() == 1U && format == CFI) {
597  writeValueInVector<T>(os, value_[0], format);
598  } else if (!value_.empty()) {
599  if (format == DOC)
600  os << "(vector size = " << value_.size() << ")";
601  if (format == CFI and value_.size() > 255U)
602  os << " *(";
603  os.fill(' ');
604  bool startWithComma = false;
605  int i = 0;
606  for_all(value_,
607  std::bind(&writeValueInVectorWithSpace<T>,
608  std::placeholders::_1,
609  std::ref(os),
610  indentation + 2,
611  std::ref(startWithComma),
612  format,
613  std::ref(i)));
614  if (format == CFI)
615  os << "\n" << std::setw(indentation) << "";
616  if (format == CFI and value_.size() > 255U)
617  os << ") ";
618  }
619  os.flags(ff);
620  os.fill(oldFill);
621  }
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:14
format
Some error handling for the usage.