Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CommonTools
Statistics
interface
PartitionGenerator.h
Go to the documentation of this file.
1
#ifndef _PartitionGenerator_H_
2
#define _PartitionGenerator_H_
3
4
#include <vector>
5
12
class
PartitionGenerator
{
13
public
:
14
typedef
std::vector<int>
Partition
;
15
18
std::vector<Partition>
partitions
(
int
collectionSize,
int
minCollectionSize = 1)
const
;
19
24
std::vector<std::vector<Partition> >
sortedPartitions
(
int
collectionSize,
int
minCollectionSize = 1)
const
;
25
26
private
:
28
class
LessCollections
{
29
public
:
30
bool
operator()
(
const
Partition
&
a
,
const
Partition
&
b
) {
return
a
.size() <
b
.size(); }
31
};
32
};
33
34
#endif
PartitionGenerator::sortedPartitions
std::vector< std::vector< Partition > > sortedPartitions(int collectionSize, int minCollectionSize=1) const
Definition:
PartitionGenerator.cc:34
PartitionGenerator::LessCollections::operator()
bool operator()(const Partition &a, const Partition &b)
Definition:
PartitionGenerator.h:30
PartitionGenerator
Definition:
PartitionGenerator.h:12
b
double b
Definition:
hdecay.h:118
PartitionGenerator::partitions
std::vector< Partition > partitions(int collectionSize, int minCollectionSize=1) const
Definition:
PartitionGenerator.cc:6
a
double a
Definition:
hdecay.h:119
PartitionGenerator::Partition
std::vector< int > Partition
Definition:
PartitionGenerator.h:14
PartitionGenerator::LessCollections
Definition:
PartitionGenerator.h:28
Generated for CMSSW Reference Manual by
1.8.16