00001
00002
00003
00004 #ifndef HcalDbASCIIIO_h
00005 #define HcalDbASCIIIO_h
00006
00007 #include <iostream>
00008
00009 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
00010 #include "CondFormats/HcalObjects/interface/AllObjects.h"
00011
00039 namespace HcalDbASCIIIO {
00040 bool getObject (std::istream& fInput, HcalPedestals* fObject);
00041 bool dumpObject (std::ostream& fOutput, const HcalPedestals& fObject);
00042 bool getObject (std::istream& fInput, HcalPedestalWidths* fObject);
00043 bool dumpObject (std::ostream& fOutput, const HcalPedestalWidths& fObject);
00044 bool getObject (std::istream& fInput, HcalGains* fObject);
00045 bool dumpObject (std::ostream& fOutput, const HcalGains& fObject);
00046 bool getObject (std::istream& fInput, HcalGainWidths* fObject);
00047 bool dumpObject (std::ostream& fOutput, const HcalGainWidths& fObject);
00048 bool getObject (std::istream& fInput, HcalQIEData* fObject);
00049 bool dumpObject (std::ostream& fOutput, const HcalQIEData& fObject);
00050 bool getObject (std::istream& fInput, HcalCalibrationQIEData* fObject);
00051 bool dumpObject (std::ostream& fOutput, const HcalCalibrationQIEData& fObject);
00052 bool getObject (std::istream& fInput, HcalElectronicsMap* fObject);
00053 bool dumpObject (std::ostream& fOutput, const HcalElectronicsMap& fObject);
00054 bool getObject (std::istream& fInput, HcalChannelQuality* fObject);
00055 bool dumpObject (std::ostream& fOutput, const HcalChannelQuality& fObject);
00056 bool getObject (std::istream& fInput, HcalRespCorrs* fObject);
00057 bool dumpObject (std::ostream& fOutput, const HcalRespCorrs& fObject);
00058 bool getObject (std::istream& fInput, HcalLUTCorrs* fObject);
00059 bool dumpObject (std::ostream& fOutput, const HcalLUTCorrs& fObject);
00060 bool getObject (std::istream& fInput, HcalPFCorrs* fObject);
00061 bool dumpObject (std::ostream& fOutput, const HcalPFCorrs& fObject);
00062 bool getObject (std::istream& fInput, HcalTimeCorrs* fObject);
00063 bool dumpObject (std::ostream& fOutput, const HcalTimeCorrs& fObject);
00064 bool getObject (std::istream& fInput, HcalZSThresholds* fObject);
00065 bool dumpObject (std::ostream& fOutput, const HcalZSThresholds& fObject);
00066 bool getObject (std::istream& fInput, HcalL1TriggerObjects* fObject);
00067 bool dumpObject (std::ostream& fOutput, const HcalL1TriggerObjects& fObject);
00068
00069 bool getObject (std::istream& fInput, HcalValidationCorrs* fObject);
00070 bool dumpObject (std::ostream& fOutput, const HcalValidationCorrs& fObject);
00071 bool getObject (std::istream& fInput, HcalLutMetadata* fObject);
00072 bool dumpObject (std::ostream& fOutput, const HcalLutMetadata& fObject);
00073 bool getObject (std::istream& fInput, HcalDcsValues* fObject);
00074 bool dumpObject (std::ostream& fOutput, const HcalDcsValues& fObject);
00075 bool getObject (std::istream& fInput, HcalDcsMap* fObject);
00076 bool dumpObject (std::ostream& fOutput, const HcalDcsMap& fObject);
00077
00078 bool getObject (std::istream& fInput, HcalRecoParams* fObject);
00079 bool dumpObject (std::ostream& fOutput, const HcalRecoParams& fObject);
00080 bool getObject (std::istream& fInput, HcalLongRecoParams* fObject);
00081 bool dumpObject (std::ostream& fOutput, const HcalLongRecoParams& fObject);
00082
00083 bool getObject (std::istream& fInput, HcalTimingParams* fObject);
00084 bool dumpObject (std::ostream& fOutput, const HcalTimingParams& fObject);
00085
00086 bool getObject (std::istream& fInput, HcalMCParams* fObject);
00087 bool dumpObject (std::ostream& fOutput, const HcalMCParams& fObject);
00088
00089 bool getObject (std::istream& fInput, HcalCholeskyMatrices* fObject);
00090 bool dumpObject (std::ostream& fOutput, const HcalCholeskyMatrices& fObject);
00091 bool getObject (std::istream& fInput, HcalCovarianceMatrices* fObject);
00092 bool dumpObject (std::ostream& fOutput, const HcalCovarianceMatrices& fObject);
00093
00094 bool getObject (std::istream& fInput, HcalFlagHFDigiTimeParams* fObject);
00095 bool dumpObject (std::ostream& fOutput, const HcalFlagHFDigiTimeParams& fObject);
00096
00097 DetId getId (const std::vector <std::string> & items);
00098 void dumpId (std::ostream& fOutput, DetId id);
00099 void dumpIdShort (std::ostream& fOutput, DetId id);
00100 }
00101 #endif