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 479 of file ParameterDescription.cc.

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

Referenced by writeSingleValue< double >().

479  {
480  std::stringstream s;
481  s << std::setprecision(17) << value;
482  result = s.str();
483 
484  if(result.size() > 15 && std::string::npos != result.find(".")) {
485  std::stringstream s;
486  s << std::setprecision(15) << value;
487  std::string resultLessPrecision = s.str();
488 
489  if(resultLessPrecision.size() < result.size() - 2) {
490  double test = std::strtod(resultLessPrecision.c_str(), nullptr);
491  if(test == value) {
492  result = resultLessPrecision;
493  }
494  }
495  }
496  }
bool edm::writeParameterValue::hasNestedContent ( int const &  value)
bool edm::writeParameterValue::hasNestedContent ( std::vector< int > const &  value)

Definition at line 769 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 770 of file ParameterDescription.cc.

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

Definition at line 771 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 772 of file ParameterDescription.cc.

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

Definition at line 773 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 774 of file ParameterDescription.cc.

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

Definition at line 775 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 776 of file ParameterDescription.cc.

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

Definition at line 777 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 778 of file ParameterDescription.cc.

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

Definition at line 779 of file ParameterDescription.cc.

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

Definition at line 780 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 781 of file ParameterDescription.cc.

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

Definition at line 782 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 783 of file ParameterDescription.cc.

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

Definition at line 784 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 785 of file ParameterDescription.cc.

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

Definition at line 786 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 787 of file ParameterDescription.cc.

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

Definition at line 788 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 789 of file ParameterDescription.cc.

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

Definition at line 790 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

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

Definition at line 791 of file ParameterDescription.cc.

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

Definition at line 456 of file ParameterDescription.cc.

References relativeConstraints::value.

456  {
457  os << value;
458  }
template<>
void edm::writeParameterValue::writeSingleValue< bool > ( std::ostream &  os,
bool const &  value,
ValueFormat   
)

Definition at line 506 of file ParameterDescription.cc.

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

Definition at line 499 of file ParameterDescription.cc.

References formatDouble(), and AlCaHLTBitMon_QueryRunRegistry::string.

499  {
500  std::string sValue;
501  formatDouble(value, sValue);
502  os << sValue;
503  }
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 516 of file ParameterDescription.cc.

References CFI, and mitigatedMETSequence_cff::U.

516  {
517  if(format == CFI) {
518  os << value.run() << ", " << value.luminosityBlock() << ", " << value.event();
519  } else {
520  if(value.luminosityBlock() == 0U) {
521  os << value.run() << ":" << value.event();
522  } else {
523  os << value.run() << ":" << value.luminosityBlock() << ":" << value.event();
524  }
525  }
526  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< EventRange > ( std::ostream &  os,
EventRange const &  value,
ValueFormat  format 
)

Definition at line 535 of file ParameterDescription.cc.

References CFI, and mitigatedMETSequence_cff::U.

535  {
536  if(value.startLumi() == 0U) {
537  if(format == CFI) os << "'" << value.startRun() << ":" << value.startEvent() << "-"
538  << value.endRun() << ":" << value.endEvent() << "'";
539  else os << value.startRun() << ":" << value.startEvent() << "-"
540  << value.endRun() << ":" << value.endEvent();
541  } else {
542  if(format == CFI) os << "'" << value.startRun() << ":" << value.startLumi() << ":" << value.startEvent() << "-"
543  << value.endRun() << ":" << value.endLumi() << ":" << value.endEvent() << "'";
544  else os << value.startRun() << ":" << value.startLumi() << ":" << value.startEvent() << "-"
545  << value.endRun() << ":" << value.endLumi() << ":" << value.endEvent();
546  }
547  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< FileInPath > ( std::ostream &  os,
FileInPath const &  value,
ValueFormat   
)

Definition at line 580 of file ParameterDescription.cc.

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

Definition at line 558 of file ParameterDescription.cc.

References CFI.

558  {
559  if(format == CFI) {
560  os << "'" << value.label() << "'";
561  if(!value.instance().empty() || !value.process().empty()) {
562  os << ", '" << value.instance() << "'";
563  }
564  if(!value.process().empty()) {
565  os << ", '" << value.process() << "'";
566  }
567  } else {
568  os << "'" << value.label();
569  if(!value.instance().empty() || !value.process().empty()) {
570  os << ":" << value.instance();
571  }
572  if(!value.process().empty()) {
573  os << ":" << value.process();
574  }
575  os << "'";
576  }
577  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< LuminosityBlockID > ( std::ostream &  os,
LuminosityBlockID const &  value,
ValueFormat  format 
)

Definition at line 529 of file ParameterDescription.cc.

References CFI.

529  {
530  if(format == CFI) os << value.run() << ", " << value.luminosityBlock();
531  else os << value.run() << ":" << value.luminosityBlock();
532  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< LuminosityBlockRange > ( std::ostream &  os,
LuminosityBlockRange const &  value,
ValueFormat  format 
)

Definition at line 550 of file ParameterDescription.cc.

References CFI.

550  {
551  if(format == CFI) os << "'" << value.startRun() << ":" << value.startLumi() << "-"
552  << value.endRun() << ":" << value.endLumi() << "'";
553  else os << value.startRun() << ":" << value.startLumi() << "-"
554  << value.endRun() << ":" << value.endLumi();
555  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeSingleValue< std::string > ( std::ostream &  os,
std::string const &  value,
ValueFormat   
)

Definition at line 511 of file ParameterDescription.cc.

511  {
512  os << "'" << value << "'";
513  }
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 676 of file ParameterDescription.cc.

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

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

Definition at line 680 of file ParameterDescription.cc.

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

680  {
681  writeValue<unsigned>(os, value_, format);
682  }
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 684 of file ParameterDescription.cc.

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

684  {
685  writeVector<unsigned>(os, indentation, value_, format);
686  }
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 688 of file ParameterDescription.cc.

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

688  {
689  writeValue<long long>(os, value_, format);
690  }
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 692 of file ParameterDescription.cc.

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

692  {
693  writeVector<long long>(os, indentation, value_, format);
694  }
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 696 of file ParameterDescription.cc.

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

696  {
697  writeValue<unsigned long long>(os, value_, format);
698  }
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 700 of file ParameterDescription.cc.

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

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

Definition at line 704 of file ParameterDescription.cc.

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

704  {
705  writeValue<double>(os, value_, format);
706  }
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 708 of file ParameterDescription.cc.

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

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

Definition at line 712 of file ParameterDescription.cc.

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

712  {
713  writeValue<bool>(os, value_, format);
714  }
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 716 of file ParameterDescription.cc.

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

716  {
717  writeValue<std::string>(os, value_, format);
718  }
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 720 of file ParameterDescription.cc.

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

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

Definition at line 724 of file ParameterDescription.cc.

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

724  {
725  writeValue<EventID>(os, value_, format);
726  }
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 728 of file ParameterDescription.cc.

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

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

Definition at line 732 of file ParameterDescription.cc.

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

732  {
733  writeValue<LuminosityBlockID>(os, value_, format);
734  }
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 736 of file ParameterDescription.cc.

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

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

Definition at line 740 of file ParameterDescription.cc.

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

740  {
741  writeValue<LuminosityBlockRange>(os, value_, format);
742  }
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 744 of file ParameterDescription.cc.

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

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

Definition at line 748 of file ParameterDescription.cc.

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

748  {
749  writeValue<EventRange>(os, value_, format);
750  }
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 752 of file ParameterDescription.cc.

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

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

Definition at line 756 of file ParameterDescription.cc.

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

756  {
757  writeValue<InputTag>(os, value_, format);
758  }
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 760 of file ParameterDescription.cc.

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

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

Definition at line 764 of file ParameterDescription.cc.

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

764  {
765  writeValue<FileInPath>(os, value_, format);
766  }
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 585 of file ParameterDescription.cc.

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

585  {
586  std::ios_base::fmtflags ff = os.flags(std::ios_base::dec);
587  os.width(0);
588  writeSingleValue<T>(os, value_, format);
589  os.flags(ff);
590  }
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 593 of file ParameterDescription.cc.

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

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

Definition at line 600 of file ParameterDescription.cc.

References CFI, and mitigatedMETSequence_cff::U.

600  {
601  if(value.luminosityBlock() == 0U) {
602  if(format == CFI) os << "'" << value.run() << ":" << value.event() << "'";
603  else os << value.run() << ":" << value.event();
604  } else {
605  if(format == CFI) os << "'" << value.run() << ":" << value.luminosityBlock() << ":" << value.event() << "'";
606  else os << value.run() << ":" << value.luminosityBlock() << ":" << value.event();
607  }
608  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeValueInVector< InputTag > ( std::ostream &  os,
InputTag const &  value,
ValueFormat   
)

Definition at line 617 of file ParameterDescription.cc.

617  {
618  os << "'" << value.label();
619  if(!value.instance().empty() || !value.process().empty()) {
620  os << ":" << value.instance();
621  }
622  if(!value.process().empty()) {
623  os << ":" << value.process();
624  }
625  os << "'";
626  }
Definition: value.py:1
template<>
void edm::writeParameterValue::writeValueInVector< LuminosityBlockID > ( std::ostream &  os,
LuminosityBlockID const &  value,
ValueFormat  format 
)

Definition at line 611 of file ParameterDescription.cc.

References CFI.

611  {
612  if(format == CFI) os << "'" << value.run() << ":" << value.luminosityBlock() << "'";
613  else os << value.run() << ":" << value.luminosityBlock();
614  }
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 629 of file ParameterDescription.cc.

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

634  {
635  if(startWithComma && format == CFI) os << ",";
636  startWithComma = true;
637  os << "\n" << std::setw(indentation) << "";
638  if(format == DOC) os << "[" << i << "]: ";
639  writeValueInVector<T>(os, value, format);
640  ++i;
641  }
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 644 of file ParameterDescription.cc.

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

644  {
645  std::ios_base::fmtflags ff = os.flags(std::ios_base::dec);
646  char oldFill = os.fill();
647  os.width(0);
648  if(value_.empty() && format == DOC) {
649  os << "empty";
650  } else if(value_.size() == 1U && format == CFI) {
651  writeValueInVector<T>(os, value_[0], format);
652  } else if(!value_.empty()) {
653  if(format == DOC) os << "(vector size = " << value_.size() << ")";
654  if(format == CFI and value_.size() > 255U) os << " *(";
655  os.fill(' ');
656  bool startWithComma = false;
657  int i = 0;
658  for_all(value_, std::bind(&writeValueInVectorWithSpace<T>,
659  std::placeholders::_1,
660  std::ref(os),
661  indentation + 2,
662  std::ref(startWithComma),
663  format,
664  std::ref(i)));
665  if(format == CFI) os << "\n" << std::setw(indentation) << "";
666  if(format == CFI and value_.size() > 255U) os << ") ";
667  }
668  os.flags(ff);
669  os.fill(oldFill);
670  }
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:16
format
Some error handling for the usage.