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 (ESInputTag const &value)
 
bool hasNestedContent (std::vector< ESInputTag > 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< ESInputTag > (std::ostream &os, ESInputTag const &value, ValueFormat format)
 
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, ESInputTag const &value_, ValueFormat format)
 
void writeValue (std::ostream &os, int indentation, std::vector< ESInputTag > 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< ESInputTag > (std::ostream &os, ESInputTag const &value, ValueFormat)
 
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

◆ ValueFormat

Function Documentation

◆ formatDouble()

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

Definition at line 420 of file ParameterDescription.cc.

References mps_fire::result, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by writeSingleValue< double >().

420  {
421  {
422  std::stringstream ss;
423  ss << std::setprecision(17) << value;
424  result = ss.str();
425  }
426  if (result.size() > 15 && std::string::npos != result.find('.')) {
427  std::stringstream ss;
428  ss << std::setprecision(15) << value;
429  std::string resultLessPrecision = ss.str();
430 
431  if (resultLessPrecision.size() < result.size() - 2) {
432  double test = std::strtod(resultLessPrecision.c_str(), nullptr);
433  if (test == value) {
434  result = resultLessPrecision;
435  }
436  }
437  }
438  }
Definition: value.py:1

◆ hasNestedContent() [1/26]

bool edm::writeParameterValue::hasNestedContent ( int const &  value)

Definition at line 758 of file ParameterDescription.cc.

Referenced by edm::ParameterDescription< std::vector< std::string > >::hasNestedContent_().

758 { return false; }

◆ hasNestedContent() [2/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< int > const &  value)

Definition at line 759 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

759 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [3/26]

bool edm::writeParameterValue::hasNestedContent ( unsigned const &  value)

Definition at line 760 of file ParameterDescription.cc.

760 { return false; }

◆ hasNestedContent() [4/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< unsigned > const &  value)

Definition at line 761 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

761 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [5/26]

bool edm::writeParameterValue::hasNestedContent ( long long const &  value)

Definition at line 762 of file ParameterDescription.cc.

762 { return false; }

◆ hasNestedContent() [6/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< long long > const &  value)

Definition at line 763 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

763 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [7/26]

bool edm::writeParameterValue::hasNestedContent ( unsigned long long const &  value)

Definition at line 764 of file ParameterDescription.cc.

764 { return false; }

◆ hasNestedContent() [8/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< unsigned long long > const &  value)

Definition at line 765 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

765 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [9/26]

bool edm::writeParameterValue::hasNestedContent ( double const &  value)

Definition at line 766 of file ParameterDescription.cc.

766 { return false; }

◆ hasNestedContent() [10/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< double > const &  value)

Definition at line 767 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

767 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [11/26]

bool edm::writeParameterValue::hasNestedContent ( bool const &  value)

Definition at line 768 of file ParameterDescription.cc.

768 { return false; }

◆ hasNestedContent() [12/26]

bool edm::writeParameterValue::hasNestedContent ( std::string const &  value)

Definition at line 769 of file ParameterDescription.cc.

769 { return false; }

◆ hasNestedContent() [13/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< std::string > const &  value)

Definition at line 770 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

770 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [14/26]

bool edm::writeParameterValue::hasNestedContent ( EventID const &  value)

Definition at line 771 of file ParameterDescription.cc.

771 { return false; }

◆ hasNestedContent() [15/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< EventID > const &  value)

Definition at line 772 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

772 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [16/26]

bool edm::writeParameterValue::hasNestedContent ( LuminosityBlockID const &  value)

Definition at line 773 of file ParameterDescription.cc.

773 { return false; }

◆ hasNestedContent() [17/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< LuminosityBlockID > const &  value)

Definition at line 774 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

774 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [18/26]

bool edm::writeParameterValue::hasNestedContent ( LuminosityBlockRange const &  value)

Definition at line 775 of file ParameterDescription.cc.

775 { return false; }

◆ hasNestedContent() [19/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< LuminosityBlockRange > const &  value)

Definition at line 776 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

776 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [20/26]

bool edm::writeParameterValue::hasNestedContent ( EventRange const &  value)

Definition at line 777 of file ParameterDescription.cc.

777 { return false; }

◆ hasNestedContent() [21/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< EventRange > const &  value)

Definition at line 778 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

778 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [22/26]

bool edm::writeParameterValue::hasNestedContent ( InputTag const &  value)

Definition at line 779 of file ParameterDescription.cc.

779 { return false; }

◆ hasNestedContent() [23/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< InputTag > const &  value)

Definition at line 780 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

780 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [24/26]

bool edm::writeParameterValue::hasNestedContent ( ESInputTag const &  value)

Definition at line 781 of file ParameterDescription.cc.

781 { return false; }

◆ hasNestedContent() [25/26]

bool edm::writeParameterValue::hasNestedContent ( std::vector< ESInputTag > const &  value)

Definition at line 782 of file ParameterDescription.cc.

References mitigatedMETSequence_cff::U.

782 { return value.size() > 5U; }
Definition: value.py:1

◆ hasNestedContent() [26/26]

bool edm::writeParameterValue::hasNestedContent ( FileInPath const &  value)

Definition at line 783 of file ParameterDescription.cc.

783 { return false; }

◆ writeSingleValue()

template<typename T >
void edm::writeParameterValue::writeSingleValue ( std::ostream &  os,
T const &  value,
ValueFormat   
)

◆ writeSingleValue< bool >()

template<>
void edm::writeParameterValue::writeSingleValue< bool > ( std::ostream &  os,
bool const &  value,
ValueFormat   
)

Definition at line 448 of file ParameterDescription.cc.

References l1tGTMenu_BTagSeeds_cff::os.

448  {
449  value ? os << "True" : os << "False";
450  }
Definition: value.py:1

◆ writeSingleValue< double >()

template<>
void edm::writeParameterValue::writeSingleValue< double > ( std::ostream &  os,
double const &  value,
ValueFormat   
)

Definition at line 441 of file ParameterDescription.cc.

References formatDouble(), l1tGTMenu_BTagSeeds_cff::os, and AlCaHLTBitMon_QueryRunRegistry::string.

441  {
442  std::string sValue;
443  formatDouble(value, sValue);
444  os << sValue;
445  }
Definition: value.py:1
void formatDouble(double value, std::string &result)

◆ writeSingleValue< ESInputTag >()

template<>
void edm::writeParameterValue::writeSingleValue< ESInputTag > ( std::ostream &  os,
ESInputTag const &  value,
ValueFormat  format 
)

Definition at line 530 of file ParameterDescription.cc.

References CFI, and l1tGTMenu_BTagSeeds_cff::os.

530  {
531  if (format == CFI) {
532  os << "'" << value.module() << "', '" << value.data() << "'";
533  } else {
534  os << "'" << value.module() << ":" << value.data() << "'";
535  }
536  }
Definition: value.py:1

◆ writeSingleValue< EventID >()

template<>
void edm::writeParameterValue::writeSingleValue< EventID > ( std::ostream &  os,
EventID const &  value,
ValueFormat  format 
)

Definition at line 458 of file ParameterDescription.cc.

References CFI, l1tGTMenu_BTagSeeds_cff::os, and mitigatedMETSequence_cff::U.

458  {
459  if (format == CFI) {
460  os << value.run() << ", " << value.luminosityBlock() << ", " << value.event();
461  } else {
462  if (value.luminosityBlock() == 0U) {
463  os << value.run() << ":" << value.event();
464  } else {
465  os << value.run() << ":" << value.luminosityBlock() << ":" << value.event();
466  }
467  }
468  }
Definition: value.py:1

◆ writeSingleValue< EventRange >()

template<>
void edm::writeParameterValue::writeSingleValue< EventRange > ( std::ostream &  os,
EventRange const &  value,
ValueFormat  format 
)

Definition at line 479 of file ParameterDescription.cc.

References CFI, l1tGTMenu_BTagSeeds_cff::os, and mitigatedMETSequence_cff::U.

479  {
480  if (value.startLumi() == 0U) {
481  if (format == CFI)
482  os << "'" << value.startRun() << ":" << value.startEvent() << "-" << value.endRun() << ":" << value.endEvent()
483  << "'";
484  else
485  os << value.startRun() << ":" << value.startEvent() << "-" << value.endRun() << ":" << value.endEvent();
486  } else {
487  if (format == CFI)
488  os << "'" << value.startRun() << ":" << value.startLumi() << ":" << value.startEvent() << "-"
489  << value.endRun() << ":" << value.endLumi() << ":" << value.endEvent() << "'";
490  else
491  os << value.startRun() << ":" << value.startLumi() << ":" << value.startEvent() << "-" << value.endRun()
492  << ":" << value.endLumi() << ":" << value.endEvent();
493  }
494  }
Definition: value.py:1

◆ writeSingleValue< FileInPath >()

template<>
void edm::writeParameterValue::writeSingleValue< FileInPath > ( std::ostream &  os,
FileInPath const &  value,
ValueFormat   
)

Definition at line 539 of file ParameterDescription.cc.

References l1tGTMenu_BTagSeeds_cff::os.

539  {
540  os << "'" << value.relativePath() << "'";
541  }
Definition: value.py:1

◆ writeSingleValue< InputTag >()

template<>
void edm::writeParameterValue::writeSingleValue< InputTag > ( std::ostream &  os,
InputTag const &  value,
ValueFormat  format 
)

Definition at line 508 of file ParameterDescription.cc.

References CFI, and l1tGTMenu_BTagSeeds_cff::os.

508  {
509  if (format == CFI) {
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  } else {
518  os << "'" << value.label();
519  if (!value.instance().empty() || !value.process().empty()) {
520  os << ":" << value.instance();
521  }
522  if (!value.process().empty()) {
523  os << ":" << value.process();
524  }
525  os << "'";
526  }
527  }
Definition: value.py:1

◆ writeSingleValue< LuminosityBlockID >()

template<>
void edm::writeParameterValue::writeSingleValue< LuminosityBlockID > ( std::ostream &  os,
LuminosityBlockID const &  value,
ValueFormat  format 
)

Definition at line 471 of file ParameterDescription.cc.

References CFI, and l1tGTMenu_BTagSeeds_cff::os.

471  {
472  if (format == CFI)
473  os << value.run() << ", " << value.luminosityBlock();
474  else
475  os << value.run() << ":" << value.luminosityBlock();
476  }
Definition: value.py:1

◆ writeSingleValue< LuminosityBlockRange >()

template<>
void edm::writeParameterValue::writeSingleValue< LuminosityBlockRange > ( std::ostream &  os,
LuminosityBlockRange const &  value,
ValueFormat  format 
)

Definition at line 497 of file ParameterDescription.cc.

References CFI, and l1tGTMenu_BTagSeeds_cff::os.

499  {
500  if (format == CFI)
501  os << "'" << value.startRun() << ":" << value.startLumi() << "-" << value.endRun() << ":" << value.endLumi()
502  << "'";
503  else
504  os << value.startRun() << ":" << value.startLumi() << "-" << value.endRun() << ":" << value.endLumi();
505  }
Definition: value.py:1

◆ writeSingleValue< std::string >()

template<>
void edm::writeParameterValue::writeSingleValue< std::string > ( std::ostream &  os,
std::string const &  value,
ValueFormat   
)

Definition at line 453 of file ParameterDescription.cc.

References l1tGTMenu_BTagSeeds_cff::os.

453  {
454  os << "'" << value << "'";
455  }
Definition: value.py:1

◆ writeValue() [1/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
int const &  value_,
ValueFormat  format 
)

◆ writeValue() [2/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< int > const &  value_,
ValueFormat  format 
)

◆ writeValue() [3/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
unsigned const &  value_,
ValueFormat  format 
)

Definition at line 653 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

653  {
654  writeValue<unsigned>(os, value_, format);
655  }

◆ writeValue() [4/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< unsigned > const &  value_,
ValueFormat  format 
)

◆ writeValue() [5/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
long long const &  value_,
ValueFormat  format 
)

Definition at line 661 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

661  {
662  writeValue<long long>(os, value_, format);
663  }

◆ writeValue() [6/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< long long > const &  value_,
ValueFormat  format 
)

◆ writeValue() [7/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
unsigned long long const &  value_,
ValueFormat  format 
)

Definition at line 669 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

669  {
670  writeValue<unsigned long long>(os, value_, format);
671  }

◆ writeValue() [8/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< unsigned long long > const &  value_,
ValueFormat  format 
)

Definition at line 673 of file ParameterDescription.cc.

References dqm-mbProfile::format, printContent_cfi::indentation, and l1tGTMenu_BTagSeeds_cff::os.

676  {
677  writeVector<unsigned long long>(os, indentation, value_, format);
678  }

◆ writeValue() [9/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
double const &  value_,
ValueFormat  format 
)

Definition at line 680 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

680  {
681  writeValue<double>(os, value_, format);
682  }

◆ writeValue() [10/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< double > const &  value_,
ValueFormat  format 
)

◆ writeValue() [11/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
bool const &  value_,
ValueFormat  format 
)

Definition at line 688 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

688  {
689  writeValue<bool>(os, value_, format);
690  }

◆ writeValue() [12/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::string const &  value_,
ValueFormat  format 
)

Definition at line 692 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

692  {
693  writeValue<std::string>(os, value_, format);
694  }

◆ writeValue() [13/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< std::string > const &  value_,
ValueFormat  format 
)

◆ writeValue() [14/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
EventID const &  value_,
ValueFormat  format 
)

Definition at line 700 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

700  {
701  writeValue<EventID>(os, value_, format);
702  }

◆ writeValue() [15/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< EventID > const &  value_,
ValueFormat  format 
)

◆ writeValue() [16/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
LuminosityBlockID const &  value_,
ValueFormat  format 
)

Definition at line 708 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

708  {
709  writeValue<LuminosityBlockID>(os, value_, format);
710  }

◆ writeValue() [17/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< LuminosityBlockID > const &  value_,
ValueFormat  format 
)

◆ writeValue() [18/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
LuminosityBlockRange const &  value_,
ValueFormat  format 
)

Definition at line 719 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

719  {
720  writeValue<LuminosityBlockRange>(os, value_, format);
721  }

◆ writeValue() [19/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< LuminosityBlockRange > const &  value_,
ValueFormat  format 
)

Definition at line 723 of file ParameterDescription.cc.

References dqm-mbProfile::format, printContent_cfi::indentation, and l1tGTMenu_BTagSeeds_cff::os.

726  {
727  writeVector<LuminosityBlockRange>(os, indentation, value_, format);
728  }

◆ writeValue() [20/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
EventRange const &  value_,
ValueFormat  format 
)

Definition at line 730 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

730  {
731  writeValue<EventRange>(os, value_, format);
732  }

◆ writeValue() [21/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< EventRange > const &  value_,
ValueFormat  format 
)

◆ writeValue() [22/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
InputTag const &  value_,
ValueFormat  format 
)

Definition at line 738 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

738  {
739  writeValue<InputTag>(os, value_, format);
740  }

◆ writeValue() [23/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< InputTag > const &  value_,
ValueFormat  format 
)

◆ writeValue() [24/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
ESInputTag const &  value_,
ValueFormat  format 
)

Definition at line 746 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

746  {
747  writeValue<ESInputTag>(os, value_, format);
748  }

◆ writeValue() [25/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
std::vector< ESInputTag > const &  value_,
ValueFormat  format 
)

◆ writeValue() [26/27]

void edm::writeParameterValue::writeValue ( std::ostream &  os,
int  indentation,
FileInPath const &  value_,
ValueFormat  format 
)

Definition at line 754 of file ParameterDescription.cc.

References dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

754  {
755  writeValue<FileInPath>(os, value_, format);
756  }

◆ writeValue() [27/27]

template<typename T >
void edm::writeParameterValue::writeValue ( std::ostream &  os,
T const &  value_,
ValueFormat  format 
)

Definition at line 544 of file ParameterDescription.cc.

References TauDecayModes::dec, alignCSCRings::ff, dqm-mbProfile::format, and l1tGTMenu_BTagSeeds_cff::os.

544  {
545  std::ios_base::fmtflags ff = os.flags(std::ios_base::dec);
546  os.width(0);
547  writeSingleValue<T>(os, value_, format);
548  os.flags(ff);
549  }

◆ writeValueInVector()

template<typename T >
void edm::writeParameterValue::writeValueInVector ( std::ostream &  os,
T const &  value,
ValueFormat  format 
)

◆ writeValueInVector< ESInputTag >()

template<>
void edm::writeParameterValue::writeValueInVector< ESInputTag > ( std::ostream &  os,
ESInputTag const &  value,
ValueFormat   
)

Definition at line 594 of file ParameterDescription.cc.

References l1tGTMenu_BTagSeeds_cff::os.

594  {
595  os << "'" << value.module() << ":" << value.data() << "'";
596  }
Definition: value.py:1

◆ writeValueInVector< EventID >()

template<>
void edm::writeParameterValue::writeValueInVector< EventID > ( std::ostream &  os,
EventID const &  value,
ValueFormat  format 
)

Definition at line 559 of file ParameterDescription.cc.

References CFI, l1tGTMenu_BTagSeeds_cff::os, and mitigatedMETSequence_cff::U.

559  {
560  if (value.luminosityBlock() == 0U) {
561  if (format == CFI)
562  os << "'" << value.run() << ":" << value.event() << "'";
563  else
564  os << value.run() << ":" << value.event();
565  } else {
566  if (format == CFI)
567  os << "'" << value.run() << ":" << value.luminosityBlock() << ":" << value.event() << "'";
568  else
569  os << value.run() << ":" << value.luminosityBlock() << ":" << value.event();
570  }
571  }
Definition: value.py:1

◆ writeValueInVector< InputTag >()

template<>
void edm::writeParameterValue::writeValueInVector< InputTag > ( std::ostream &  os,
InputTag const &  value,
ValueFormat   
)

Definition at line 582 of file ParameterDescription.cc.

References l1tGTMenu_BTagSeeds_cff::os.

582  {
583  os << "'" << value.label();
584  if (!value.instance().empty() || !value.process().empty()) {
585  os << ":" << value.instance();
586  }
587  if (!value.process().empty()) {
588  os << ":" << value.process();
589  }
590  os << "'";
591  }
Definition: value.py:1

◆ writeValueInVector< LuminosityBlockID >()

template<>
void edm::writeParameterValue::writeValueInVector< LuminosityBlockID > ( std::ostream &  os,
LuminosityBlockID const &  value,
ValueFormat  format 
)

Definition at line 574 of file ParameterDescription.cc.

References CFI, and l1tGTMenu_BTagSeeds_cff::os.

574  {
575  if (format == CFI)
576  os << "'" << value.run() << ":" << value.luminosityBlock() << "'";
577  else
578  os << value.run() << ":" << value.luminosityBlock();
579  }
Definition: value.py:1

◆ writeValueInVectorWithSpace()

template<typename T >
void edm::writeParameterValue::writeValueInVectorWithSpace ( T const &  value,
std::ostream &  os,
int  indentation,
bool &  startWithComma,
ValueFormat  format,
int &  i 
)

Definition at line 599 of file ParameterDescription.cc.

References CFI, DOC, dqm-mbProfile::format, mps_fire::i, printContent_cfi::indentation, l1tGTMenu_BTagSeeds_cff::os, and relativeConstraints::value.

600  {
601  if (startWithComma && format == CFI)
602  os << ",";
603  startWithComma = true;
604  os << "\n" << std::setw(indentation) << "";
605  if (format == DOC)
606  os << "[" << i << "]: ";
607  writeValueInVector<T>(os, value, format);
608  ++i;
609  }

◆ writeVector()

template<typename T >
void edm::writeParameterValue::writeVector ( std::ostream &  os,
int  indentation,
std::vector< T > const &  value_,
ValueFormat  format 
)

Definition at line 612 of file ParameterDescription.cc.

References CFI, TauDecayModes::dec, DOC, alignCSCRings::ff, edm::for_all(), dqm-mbProfile::format, mps_fire::i, printContent_cfi::indentation, l1tGTMenu_BTagSeeds_cff::os, and mitigatedMETSequence_cff::U.

612  {
613  std::ios_base::fmtflags ff = os.flags(std::ios_base::dec);
614  char oldFill = os.fill();
615  os.width(0);
616  if (value_.empty() && format == DOC) {
617  os << "empty";
618  } else if (value_.size() == 1U && format == CFI) {
619  writeValueInVector<T>(os, value_[0], format);
620  } else if (!value_.empty()) {
621  if (format == DOC)
622  os << "(vector size = " << value_.size() << ")";
623  if (format == CFI and value_.size() > 255U)
624  os << " *(";
625  os.fill(' ');
626  bool startWithComma = false;
627  int i = 0;
628  for_all(value_,
629  std::bind(&writeValueInVectorWithSpace<T>,
630  std::placeholders::_1,
631  std::ref(os),
632  indentation + 2,
633  std::ref(startWithComma),
634  format,
635  std::ref(i)));
636  if (format == CFI)
637  os << "\n" << std::setw(indentation) << "";
638  if (format == CFI and value_.size() > 255U)
639  os << ") ";
640  }
641  os.flags(ff);
642  os.fill(oldFill);
643  }
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:14