Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:11

0001 #include "FWCore/PluginManager/interface/ModuleDef.h"
0002 #include "FWCore/Framework/interface/MakerMacros.h"
0003 #include "FWCore/Framework/interface/ModuleFactory.h"
0004 #include "FWCore/ServiceRegistry/interface/ServiceMaker.h"
0005 
0006 #include "PhysicsTools/UtilAlgos/interface/CachingVariable.h"
0007 
0008 namespace configurableAnalysis {
0009   constexpr char Jet[] = "pat::Jet";
0010   constexpr char Muon[] = "pat::Muon";
0011   constexpr char MET[] = "pat::MET";
0012   constexpr char Electron[] = "pat::Electron";
0013   constexpr char Tau[] = "pat::Tau";
0014   constexpr char Photon[] = "pat::Photon";
0015 }  // namespace configurableAnalysis
0016 
0017 #include "DataFormats/PatCandidates/interface/Jet.h"
0018 #include "DataFormats/PatCandidates/interface/MET.h"
0019 #include "DataFormats/PatCandidates/interface/Muon.h"
0020 #include "DataFormats/PatCandidates/interface/Tau.h"
0021 #include "DataFormats/PatCandidates/interface/Photon.h"
0022 #include "DataFormats/PatCandidates/interface/Electron.h"
0023 
0024 typedef ExpressionVariable<pat::Jet, configurableAnalysis::Jet> patJetExpressionVariable;
0025 typedef ExpressionVariable<pat::MET, configurableAnalysis::MET> patMETExpressionVariable;
0026 typedef ExpressionVariable<pat::Muon, configurableAnalysis::Muon> patMuonExpressionVariable;
0027 typedef ExpressionVariable<pat::Electron, configurableAnalysis::Electron> patElectronExpressionVariable;
0028 typedef ExpressionVariable<pat::Photon, configurableAnalysis::Photon> patPhotonExpressionVariable;
0029 typedef ExpressionVariable<pat::Tau, configurableAnalysis::Tau> patTauExpressionVariable;
0030 
0031 DEFINE_EDM_PLUGIN(CachingVariableFactory, patJetExpressionVariable, "patJetExpressionVariable");
0032 DEFINE_EDM_PLUGIN(CachingVariableFactory, patMETExpressionVariable, "patMETExpressionVariable");
0033 DEFINE_EDM_PLUGIN(CachingVariableFactory, patMuonExpressionVariable, "patMuonExpressionVariable");
0034 DEFINE_EDM_PLUGIN(CachingVariableFactory, patElectronExpressionVariable, "patElectronExpressionVariable");
0035 DEFINE_EDM_PLUGIN(CachingVariableFactory, patPhotonExpressionVariable, "patPhotonExpressionVariable");
0036 DEFINE_EDM_PLUGIN(CachingVariableFactory, patTauExpressionVariable, "patTauExpressionVariable");
0037 
0038 #include "CommonTools/UtilAlgos/interface/StringCutEventSelector.h"
0039 
0040 //single cut object selector
0041 typedef StringCutEventSelector<pat::Jet> patJetEventSelector;
0042 typedef StringCutEventSelector<pat::Muon> patMuonEventSelector;
0043 typedef StringCutEventSelector<pat::MET> patMETEventSelector;
0044 typedef StringCutEventSelector<pat::Electron> patElectronEventSelector;
0045 typedef StringCutEventSelector<pat::Photon> patPhotonEventSelector;
0046 typedef StringCutEventSelector<pat::Tau> patTauEventSelector;
0047 
0048 //selector with multiple cuts
0049 typedef StringCutsEventSelector<pat::Jet> patJetSEventSelector;
0050 typedef StringCutsEventSelector<pat::Muon> patMuonSEventSelector;
0051 typedef StringCutsEventSelector<pat::MET> patMETSEventSelector;
0052 typedef StringCutsEventSelector<pat::Electron> patElectronSEventSelector;
0053 typedef StringCutsEventSelector<pat::Photon> patPhotonSEventSelector;
0054 typedef StringCutsEventSelector<pat::Tau> patTauSEventSelector;
0055 
0056 //vetoes
0057 typedef StringCutsEventSelector<pat::Jet, false> patJetSEventVetoSelector;
0058 typedef StringCutsEventSelector<pat::Muon, false> patMuonSEventVetoSelector;
0059 typedef StringCutsEventSelector<pat::MET, false> patMETSEventVetoSelector;
0060 typedef StringCutsEventSelector<pat::Electron, false> patElectronSEventVetoSelector;
0061 typedef StringCutsEventSelector<pat::Photon, false> patPhotonSEventVetoSelector;
0062 typedef StringCutsEventSelector<pat::Tau, false> patTauSEventVetoSelector;
0063 //any selector
0064 typedef StringCutEventSelector<pat::Jet, true> patAnyJetEventSelector;
0065 typedef StringCutEventSelector<pat::Muon, true> patAnyMuonEventSelector;
0066 typedef StringCutEventSelector<pat::Electron, true> patAnyElectronEventSelector;
0067 
0068 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patJetEventSelector, "patJetEventSelector");
0069 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patAnyJetEventSelector, "patAnyJetEventSelector");
0070 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patJetSEventSelector, "patJetSEventSelector");
0071 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patJetSEventVetoSelector, "patJetSEventVetoSelector");
0072 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patMETEventSelector, "patMETEventSelector");
0073 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patMETSEventSelector, "patMETSEventSelector");
0074 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patMETSEventVetoSelector, "patMETSEventVeloSelector");
0075 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patMuonEventSelector, "patMuonEventSelector");
0076 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patAnyMuonEventSelector, "patAnyMuonEventSelector");
0077 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patMuonSEventSelector, "patMuonSEventSelector");
0078 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patMuonSEventVetoSelector, "patMuonSEventVetoSelector");
0079 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patElectronEventSelector, "patElectronEventSelector");
0080 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patAnyElectronEventSelector, "patAnyElectronEventSelector");
0081 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patElectronSEventSelector, "patElectronSEventSelector");
0082 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patElectronSEventVetoSelector, "patElectronSEventVetoSelector");
0083 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patPhotonEventSelector, "patPhotonEventSelector");
0084 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patPhotonSEventSelector, "patPhotonSEventSelector");
0085 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patPhotonSEventVetoSelector, "patPhotonSEventVetoSelector");
0086 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patTauEventSelector, "patTauEventSelector");
0087 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patTauSEventSelector, "patTauSEventSelector");
0088 DEFINE_EDM_PLUGIN(EventSelectorFactoryFromHelper, patTauSEventVetoSelector, "patTauSEventVetoSelector");
0089 
0090 #include "PhysicsTools/PatUtils/interface/RazorComputer.h"
0091 DEFINE_EDM_PLUGIN(CachingVariableFactory, RazorBox, "RazorBox");
0092 DEFINE_EDM_PLUGIN(VariableComputerFactory, RazorComputer, "RazorComputer");