ATLAS Offline Software
Loading...
Searching...
No Matches
MultiplicityCondition.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGHLTJETHYPO_MULTIPLICITYCONDITION_H
6#define TRIGHLTJETHYPO_MULTIPLICITYCONDITION_H
7
8/********************************************************************
9 *
10 * NAME: MultiplicityCondition.h
11 * PACKAGE: Trigger/TrigHypothesis/TrigHLTJetHypo
12 *
13 * AUTHOR: P. Sherwood
14 *********************************************************************/
15
16#include "./ICondition.h"
17
18#include <string>
19
20
21namespace HypoJet{
22 class IJet;
23}
24
25
27
29 public:
30
31
32 MultiplicityCondition(std::size_t multMin, std::size_t multMax);
33
34
36
37 bool isSatisfied(const HypoJetVector&,
38 const std::unique_ptr<ITrigJetHypoInfoCollector>&) const override;
39
40 std::string toString() const override;
41 virtual unsigned int capacity() const override {return s_capacity;}
42
43 private:
44
45 // test is min<= mult < max, so max = last accepted value+ 1
46 std::size_t m_multMin;
47 std::size_t m_multMax;
48
49 // number of jets unspecified - signalled by 0.
50 const static unsigned int s_capacity{0};
51
52
53};
54
55#endif
std::vector< pHypoJet > HypoJetVector
Definition HypoJetDefs.h:27
std::string toString() const override
static const unsigned int s_capacity
MultiplicityCondition(std::size_t multMin, std::size_t multMax)
virtual unsigned int capacity() const override
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override