ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypo
src
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
21
namespace
HypoJet
{
22
class
IJet;
23
}
24
25
26
class
ITrigJetHypoInfoCollector
;
27
28
class
MultiplicityCondition
:
public
ICondition
{
29
public
:
30
31
32
MultiplicityCondition
(std::size_t multMin, std::size_t multMax);
33
34
35
~MultiplicityCondition
()
override
{}
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
MultiplicityCondition
Definition:
MultiplicityCondition.h:28
MultiplicityCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition:
MultiplicityCondition.cxx:21
MultiplicityCondition::MultiplicityCondition
MultiplicityCondition(std::size_t multMin, std::size_t multMax)
Definition:
MultiplicityCondition.cxx:14
ITrigJetHypoInfoCollector
Definition:
ITrigJetHypoInfoCollector.h:9
ICondition
Definition:
ICondition.h:22
MultiplicityCondition::toString
std::string toString() const override
Definition:
MultiplicityCondition.cxx:42
MultiplicityCondition::s_capacity
static const unsigned int s_capacity
Definition:
MultiplicityCondition.h:50
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition:
HypoJetDefs.h:27
MultiplicityCondition::m_multMin
std::size_t m_multMin
Definition:
MultiplicityCondition.h:46
MultiplicityCondition::capacity
virtual unsigned int capacity() const override
Definition:
MultiplicityCondition.h:41
MultiplicityCondition::m_multMax
std::size_t m_multMax
Definition:
MultiplicityCondition.h:47
MultiplicityCondition::~MultiplicityCondition
~MultiplicityCondition() override
Definition:
MultiplicityCondition.h:35
ICondition.h
HypoJet
Definition:
AcceptAllCondition.h:19
Generated on Sun Dec 22 2024 21:14:53 for ATLAS Offline Software by
1.8.18