CMS 3D CMS Logo

HcalDbASCIIIO.h
Go to the documentation of this file.
1 //
2 // F.Ratnikov (UMd), Jul. 19, 2005
3 //
4 #ifndef HcalDbASCIIIO_h
5 #define HcalDbASCIIIO_h
6 
7 #include <iostream>
8 
13 
54 namespace HcalDbASCIIIO {
55  //alternate function for creating certain objects
56  template <class T>
57  std::unique_ptr<T> createObject(std::istream& fInput) {
58  assert(0); //no general case, relies on specializations defined in cc file
59  return std::make_unique<T>();
60  }
61 
62  bool getObject(std::istream& fInput, HcalPedestals* fObject);
63  bool dumpObject(std::ostream& fOutput, const HcalPedestals& fObject);
64  bool getObject(std::istream& fInput, HcalPedestalWidths* fObject);
65  bool dumpObject(std::ostream& fOutput, const HcalPedestalWidths& fObject);
66  bool getObject(std::istream& fInput, HcalGains* fObject);
67  bool dumpObject(std::ostream& fOutput, const HcalGains& fObject);
68  bool getObject(std::istream& fInput, HcalGainWidths* fObject);
69  bool dumpObject(std::ostream& fOutput, const HcalGainWidths& fObject);
70  bool getObject(std::istream& fInput, HcalQIEData* fObject);
71  bool dumpObject(std::ostream& fOutput, const HcalQIEData& fObject);
72  bool getObject(std::istream& fInput, HcalCalibrationQIEData* fObject);
73  bool dumpObject(std::ostream& fOutput, const HcalCalibrationQIEData& fObject);
74  bool getObject(std::istream& fInput, HcalQIETypes* fObject);
75  bool dumpObject(std::ostream& fOutput, const HcalQIETypes& fObject);
76  template <>
77  std::unique_ptr<HcalElectronicsMap> createObject<HcalElectronicsMap>(std::istream& fInput);
78  bool dumpObject(std::ostream& fOutput, const HcalElectronicsMap& fObject);
79  bool getObject(std::istream& fInput, HcalChannelQuality* fObject);
80  bool dumpObject(std::ostream& fOutput, const HcalChannelQuality& fObject);
81  bool getObject(std::istream& fInput, HcalRespCorrs* fObject);
82  bool dumpObject(std::ostream& fOutput, const HcalRespCorrs& fObject);
83  bool getObject(std::istream& fInput, HcalLUTCorrs* fObject);
84  bool dumpObject(std::ostream& fOutput, const HcalLUTCorrs& fObject);
85  bool getObject(std::istream& fInput, HcalPFCorrs* fObject);
86  bool dumpObject(std::ostream& fOutput, const HcalPFCorrs& fObject);
87  bool getObject(std::istream& fInput, HcalTimeCorrs* fObject);
88  bool dumpObject(std::ostream& fOutput, const HcalTimeCorrs& fObject);
89  bool getObject(std::istream& fInput, HcalZSThresholds* fObject);
90  bool dumpObject(std::ostream& fOutput, const HcalZSThresholds& fObject);
91  bool getObject(std::istream& fInput, HcalL1TriggerObjects* fObject);
92  bool dumpObject(std::ostream& fOutput, const HcalL1TriggerObjects& fObject);
93  template <>
94  std::unique_ptr<HcalFrontEndMap> createObject<HcalFrontEndMap>(std::istream& fInput);
95  bool dumpObject(std::ostream& fOutput, const HcalFrontEndMap& fObject);
96 
97  bool getObject(std::istream& fInput, HcalValidationCorrs* fObject);
98  bool dumpObject(std::ostream& fOutput, const HcalValidationCorrs& fObject);
99  bool getObject(std::istream& fInput, HcalLutMetadata* fObject);
100  bool dumpObject(std::ostream& fOutput, const HcalLutMetadata& fObject);
101  bool getObject(std::istream& fInput, HcalDcsValues* fObject);
102  bool dumpObject(std::ostream& fOutput, const HcalDcsValues& fObject);
103  template <>
104  std::unique_ptr<HcalDcsMap> createObject<HcalDcsMap>(std::istream& fInput);
105  bool dumpObject(std::ostream& fOutput, const HcalDcsMap& fObject);
106 
107  bool getObject(std::istream& fInput, HcalRecoParams* fObject);
108  bool dumpObject(std::ostream& fOutput, const HcalRecoParams& fObject);
109  bool getObject(std::istream& fInput, HcalLongRecoParams* fObject);
110  bool dumpObject(std::ostream& fOutput, const HcalLongRecoParams& fObject);
111 
112  bool getObject(std::istream& fInput, HcalZDCLowGainFractions* fObject);
113  bool dumpObject(std::ostream& fOutput, const HcalZDCLowGainFractions& fObject);
114 
115  bool getObject(std::istream& fInput, HcalTimingParams* fObject);
116  bool dumpObject(std::ostream& fOutput, const HcalTimingParams& fObject);
117 
118  bool getObject(std::istream& fInput, HcalMCParams* fObject);
119  bool dumpObject(std::ostream& fOutput, const HcalMCParams& fObject);
120 
121  // Getting/Dumping Hcal Flag information
122  bool getObject(std::istream& fInput, HcalFlagHFDigiTimeParams* fObject);
123  bool dumpObject(std::ostream& fOutput, const HcalFlagHFDigiTimeParams& fObject);
124 
125  bool getObject(std::istream& fInput, HcalSiPMParameters* fObject);
126  bool dumpObject(std::ostream& fOutput, const HcalSiPMParameters& fObject);
127  template <>
128  std::unique_ptr<HcalSiPMCharacteristics> createObject<HcalSiPMCharacteristics>(std::istream& fInput);
129  bool dumpObject(std::ostream& fOutput, const HcalSiPMCharacteristics& fObject);
130 
131  bool getObject(std::istream& fInput, HcalTPParameters* fObject);
132  bool dumpObject(std::ostream& fOutput, const HcalTPParameters& fObject);
133  bool getObject(std::istream& fInput, HcalTPChannelParameters* fObject);
134  bool dumpObject(std::ostream& fOutput, const HcalTPChannelParameters& fObject);
135 
136  bool dumpObject(std::ostream& fOutput, const HcalCalibrationsSet& fObject);
137  bool dumpObject(std::ostream& fOutput, const HcalCalibrationWidthsSet& fObject);
138 
139  DetId getId(const std::vector<std::string>& items);
140  void dumpId(std::ostream& fOutput, DetId id);
141  void dumpIdShort(std::ostream& fOutput, DetId id);
142 } // namespace HcalDbASCIIIO
143 #endif
HcalRespCorrs
Definition: HcalRespCorrs.h:17
HcalDbASCIIIO::dumpIdShort
void dumpIdShort(std::ostream &fOutput, DetId id)
HcalMCParams
Definition: HcalMCParams.h:9
HcalCalibrationsSet
Definition: HcalCalibrationsSet.h:16
HcalTPParameters
Definition: HcalTPParameters.h:10
HcalTPChannelParameters
Definition: HcalTPChannelParameters.h:8
AllObjects.h
HcalDcsMap
Definition: HcalDcsMap.h:34
cms::cuda::assert
assert(be >=bs)
HcalChannelQuality
Definition: HcalChannelQuality.h:17
mps_monitormerge.items
list items
Definition: mps_monitormerge.py:29
HcalPedestalWidths
Definition: HcalPedestalWidths.h:17
DetId
Definition: DetId.h:17
HcalPFCorrs
Definition: HcalPFCorrs.h:17
HcalPedestals
Definition: HcalPedestals.h:20
HcalLUTCorrs
Definition: HcalLUTCorrs.h:20
HcalL1TriggerObjects
Definition: HcalL1TriggerObjects.h:14
HcalDbASCIIIO::createObject< HcalSiPMCharacteristics >
std::unique_ptr< HcalSiPMCharacteristics > createObject< HcalSiPMCharacteristics >(std::istream &fInput)
Definition: HcalDbASCIIIO.cc:2182
HcalValidationCorrs
Definition: HcalValidationCorrs.h:17
HcalDbASCIIIO::dumpId
void dumpId(std::ostream &fOutput, DetId id)
Definition: CastorDbASCIIIO.cc:76
HcalTimingParams
Definition: HcalTimingParams.h:9
HcalDcsValues
Definition: HcalDcsValues.h:25
HcalDetId.h
HcalGainWidths
Definition: HcalGainWidths.h:17
HcalTimeCorrs
Definition: HcalTimeCorrs.h:17
HcalCalibrationWidthsSet.h
HcalQIETypes
Definition: HcalQIETypes.h:17
HcalDbASCIIIO
Definition: HcalDbASCIIIO.h:54
HcalQIEData
Definition: HcalQIEData.h:24
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
HcalDbASCIIIO::getId
DetId getId(const std::vector< std::string > &items)
Definition: CastorDbASCIIIO.cc:71
HcalDbASCIIIO::dumpObject
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
HcalCalibrationsSet.h
HcalCalibrationQIEData
Definition: HcalCalibrationQIEData.h:22
HcalFlagHFDigiTimeParams
Definition: HcalFlagHFDigiTimeParams.h:9
HcalLutMetadata
Definition: HcalLutMetadata.h:15
HcalZDCLowGainFractions
Definition: HcalZDCLowGainFractions.h:9
HcalDbASCIIIO::getObject
bool getObject(std::istream &fInput, HcalPedestals *fObject)
HcalGains
Definition: HcalGains.h:17
HcalRecoParams
Definition: HcalRecoParams.h:9
HcalDbASCIIIO::createObject< HcalDcsMap >
std::unique_ptr< HcalDcsMap > createObject< HcalDcsMap >(std::istream &fInput)
Definition: HcalDbASCIIIO.cc:1905
HcalFrontEndMap
Definition: HcalFrontEndMap.h:23
HcalDbASCIIIO::createObject< HcalFrontEndMap >
std::unique_ptr< HcalFrontEndMap > createObject< HcalFrontEndMap >(std::istream &fInput)
Definition: HcalDbASCIIIO.cc:2077
HcalLongRecoParams
Definition: HcalLongRecoParams.h:9
HcalDbASCIIIO::createObject< HcalElectronicsMap >
std::unique_ptr< HcalElectronicsMap > createObject< HcalElectronicsMap >(std::istream &fInput)
Definition: HcalDbASCIIIO.cc:1517
HcalZSThresholds
Definition: HcalZSThresholds.h:17
HcalCalibrationWidthsSet
Definition: HcalCalibrationWidthsSet.h:16
HcalDbASCIIIO::createObject
std::unique_ptr< T > createObject(std::istream &fInput)
Definition: HcalDbASCIIIO.h:57
HcalSiPMParameters
Definition: HcalSiPMParameters.h:8
HcalSiPMCharacteristics
Definition: HcalSiPMCharacteristics.h:18