FEDRA emulsion software from the OPERA Collaboration
Functions
EdbCombGen.cxx File Reference
#include "
EdbCombGen.h
"
Include dependency graph for EdbCombGen.cxx:
Functions
ClassImp
(
EdbCombGen
)
EdbCombGen
Function Documentation
◆
ClassImp()
ClassImp
(
EdbCombGen
)
– Author : Valeri Tioukov 31/08/2011 (modified code found in network)
9
:
// Number of items to choose
10
eElements(elements), eNext(
true
)
11
{
12
eSize = elements.GetEntries();
13
if
( eSize > 0 )
14
{
15
// If no argument given, choose all items
16
if
( nitems <= 0 ) eItems = eSize;
17
else
eItems =
min
(nitems, eSize);
18
19
// Bit vector that controls permutations
20
eBits.resize( eSize,
false
);
21
22
// Initialize nItem bits in vector to "true"
23
for
(
int
j = eSize-eItems; j < eSize; j++ ) eBits[j] =
true
;
24
}
25
else
26
eNext =
false
;
// size is 0, so no combinations are possible
27
}
min
float min(TClonesArray *t)
Definition:
bitview.cxx:275
fedra_doxygen
src
libEmath
EdbCombGen.cxx
Generated by
1.9.3