Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-13 01:32:11

0001 
0002 // system include files
0003 #include <memory>
0004 
0005 // user include files
0006 #include "FWCore/Framework/interface/Frameworkfwd.h"
0007 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0008 
0009 #include "FWCore/Framework/interface/Event.h"
0010 #include "FWCore/Framework/interface/MakerMacros.h"
0011 
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 
0014 #include "FWCore/Framework/interface/EventSetup.h"
0015 #include "FWCore/Framework/interface/ESHandle.h"
0016 
0017 #include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
0018 #include "CondFormats/L1TObjects/interface/L1TriggerKeyList.h"
0019 
0020 #include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
0021 #include "CondFormats/L1TObjects/interface/L1TriggerKey.h"
0022 
0023 #include "CondFormats/DataRecord/interface/L1JetEtScaleRcd.h"
0024 //#include "CondFormats/L1TObjects/interface/L1JetEtScale.h"
0025 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0026 
0027 #include "CondFormats/DataRecord/interface/L1EmEtScaleRcd.h"
0028 //#include "CondFormats/L1TObjects/interface/L1EmEtScale.h"
0029 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0030 
0031 #include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
0032 //#include "CondFormats/L1TObjects/interface/L1HtMissScale.h"
0033 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0034 
0035 #include "CondFormats/DataRecord/interface/L1HfRingEtScaleRcd.h"
0036 //#include "CondFormats/L1TObjects/interface/L1HfRingEtScale.h"
0037 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0038 
0039 #include "CondFormats/DataRecord/interface/L1MuTriggerScalesRcd.h"
0040 #include "CondFormats/L1TObjects/interface/L1MuTriggerScales.h"
0041 
0042 #include "CondFormats/DataRecord/interface/L1MuTriggerPtScaleRcd.h"
0043 #include "CondFormats/L1TObjects/interface/L1MuTriggerPtScale.h"
0044 
0045 #include "CondFormats/DataRecord/interface/L1MuGMTScalesRcd.h"
0046 #include "CondFormats/L1TObjects/interface/L1MuGMTScales.h"
0047 
0048 #include "CondFormats/DataRecord/interface/L1MuCSCTFConfigurationRcd.h"
0049 #include "CondFormats/L1TObjects/interface/L1MuCSCTFConfiguration.h"
0050 
0051 #include "CondFormats/DataRecord/interface/L1MuCSCTFAlignmentRcd.h"
0052 #include "CondFormats/L1TObjects/interface/L1MuCSCTFAlignment.h"
0053 
0054 #include "CondFormats/DataRecord/interface/L1MuCSCPtLutRcd.h"
0055 #include "CondFormats/L1TObjects/interface/L1MuCSCPtLut.h"
0056 
0057 #include "CondFormats/DataRecord/interface/L1MuDTEtaPatternLutRcd.h"
0058 #include "CondFormats/L1TObjects/interface/L1MuDTEtaPatternLut.h"
0059 
0060 #include "CondFormats/DataRecord/interface/L1MuDTExtLutRcd.h"
0061 #include "CondFormats/L1TObjects/interface/L1MuDTExtLut.h"
0062 
0063 #include "CondFormats/DataRecord/interface/L1MuDTPhiLutRcd.h"
0064 #include "CondFormats/L1TObjects/interface/L1MuDTPhiLut.h"
0065 
0066 #include "CondFormats/DataRecord/interface/L1MuDTPtaLutRcd.h"
0067 #include "CondFormats/L1TObjects/interface/L1MuDTPtaLut.h"
0068 
0069 #include "CondFormats/DataRecord/interface/L1MuDTQualPatternLutRcd.h"
0070 #include "CondFormats/L1TObjects/interface/L1MuDTQualPatternLut.h"
0071 
0072 #include "CondFormats/DataRecord/interface/L1MuDTTFParametersRcd.h"
0073 #include "CondFormats/L1TObjects/interface/L1MuDTTFParameters.h"
0074 
0075 #include "CondFormats/DataRecord/interface/L1RPCConfigRcd.h"
0076 #include "CondFormats/L1TObjects/interface/L1RPCConfig.h"
0077 
0078 #include "CondFormats/DataRecord/interface/L1RPCConeDefinitionRcd.h"
0079 #include "CondFormats/L1TObjects/interface/L1RPCConeDefinition.h"
0080 
0081 #include "CondFormats/DataRecord/interface/L1RPCHsbConfigRcd.h"
0082 #include "CondFormats/L1TObjects/interface/L1RPCHsbConfig.h"
0083 
0084 #include "CondFormats/DataRecord/interface/L1RPCBxOrConfigRcd.h"
0085 #include "CondFormats/L1TObjects/interface/L1RPCBxOrConfig.h"
0086 
0087 #include "CondFormats/DataRecord/interface/L1MuGMTParametersRcd.h"
0088 #include "CondFormats/L1TObjects/interface/L1MuGMTParameters.h"
0089 
0090 #include "CondFormats/DataRecord/interface/L1RCTParametersRcd.h"
0091 #include "CondFormats/L1TObjects/interface/L1RCTParameters.h"
0092 
0093 #include "CondFormats/DataRecord/interface/L1CaloEcalScaleRcd.h"
0094 #include "CondFormats/L1TObjects/interface/L1CaloEcalScale.h"
0095 
0096 #include "CondFormats/DataRecord/interface/L1CaloHcalScaleRcd.h"
0097 #include "CondFormats/L1TObjects/interface/L1CaloHcalScale.h"
0098 
0099 #include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
0100 #include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h"
0101 
0102 #include "CondFormats/DataRecord/interface/L1GtBoardMapsRcd.h"
0103 #include "CondFormats/L1TObjects/interface/L1GtBoardMaps.h"
0104 
0105 #include "CondFormats/DataRecord/interface/L1GtParametersRcd.h"
0106 #include "CondFormats/L1TObjects/interface/L1GtParameters.h"
0107 
0108 #include "CondFormats/DataRecord/interface/L1GtStableParametersRcd.h"
0109 #include "CondFormats/L1TObjects/interface/L1GtStableParameters.h"
0110 
0111 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskVetoAlgoTrigRcd.h"
0112 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskVetoAlgoTrig.h"
0113 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
0114 
0115 #include "CondFormats/DataRecord/interface/L1GtTriggerMenuRcd.h"
0116 #include "CondFormats/L1TObjects/interface/L1GtTriggerMenu.h"
0117 
0118 #include "CondFormats/DataRecord/interface/L1GtPsbSetupRcd.h"
0119 #include "CondFormats/L1TObjects/interface/L1GtPsbSetup.h"
0120 
0121 #include "CondFormats/DataRecord/interface/L1CaloGeometryRecord.h"  //Record spelled out
0122 #include "CondFormats/L1TObjects/interface/L1CaloGeometry.h"
0123 
0124 #include "CondFormats/DataRecord/interface/L1MuDTTFMasksRcd.h"
0125 #include "CondFormats/L1TObjects/interface/L1MuDTTFMasks.h"
0126 
0127 #include "CondFormats/DataRecord/interface/L1MuGMTChannelMaskRcd.h"
0128 #include "CondFormats/L1TObjects/interface/L1MuGMTChannelMask.h"
0129 
0130 #include "CondFormats/DataRecord/interface/L1RCTChannelMaskRcd.h"
0131 #include "CondFormats/L1TObjects/interface/L1RCTChannelMask.h"
0132 
0133 #include "CondFormats/DataRecord/interface/L1RCTNoisyChannelMaskRcd.h"
0134 #include "CondFormats/L1TObjects/interface/L1RCTNoisyChannelMask.h"
0135 
0136 #include "CondFormats/DataRecord/interface/L1GctChannelMaskRcd.h"
0137 #include "CondFormats/L1TObjects/interface/L1GctChannelMask.h"
0138 
0139 #include "CondFormats/DataRecord/interface/L1GtPrescaleFactorsAlgoTrigRcd.h"
0140 //#include "CondFormats/L1TObjects/interface/L1GtPrescaleFactorsAlgoTrig.h"
0141 #include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
0142 
0143 #include "CondFormats/DataRecord/interface/L1GtPrescaleFactorsTechTrigRcd.h"
0144 //#include "CondFormats/L1TObjects/interface/L1GtPrescaleFactorsTechTrig.h"
0145 #include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
0146 
0147 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskAlgoTrigRcd.h"
0148 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskAlgoTrig.h"
0149 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
0150 
0151 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskTechTrigRcd.h"
0152 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskTechTrig.h"
0153 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
0154 
0155 #include "CondFormats/DataRecord/interface/L1GtTriggerMaskVetoTechTrigRcd.h"
0156 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskVetoTechTrig.h"
0157 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
0158 
0159 //#include "CondFormats/DataRecord/interface/NumL1CondRcd.h"
0160 //#include "CondFormats/L1TObjects/interface/NumL1Cond.h"
0161 
0162 class L1TConfigDumper : public edm::one::EDAnalyzer<> {
0163 public:
0164   explicit L1TConfigDumper(const edm::ParameterSet&);
0165 
0166   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0167 
0168 private:
0169   void analyze(const edm::Event&, const edm::EventSetup&) override;
0170 
0171   // ----------member data ---------------------------
0172   edm::ESGetToken<L1TriggerKeyList, L1TriggerKeyListRcd> AToken_;
0173   edm::ESGetToken<L1TriggerKey, L1TriggerKeyRcd> BToken_;
0174   edm::ESGetToken<L1CaloEtScale, L1JetEtScaleRcd> CToken_;
0175   edm::ESGetToken<L1CaloEtScale, L1EmEtScaleRcd> DToken_;
0176   edm::ESGetToken<L1CaloEtScale, L1HtMissScaleRcd> EToken_;
0177   edm::ESGetToken<L1CaloEtScale, L1HfRingEtScaleRcd> FToken_;
0178   edm::ESGetToken<L1MuTriggerScales, L1MuTriggerScalesRcd> GToken_;
0179   edm::ESGetToken<L1MuTriggerPtScale, L1MuTriggerPtScaleRcd> HToken_;
0180   edm::ESGetToken<L1MuGMTScales, L1MuGMTScalesRcd> IToken_;
0181   edm::ESGetToken<L1MuCSCTFConfiguration, L1MuCSCTFConfigurationRcd> JToken_;
0182   edm::ESGetToken<L1MuCSCTFAlignment, L1MuCSCTFAlignmentRcd> KToken_;
0183   edm::ESGetToken<L1MuCSCPtLut, L1MuCSCPtLutRcd> LToken_;
0184   edm::ESGetToken<L1MuDTEtaPatternLut, L1MuDTEtaPatternLutRcd> MToken_;
0185   edm::ESGetToken<L1MuDTExtLut, L1MuDTExtLutRcd> NToken_;
0186   edm::ESGetToken<L1MuDTPhiLut, L1MuDTPhiLutRcd> OToken_;
0187   edm::ESGetToken<L1MuDTPtaLut, L1MuDTPtaLutRcd> PToken_;
0188   edm::ESGetToken<L1MuDTQualPatternLut, L1MuDTQualPatternLutRcd> QToken_;
0189   edm::ESGetToken<L1MuDTTFParameters, L1MuDTTFParametersRcd> RToken_;
0190   edm::ESGetToken<L1RPCConfig, L1RPCConfigRcd> SToken_;
0191   edm::ESGetToken<L1RPCConeDefinition, L1RPCConeDefinitionRcd> TToken_;
0192   edm::ESGetToken<L1RPCHsbConfig, L1RPCHsbConfigRcd> UToken_;
0193   edm::ESGetToken<L1RPCBxOrConfig, L1RPCBxOrConfigRcd> VToken_;
0194   edm::ESGetToken<L1MuGMTParameters, L1MuGMTParametersRcd> WToken_;
0195   edm::ESGetToken<L1RCTParameters, L1RCTParametersRcd> XToken_;
0196   edm::ESGetToken<L1CaloEcalScale, L1CaloEcalScaleRcd> YToken_;
0197   edm::ESGetToken<L1CaloHcalScale, L1CaloHcalScaleRcd> ZToken_;
0198   edm::ESGetToken<L1GctJetFinderParams, L1GctJetFinderParamsRcd> AAToken_;
0199   edm::ESGetToken<L1GtBoardMaps, L1GtBoardMapsRcd> BBToken_;
0200   edm::ESGetToken<L1GtParameters, L1GtParametersRcd> CCToken_;
0201   edm::ESGetToken<L1GtStableParameters, L1GtStableParametersRcd> DDToken_;
0202   edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd> EEToken_;
0203   edm::ESGetToken<L1GtTriggerMenu, L1GtTriggerMenuRcd> FFToken_;
0204   edm::ESGetToken<L1GtPsbSetup, L1GtPsbSetupRcd> GGToken_;
0205   edm::ESGetToken<L1CaloGeometry, L1CaloGeometryRecord> HHToken_;
0206   edm::ESGetToken<L1MuDTTFMasks, L1MuDTTFMasksRcd> IIToken_;
0207   edm::ESGetToken<L1MuGMTChannelMask, L1MuGMTChannelMaskRcd> JJToken_;
0208   edm::ESGetToken<L1RCTChannelMask, L1RCTChannelMaskRcd> KKToken_;
0209   edm::ESGetToken<L1RCTNoisyChannelMask, L1RCTNoisyChannelMaskRcd> LLToken_;
0210   edm::ESGetToken<L1GctChannelMask, L1GctChannelMaskRcd> MMToken_;
0211   edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd> NNToken_;
0212   edm::ESGetToken<L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd> OOToken_;
0213   edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd> PPToken_;
0214   edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd> QQToken_;
0215   edm::ESGetToken<L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd> RRToken_;
0216 };
0217 
0218 L1TConfigDumper::L1TConfigDumper(const edm::ParameterSet& iConfig)
0219     : AToken_(esConsumes()),
0220       BToken_(esConsumes()),
0221       CToken_(esConsumes()),
0222       DToken_(esConsumes()),
0223       EToken_(esConsumes()),
0224       FToken_(esConsumes()),
0225       GToken_(esConsumes()),
0226       HToken_(esConsumes()),
0227       IToken_(esConsumes()),
0228       JToken_(esConsumes()),
0229       KToken_(esConsumes()),
0230       LToken_(esConsumes()),
0231       MToken_(esConsumes()),
0232       NToken_(esConsumes()),
0233       OToken_(esConsumes()),
0234       PToken_(esConsumes()),
0235       QToken_(esConsumes()),
0236       RToken_(esConsumes()),
0237       SToken_(esConsumes()),
0238       TToken_(esConsumes()),
0239       UToken_(esConsumes()),
0240       VToken_(esConsumes()),
0241       WToken_(esConsumes()),
0242       XToken_(esConsumes()),
0243       YToken_(esConsumes()),
0244       ZToken_(esConsumes()),
0245       AAToken_(esConsumes()),
0246       BBToken_(esConsumes()),
0247       CCToken_(esConsumes()),
0248       DDToken_(esConsumes()),
0249       EEToken_(esConsumes()),
0250       FFToken_(esConsumes()),
0251       GGToken_(esConsumes()),
0252       HHToken_(esConsumes()),
0253       IIToken_(esConsumes()),
0254       JJToken_(esConsumes()),
0255       KKToken_(esConsumes()),
0256       LLToken_(esConsumes()),
0257       MMToken_(esConsumes()),
0258       NNToken_(esConsumes()),
0259       OOToken_(esConsumes()),
0260       PPToken_(esConsumes()),
0261       QQToken_(esConsumes()),
0262       RRToken_(esConsumes()) {}
0263 
0264 void L1TConfigDumper::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {
0265   using namespace edm;
0266 
0267   edm::ESHandle<L1TriggerKeyList> A = iSetup.getHandle(AToken_);
0268 
0269   edm::ESHandle<L1TriggerKey> B = iSetup.getHandle(BToken_);
0270 
0271   edm::ESHandle<L1CaloEtScale> C = iSetup.getHandle(CToken_);
0272 
0273   edm::ESHandle<L1CaloEtScale> D = iSetup.getHandle(DToken_);
0274 
0275   edm::ESHandle<L1CaloEtScale> E = iSetup.getHandle(EToken_);
0276 
0277   edm::ESHandle<L1CaloEtScale> F = iSetup.getHandle(FToken_);
0278 
0279   edm::ESHandle<L1MuTriggerScales> G = iSetup.getHandle(GToken_);
0280 
0281   edm::ESHandle<L1MuTriggerPtScale> H = iSetup.getHandle(HToken_);
0282 
0283   edm::ESHandle<L1MuGMTScales> I = iSetup.getHandle(IToken_);
0284 
0285   edm::ESHandle<L1MuCSCTFConfiguration> J = iSetup.getHandle(JToken_);
0286 
0287   edm::ESHandle<L1MuCSCTFAlignment> K = iSetup.getHandle(KToken_);
0288 
0289   edm::ESHandle<L1MuCSCPtLut> L = iSetup.getHandle(LToken_);
0290 
0291   edm::ESHandle<L1MuDTEtaPatternLut> M = iSetup.getHandle(MToken_);
0292 
0293   edm::ESHandle<L1MuDTExtLut> N = iSetup.getHandle(NToken_);
0294 
0295   edm::ESHandle<L1MuDTPhiLut> O = iSetup.getHandle(OToken_);
0296 
0297   edm::ESHandle<L1MuDTPtaLut> P = iSetup.getHandle(PToken_);
0298 
0299   edm::ESHandle<L1MuDTQualPatternLut> Q = iSetup.getHandle(QToken_);
0300 
0301   edm::ESHandle<L1MuDTTFParameters> R = iSetup.getHandle(RToken_);
0302 
0303   edm::ESHandle<L1RPCConfig> S = iSetup.getHandle(SToken_);
0304 
0305   edm::ESHandle<L1RPCConeDefinition> T = iSetup.getHandle(TToken_);
0306 
0307   edm::ESHandle<L1RPCHsbConfig> U = iSetup.getHandle(UToken_);
0308 
0309   edm::ESHandle<L1RPCBxOrConfig> V = iSetup.getHandle(VToken_);
0310 
0311   edm::ESHandle<L1MuGMTParameters> W = iSetup.getHandle(WToken_);
0312 
0313   edm::ESHandle<L1RCTParameters> X = iSetup.getHandle(XToken_);
0314 
0315   edm::ESHandle<L1CaloEcalScale> Y = iSetup.getHandle(YToken_);
0316 
0317   edm::ESHandle<L1CaloHcalScale> Z = iSetup.getHandle(ZToken_);
0318 
0319   edm::ESHandle<L1GctJetFinderParams> AA = iSetup.getHandle(AAToken_);
0320 
0321   edm::ESHandle<L1GtBoardMaps> BB = iSetup.getHandle(BBToken_);
0322 
0323   edm::ESHandle<L1GtParameters> CC = iSetup.getHandle(CCToken_);
0324 
0325   edm::ESHandle<L1GtStableParameters> DD = iSetup.getHandle(DDToken_);
0326 
0327   edm::ESHandle<L1GtTriggerMask> EE = iSetup.getHandle(EEToken_);
0328 
0329   edm::ESHandle<L1GtTriggerMenu> FF = iSetup.getHandle(FFToken_);
0330 
0331   edm::ESHandle<L1GtPsbSetup> GG = iSetup.getHandle(GGToken_);
0332 
0333   edm::ESHandle<L1CaloGeometry> HH = iSetup.getHandle(HHToken_);
0334 
0335   edm::ESHandle<L1MuDTTFMasks> II = iSetup.getHandle(IIToken_);
0336 
0337   edm::ESHandle<L1MuGMTChannelMask> JJ = iSetup.getHandle(JJToken_);
0338 
0339   edm::ESHandle<L1RCTChannelMask> KK = iSetup.getHandle(KKToken_);
0340 
0341   edm::ESHandle<L1RCTNoisyChannelMask> LL = iSetup.getHandle(LLToken_);
0342 
0343   edm::ESHandle<L1GctChannelMask> MM = iSetup.getHandle(MMToken_);
0344 
0345   edm::ESHandle<L1GtPrescaleFactors> NN = iSetup.getHandle(NNToken_);
0346 
0347   edm::ESHandle<L1GtPrescaleFactors> OO = iSetup.getHandle(OOToken_);
0348 
0349   edm::ESHandle<L1GtTriggerMask> PP = iSetup.getHandle(PPToken_);
0350 
0351   edm::ESHandle<L1GtTriggerMask> QQ = iSetup.getHandle(QQToken_);
0352 
0353   edm::ESHandle<L1GtTriggerMask> RR = iSetup.getHandle(RRToken_);
0354 
0355   //edm::ESHandle< NumL1Cond > SS;
0356   //iSetup.get< NumL1CondRcd >().get( SS) ;
0357 
0358   // config driven printout of payloads:
0359   //rctParam->print(std::cout);
0360 
0361   //AA->print(std::cout); // no member named 'print'
0362   CC->print(std::cout);
0363   GG->print(std::cout);
0364   int numberConditionChips = 1;
0365   FF->print(std::cout, numberConditionChips);
0366   J->print(std::cout);
0367   II->print();
0368   //W->print(std::cout); // no member named 'print'
0369   KK->print(std::cout);
0370   X->print(std::cout);
0371   //U->print(std::cout); // no member named 'print'
0372 }
0373 
0374 // ------------ method fills 'descriptions' with the allowed parameters for the module  ------------
0375 void L1TConfigDumper::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
0376   //The following says we do not know what parameters are allowed so do no validation
0377   // Please change this to state exactly what you do use, even if it is no parameters
0378   edm::ParameterSetDescription desc;
0379   desc.setUnknown();
0380   descriptions.addDefault(desc);
0381 }
0382 
0383 //define this as a plug-in
0384 DEFINE_FWK_MODULE(L1TConfigDumper);