xboa
Public Member Functions | Public Attributes | Private Member Functions | Static Private Attributes | List of all members
MausRootHitFactory Class Reference

MausRootHitFactory reads hits of a specified type from a root spill. More...

Inherits HitFactoryBase.

Public Member Functions

def __init__
 Initialise the hit factory. More...
 
def new_spill
 
def make_hit
 Return the next hit from the given spill document. More...
 
def file_types
 List of file types that can be read by this class. More...
 

Public Attributes

 entry
 
 hits
 
 format
 
 tree
 
 spill
 
 spill_number
 

Private Member Functions

def _read_maus_spill
 Read a MAUS spill, converting to MAUS objects. More...
 
def _read_virtual_hits
 Read virtuals from the Spill. More...
 
def _read_primaries
 Read primaries from the Spill. More...
 

Static Private Attributes

dictionary _file_mass_shell
 

Detailed Description

MausRootHitFactory reads hits of a specified type from a root spill.

Definition at line 28 of file _maus_root_hit_factory.py.

Constructor & Destructor Documentation

def __init__ (   self,
  root_tree,
  format,
  entry = 0 
)

Initialise the hit factory.

  • root_tree: a object of type ROOT.TTree that should contain a branch called "Data" containing a list of MAUS.ROOT.TTrees
  • format: format of data to be extracted from the ROOT document
  • entry: entry that will be read to get the ROOT data

Definition at line 37 of file _maus_root_hit_factory.py.

References BuiltinHitFactory.file_types(), MausRootHitFactory.file_types(), MausJsonHitFactory.file_types(), and Hit.file_types.

Member Function Documentation

def new_spill (   self)
def make_hit (   self)

Return the next hit from the given spill document.

Definition at line 61 of file _maus_root_hit_factory.py.

References MausRootHitFactory.hits, MausJsonHitFactory.hits, MausRootHitFactory.new_spill(), MausJsonHitFactory.new_spill(), and HitFactoryBase.new_spill().

def _read_maus_spill (   self)
private
def _read_virtual_hits (   self)
private

Read virtuals from the Spill.

Definition at line 83 of file _maus_root_hit_factory.py.

References MausRootHitFactory.spill_number.

Referenced by MausRootHitFactory._read_maus_spill().

def _read_primaries (   self)
private
def file_types (   cls)

List of file types that can be read by this class.

Definition at line 149 of file _maus_root_hit_factory.py.

Referenced by MausRootHitFactory.__init__().

Member Data Documentation

dictionary _file_mass_shell
staticprivate
Initial value:
1 = {
2  "virtual_hit":"energy",
3  "primary":"p"
4  }

Definition at line 152 of file _maus_root_hit_factory.py.

Referenced by MausRootHitFactory._read_primaries().

entry

Definition at line 40 of file _maus_root_hit_factory.py.

Referenced by MausRootHitFactory.new_spill().

hits
format
tree

Definition at line 43 of file _maus_root_hit_factory.py.

spill
spill_number

The documentation for this class was generated from the following file: