FEDRA emulsion software from the OPERA Collaboration
EdbCombGen.cxx File Reference
#include "EdbCombGen.h"
Include dependency graph for EdbCombGen.cxx:

Functions

 ClassImp (EdbCombGen) EdbCombGen
 

Function Documentation

◆ ClassImp()

ClassImp ( EdbCombGen  )
7  : // Number of items to choose
8  eElements(elements), eNext(true)
9 {
10  eSize = elements.GetEntries();
11  if ( eSize > 0 )
12  {
13  // If no argument given, choose all items
14  if ( nitems <= 0 ) eItems = eSize;
15  else eItems = min(nitems, eSize);
16 
17  // Bit vector that controls permutations
18  eBits.resize( eSize, false );
19 
20  // Initialize nItem bits in vector to "true"
21  for ( int j = eSize-eItems; j < eSize; j++ ) eBits[j] = true;
22  }
23  else
24  eNext = false; // size is 0, so no combinations are possible
25 }
float min(TClonesArray *t)
Definition: bitview.cxx:275