Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:26

0001 /*
0002  *  plugin.cc
0003  *  CMSSW
0004  *
0005  *  Created by Chris Jones on 7/24/05.
0006  *
0007  */
0008 
0009 #include "CondCore/ESSources/interface/registration_macros.h"
0010 #include "CondFormats/CSCObjects/interface/CSCPedestals.h"
0011 #include "CondFormats/CSCObjects/interface/CSCDBPedestals.h"
0012 #include "CondFormats/DataRecord/interface/CSCPedestalsRcd.h"
0013 #include "CondFormats/DataRecord/interface/CSCDBPedestalsRcd.h"
0014 #include "CondFormats/CSCObjects/interface/CSCGains.h"
0015 #include "CondFormats/CSCObjects/interface/CSCDBGains.h"
0016 #include "CondFormats/DataRecord/interface/CSCGainsRcd.h"
0017 #include "CondFormats/DataRecord/interface/CSCDBGainsRcd.h"
0018 #include "CondFormats/CSCObjects/interface/CSCcrosstalk.h"
0019 #include "CondFormats/CSCObjects/interface/CSCDBCrosstalk.h"
0020 #include "CondFormats/DataRecord/interface/CSCcrosstalkRcd.h"
0021 #include "CondFormats/DataRecord/interface/CSCDBCrosstalkRcd.h"
0022 #include "CondFormats/CSCObjects/interface/CSCDBChipSpeedCorrection.h"
0023 #include "CondFormats/DataRecord/interface/CSCDBChipSpeedCorrectionRcd.h"
0024 #include "CondFormats/CSCObjects/interface/CSCIdentifier.h"
0025 #include "CondFormats/DataRecord/interface/CSCIdentifierRcd.h"
0026 #include "CondFormats/CSCObjects/interface/CSCNoiseMatrix.h"
0027 #include "CondFormats/CSCObjects/interface/CSCDBNoiseMatrix.h"
0028 #include "CondFormats/DataRecord/interface/CSCNoiseMatrixRcd.h"
0029 #include "CondFormats/DataRecord/interface/CSCDBNoiseMatrixRcd.h"
0030 #include "CondFormats/CSCObjects/interface/CSCChamberMap.h"
0031 #include "CondFormats/DataRecord/interface/CSCChamberMapRcd.h"
0032 #include "CondFormats/CSCObjects/interface/CSCChamberIndex.h"
0033 #include "CondFormats/DataRecord/interface/CSCChamberIndexRcd.h"
0034 #include "CondFormats/CSCObjects/interface/CSCCrateMap.h"
0035 #include "CondFormats/DataRecord/interface/CSCCrateMapRcd.h"
0036 #include "CondFormats/CSCObjects/interface/CSCDDUMap.h"
0037 #include "CondFormats/DataRecord/interface/CSCDDUMapRcd.h"
0038 #include "CondFormats/CSCObjects/interface/CSCChamberTimeCorrections.h"
0039 #include "CondFormats/DataRecord/interface/CSCChamberTimeCorrectionsRcd.h"
0040 #include "CondFormats/CSCObjects/interface/CSCBadChambers.h"
0041 #include "CondFormats/DataRecord/interface/CSCBadChambersRcd.h"
0042 #include "CondFormats/CSCObjects/interface/CSCBadStrips.h"
0043 #include "CondFormats/DataRecord/interface/CSCBadStripsRcd.h"
0044 #include "CondFormats/CSCObjects/interface/CSCBadWires.h"
0045 #include "CondFormats/DataRecord/interface/CSCBadWiresRcd.h"
0046 #include "CondFormats/CSCObjects/interface/CSCReadoutMapping.h"
0047 #include "CondFormats/CSCObjects/interface/CSCReadoutMappingForSliceTest.h"
0048 #include "CondFormats/CSCObjects/interface/CSCReadoutMappingFromFile.h"
0049 #include "CondFormats/DataRecord/interface/CSCReadoutMappingRcd.h"
0050 #include "CondFormats/CSCObjects/interface/CSCL1TPParameters.h"
0051 #include "CondFormats/DataRecord/interface/CSCL1TPParametersRcd.h"
0052 #include "CondFormats/CSCObjects/interface/CSCDBL1TPParameters.h"
0053 #include "CondFormats/DataRecord/interface/CSCDBL1TPParametersRcd.h"
0054 #include "CondFormats/CSCObjects/interface/CSCDQM_DCSData.h"
0055 #include "CondFormats/DataRecord/interface/CSCDCSDataRcd.h"
0056 #include "CondFormats/CSCObjects/interface/CSCDBGasGainCorrection.h"
0057 #include "CondFormats/DataRecord/interface/CSCDBGasGainCorrectionRcd.h"
0058 
0059 //
0060 #include "CondCore/CondDB/interface/Serialization.h"
0061 #include <memory>
0062 
0063 namespace cond {
0064   template <>
0065   std::unique_ptr<CSCReadoutMapping> deserialize<CSCReadoutMapping>(const std::string& payloadType,
0066                                                                     const Binary& payloadData,
0067                                                                     const Binary& streamerInfoData) {
0068     // DESERIALIZE_BASE_CASE( CSCReadoutMapping ); abstract
0069     DESERIALIZE_POLIMORPHIC_CASE(CSCReadoutMapping, CSCReadoutMappingFromFile);
0070     // here we come if none of the deserializations above match the payload type:
0071     throwException(std::string("Type mismatch, target object is type \"") + payloadType + "\"", "deserialize<>");
0072   }
0073   template <>
0074   std::unique_ptr<CSCReadoutMappingForSliceTest> deserialize<CSCReadoutMappingForSliceTest>(
0075       const std::string& payloadType, const Binary& payloadData, const Binary& streamerInfoData) {
0076     // DESERIALIZE_BASE_CASE( CSCReadoutMappingForSliceTest ); abstract
0077     DESERIALIZE_POLIMORPHIC_CASE(CSCReadoutMappingForSliceTest, CSCReadoutMappingFromFile);
0078     // here we come if none of the deserializations above match the payload type:
0079     throwException(std::string("Type mismatch, target object is type \"") + payloadType + "\"", "deserialize<>");
0080   }
0081 }  // namespace cond
0082 
0083 REGISTER_PLUGIN(CSCPedestalsRcd, CSCPedestals);
0084 REGISTER_PLUGIN(CSCDBPedestalsRcd, CSCDBPedestals);
0085 REGISTER_PLUGIN(CSCGainsRcd, CSCGains);
0086 REGISTER_PLUGIN(CSCDBGainsRcd, CSCDBGains);
0087 REGISTER_PLUGIN(CSCcrosstalkRcd, CSCcrosstalk);
0088 REGISTER_PLUGIN(CSCDBCrosstalkRcd, CSCDBCrosstalk);
0089 REGISTER_PLUGIN(CSCNoiseMatrixRcd, CSCNoiseMatrix);
0090 REGISTER_PLUGIN(CSCDBNoiseMatrixRcd, CSCDBNoiseMatrix);
0091 REGISTER_PLUGIN(CSCDBChipSpeedCorrectionRcd, CSCDBChipSpeedCorrection);
0092 REGISTER_PLUGIN(CSCChamberMapRcd, CSCChamberMap);
0093 REGISTER_PLUGIN(CSCChamberIndexRcd, CSCChamberIndex);
0094 REGISTER_PLUGIN(CSCCrateMapRcd, CSCCrateMap);
0095 REGISTER_PLUGIN(CSCDDUMapRcd, CSCDDUMap);
0096 REGISTER_PLUGIN(CSCChamberTimeCorrectionsRcd, CSCChamberTimeCorrections);
0097 REGISTER_PLUGIN(CSCBadChambersRcd, CSCBadChambers);
0098 REGISTER_PLUGIN(CSCBadStripsRcd, CSCBadStrips);
0099 REGISTER_PLUGIN(CSCBadWiresRcd, CSCBadWires);
0100 REGISTER_PLUGIN(CSCIdentifierRcd, CSCIdentifier);
0101 REGISTER_PLUGIN(CSCReadoutMappingRcd, CSCReadoutMapping);
0102 REGISTER_PLUGIN(CSCL1TPParametersRcd, CSCL1TPParameters);
0103 REGISTER_PLUGIN(CSCDBL1TPParametersRcd, CSCDBL1TPParameters);
0104 REGISTER_PLUGIN(CSCDCSDataRcd, cscdqm::DCSData);
0105 REGISTER_PLUGIN(CSCDBGasGainCorrectionRcd, CSCDBGasGainCorrection);