Classes | Enumerations | Functions | Variables
gar::sdp Namespace Reference

Classes

class  AuxDetIDE
 MC truth information to make RawDigits and do back tracking. More...
 
class  AuxDetSimChannel
 Collection of particles crossing one auxiliary detector cell. More...
 
class  BeamGateInfo
 
class  CaloDeposit
 
class  EnergyDeposit
 
class  GenieParticle
 
class  IDE
 
class  LArDeposit
 

Enumerations

enum  BeamType_t { kUnknown =0, kBNB, kNuMI, kBeamTypeMax }
 Defines category of beams to be stored in sdp::BeamGateInfo. More...
 

Functions

bool operator< (const BeamGateInfo &lhs, const BeamGateInfo &rhs)
 
unsigned int GetRandomNumberSeed ()
 

Variables

static const int NoParticleId = std::numeric_limits<int>::min()
 

Enumeration Type Documentation

Defines category of beams to be stored in sdp::BeamGateInfo.

Enumerator
kUnknown 

Unknown beam type.

kBNB 

BNB.

kNuMI 

NuMI.

kBeamTypeMax 

Max value of enum for iteration.

Definition at line 10 of file BeamTypes.h.

10  {
11  kUnknown=0, ///< Unknown beam type
12  kBNB, ///< BNB
13  kNuMI, ///< NuMI
14  kBeamTypeMax ///< Max value of enum for iteration
15  };
Max value of enum for iteration.
Definition: BeamTypes.h:13
Unknown beam type.
Definition: BeamTypes.h:10
NuMI.
Definition: BeamTypes.h:12
BNB.
Definition: BeamTypes.h:11

Function Documentation

unsigned int gar::sdp::GetRandomNumberSeed ( )
inline

Definition at line 34 of file sim.h.

34  {
35 
36  // the maximum allowed seed for the ::art::RandomNumberGenerator
37  // is 900000000. Use TRandom3 to get the seed value in that range.
38  // Instantiating TRandom3 with a 0 means that its seed is set based
39  // on the TUUID and should always be random, even for jobs running on the
40  // same machine
41  TRandom3 rand(0);
42  return rand.Integer(900000000);
43  }
bool gar::sdp::operator< ( const BeamGateInfo lhs,
const BeamGateInfo rhs 
)

Definition at line 54 of file BeamGateInfo.h.

55  {
56  // Sort by start; in the enormously-unlikely case that two beam
57  // gates (BNB and NuMI?) start at the same time, sort by width.
58  if ( lhs.Start() < rhs.Start() )
59  return true;
60  if ( lhs.Start() == rhs.Start() )
61  return ( lhs.Width() < lhs.Width() );
62  return false;
63  }

Variable Documentation

const int gar::sdp::NoParticleId = std::numeric_limits<int>::min()
static

Definition at line 30 of file sim.h.