CMS 3D CMS Logo

HLTDoubletDZ.h
Go to the documentation of this file.
1 #ifndef HLTDoubletDZ_h
2 #define HLTDoubletDZ_h
3 
4 //
5 // Class imlements |dZ|<Max for a pair of two objects
6 //
7 
15 
16 #include<string>
17 #include<vector>
18 namespace trigger {
19  class TriggerFilterObjectWithRefs;
20 }
21 
22 //
23 // class declaration
24 //
25 
26 template<typename T1, typename T2>
27 class HLTDoubletDZ : public HLTFilter {
28 
29  typedef std::vector<T1> T1Collection;
31  typedef std::vector<T2> T2Collection;
33 
34  public:
35 
36  explicit HLTDoubletDZ(const edm::ParameterSet&);
37  ~HLTDoubletDZ() override;
38  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
39  bool hltFilter(edm::Event&, const edm::EventSetup&, trigger::TriggerFilterObjectWithRefs & filterproduct) const override;
40  bool getCollections(edm::Event& iEvent, std::vector<T1Ref>& coll1, std::vector<T2Ref>& coll2, trigger::TriggerFilterObjectWithRefs & filterproduct) const;
41  bool computeDZ(edm::Event& iEvent, T1Ref& c1, T2Ref& c2) const;
42 
43  private:
44  // configuration
45  const std::vector<edm::InputTag> originTag1_; // input tag identifying originals 1st product
46  const std::vector<edm::InputTag> originTag2_; // input tag identifying originals 2nd product
47  const edm::InputTag inputTag1_; // input tag identifying filtered 1st product
48  const edm::InputTag inputTag2_; // input tag identifying filtered 2nd product
52  const int triggerType1_;
53  const int triggerType2_;
54  const double minDR_; // minimum dR between two objects to be considered a pair
55  const double maxDZ_; // number of pairs passing cuts required
56  const int minPixHitsForDZ_; // minimum number of required pixel hits to check DZ
57  const int min_N_; // number of pairs passing cuts required
58  const bool checkSC_; // make sure SC constituents are different
59  const bool same_; // 1st and 2nd product are one and the same
60 };
61 
62 #endif //HLTDoubletDZ_h
const int triggerType1_
Definition: HLTDoubletDZ.h:52
edm::EDGetTokenT< reco::ElectronCollection > electronToken_
Definition: HLTDoubletDZ.h:51
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken1_
Definition: HLTDoubletDZ.h:49
const int triggerType2_
Definition: HLTDoubletDZ.h:53
const std::vector< edm::InputTag > originTag1_
Definition: HLTDoubletDZ.h:45
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken2_
Definition: HLTDoubletDZ.h:50
const std::vector< edm::InputTag > originTag2_
Definition: HLTDoubletDZ.h:46
const bool same_
Definition: HLTDoubletDZ.h:59
const edm::InputTag inputTag1_
Definition: HLTDoubletDZ.h:47
int iEvent
Definition: GenABIO.cc:224
const edm::InputTag inputTag2_
Definition: HLTDoubletDZ.h:48
const int min_N_
Definition: HLTDoubletDZ.h:57
const int minPixHitsForDZ_
Definition: HLTDoubletDZ.h:56
const double maxDZ_
Definition: HLTDoubletDZ.h:55
const double minDR_
Definition: HLTDoubletDZ.h:54
std::vector< T1 > T1Collection
Definition: HLTDoubletDZ.h:29
std::vector< T2 > T2Collection
Definition: HLTDoubletDZ.h:31
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::Ref< T2Collection > T2Ref
Definition: HLTDoubletDZ.h:32
edm::Ref< T1Collection > T1Ref
Definition: HLTDoubletDZ.h:30
const bool checkSC_
Definition: HLTDoubletDZ.h:58