CMS 3D CMS Logo

HLTSmartSinglet.h
Go to the documentation of this file.
1 #ifndef HLTSmartSinglet_h
2 #define HLTSmartSinglet_h
3 
20 #include <vector>
21 
23 #include <string>
24 
25 //
26 // class declaration
27 //
28 
29 template <typename T>
30 class HLTSmartSinglet : public HLTFilter {
31 public:
32  explicit HLTSmartSinglet(const edm::ParameterSet&);
33  ~HLTSmartSinglet() override;
34  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
35  bool hltFilter(edm::Event&,
36  const edm::EventSetup&,
37  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
38 
39 private:
40  edm::InputTag inputTag_; // input tag identifying product
41  edm::EDGetTokenT<std::vector<T> > inputToken_; // token identifying product
42  int triggerType_; // triggerType
43  std::string cut_; // smart cut
44  int min_N_; // number of objects passing cuts required
45 
47 };
48 
49 #endif //HLTSmartSinglet_h
ConfigurationDescriptions.h
trigger::TriggerFilterObjectWithRefs
Definition: TriggerFilterObjectWithRefs.h:35
HLTSmartSinglet::HLTSmartSinglet
HLTSmartSinglet(const edm::ParameterSet &)
Definition: HLTSmartSinglet.cc:26
HLTSmartSinglet::triggerType_
int triggerType_
Definition: HLTSmartSinglet.h:42
edm::EDGetTokenT
Definition: EDGetToken.h:33
HLTSmartSinglet::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLTSmartSinglet.cc:41
HLTSmartSinglet::min_N_
int min_N_
Definition: HLTSmartSinglet.h:44
HLTFilter
Definition: HLTFilter.h:28
HLTSmartSinglet
Definition: HLTSmartSinglet.h:30
HLTFilter.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
HLTSmartSinglet::select_
StringCutObjectSelector< T, true > select_
Definition: HLTSmartSinglet.h:46
HLTSmartSinglet::inputTag_
edm::InputTag inputTag_
Definition: HLTSmartSinglet.h:40
edm::EventSetup
Definition: EventSetup.h:58
HLTSmartSinglet::inputToken_
edm::EDGetTokenT< std::vector< T > > inputToken_
Definition: HLTSmartSinglet.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTSmartSinglet::cut_
std::string cut_
Definition: HLTSmartSinglet.h:43
StringCutObjectSelector.h
StringCutObjectSelector< T, true >
HLTSmartSinglet::hltFilter
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
Definition: HLTSmartSinglet.cc:57
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
HLTSmartSinglet::~HLTSmartSinglet
~HLTSmartSinglet() override