File indexing completed on 2024-04-06 12:18:27
0001 #ifndef HLTGlobalSums_h
0002 #define HLTGlobalSums_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0017 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0018 #include <string>
0019 #include <vector>
0020
0021
0022
0023
0024
0025 template <typename T>
0026 class HLTGlobalSums : public HLTFilter {
0027 public:
0028 explicit HLTGlobalSums(const edm::ParameterSet&);
0029 ~HLTGlobalSums() override;
0030 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0031 bool hltFilter(edm::Event&,
0032 const edm::EventSetup&,
0033 trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0034
0035 private:
0036
0037 edm::InputTag inputTag_;
0038 edm::EDGetTokenT<std::vector<T> > inputToken_;
0039 int triggerType_;
0040 std::string observable_;
0041 double min_, max_;
0042 int min_N_;
0043 int tid_;
0044 };
0045
0046 #endif