4 #include <cp3_llbb/Framework/interface/Analyzer.h>
5 #include <cp3_llbb/Framework/interface/Category.h>
7 #include <cp3_llbb/Framework/interface/MuonsProducer.h>
10 virtual bool event_in_category_pre_analyzers(
const ProducersManager& producers)
const override {
12 return muons.p4.size() >= 2;
19 virtual void register_cuts(
CutManager& manager)
override {
20 manager.new_cut(
"muon_1_pt",
"pt > 30");
21 manager.new_cut(
"muon_2_pt",
"pt > 10");
26 if (muons.p4[0].Pt() > 30)
27 manager.pass_cut(
"muon_1_pt");
29 if (muons.p4[1].Pt() > 10)
30 manager.pass_cut(
"muon_2_pt");
36 TestAnalyzer(
const std::string& name,
const ROOT::TreeGroup& tree_,
const edm::ParameterSet& config):
37 Analyzer(name, tree_, config) {
43 virtual void registerCategories(
CategoryManager& manager,
const edm::ParameterSet& config) {
44 manager.new_category<
TwoMuonsCategory>(
"two_muons",
"At least two muons category", config);
Definition: AnalyzersManager.h:10
Definition: Category.h:88
Definition: Category.h:20
Definition: Analyzer.h:28
Definition: MuonsProducer.h:12
Definition: ProducersManager.h:10
Definition: TestAnalyzer.h:34
Definition: TestAnalyzer.h:9