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  bool dumpObject (std::ostream& fOutput, const HcalElectronicsMap& fObject);
77  bool getObject (std::istream& fInput, HcalChannelQuality* fObject);
78  bool dumpObject (std::ostream& fOutput, const HcalChannelQuality& fObject);
79  bool getObject (std::istream& fInput, HcalRespCorrs* fObject);
80  bool dumpObject (std::ostream& fOutput, const HcalRespCorrs& fObject);
81  bool getObject (std::istream& fInput, HcalLUTCorrs* fObject);
82  bool dumpObject (std::ostream& fOutput, const HcalLUTCorrs& fObject);
83  bool getObject (std::istream& fInput, HcalPFCorrs* fObject);
84  bool dumpObject (std::ostream& fOutput, const HcalPFCorrs& fObject);
85  bool getObject (std::istream& fInput, HcalTimeCorrs* fObject);
86  bool dumpObject (std::ostream& fOutput, const HcalTimeCorrs& fObject);
87  bool getObject (std::istream& fInput, HcalZSThresholds* fObject);
88  bool dumpObject (std::ostream& fOutput, const HcalZSThresholds& fObject);
89  bool getObject (std::istream& fInput, HcalL1TriggerObjects* fObject);
90  bool dumpObject (std::ostream& fOutput, const HcalL1TriggerObjects& fObject);
91  bool dumpObject (std::ostream& fOutput, const HcalFrontEndMap& fObject);
92 
93  bool getObject (std::istream& fInput, HcalValidationCorrs* fObject);
94  bool dumpObject (std::ostream& fOutput, const HcalValidationCorrs& fObject);
95  bool getObject (std::istream& fInput, HcalLutMetadata* fObject);
96  bool dumpObject (std::ostream& fOutput, const HcalLutMetadata& fObject);
97  bool getObject (std::istream& fInput, HcalDcsValues* fObject);
98  bool dumpObject (std::ostream& fOutput, const HcalDcsValues& fObject);
99  bool dumpObject (std::ostream& fOutput, const HcalDcsMap& fObject);
100 
101  bool getObject (std::istream& fInput, HcalRecoParams* fObject);
102  bool dumpObject (std::ostream& fOutput, const HcalRecoParams& fObject);
103  bool getObject (std::istream& fInput, HcalLongRecoParams* fObject);
104  bool dumpObject (std::ostream& fOutput, const HcalLongRecoParams& fObject);
105 
106  bool getObject (std::istream& fInput, HcalZDCLowGainFractions* fObject);
107  bool dumpObject (std::ostream& fOutput, const HcalZDCLowGainFractions& fObject);
108 
109  bool getObject (std::istream& fInput, HcalTimingParams* fObject);
110  bool dumpObject (std::ostream& fOutput, const HcalTimingParams& fObject);
111 
112  bool getObject (std::istream& fInput, HcalMCParams* fObject);
113  bool dumpObject (std::ostream& fOutput, const HcalMCParams& fObject);
114 
115  // Getting/Dumping Hcal Flag information
116  bool getObject (std::istream& fInput, HcalFlagHFDigiTimeParams* fObject);
117  bool dumpObject (std::ostream& fOutput, const HcalFlagHFDigiTimeParams& fObject);
118 
119  bool getObject (std::istream& fInput, HcalSiPMParameters* fObject);
120  bool dumpObject (std::ostream& fOutput, const HcalSiPMParameters& fObject);
121  bool dumpObject (std::ostream& fOutput, const HcalSiPMCharacteristics& fObject);
122 
123  bool getObject (std::istream& fInput, HcalTPParameters* fObject);
124  bool dumpObject (std::ostream& fOutput, const HcalTPParameters& fObject);
125  bool getObject (std::istream& fInput, HcalTPChannelParameters* fObject);
126  bool dumpObject (std::ostream& fOutput, const HcalTPChannelParameters& fObject);
127 
128  bool dumpObject (std::ostream& fOutput, const HcalCalibrationsSet& fObject);
129  bool dumpObject (std::ostream& fOutput, const HcalCalibrationWidthsSet& fObject);
130 
131  DetId getId (const std::vector <std::string> & items);
132  void dumpId (std::ostream& fOutput, DetId id);
133  void dumpIdShort (std::ostream& fOutput, DetId id);
134 }
135 #endif
void dumpIdShort(std::ostream &fOutput, DetId id)
void dumpId(std::ostream &fOutput, DetId id)
Definition: DetId.h:18
bool getObject(std::istream &fInput, HcalPedestals *fObject)
DetId getId(const std::vector< std::string > &items)
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
std::unique_ptr< T > createObject(std::istream &fInput)
Definition: HcalDbASCIIIO.h:57