GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions
GGSTLostEnergyReader Class Reference

Class for reading output of GGSLostEnergyAction. More...

#include <GGSTLostEnergyReader.h>

Inheritance diagram for GGSTLostEnergyReader:
Inheritance graph
[legend]
Collaboration diagram for GGSTLostEnergyReader:
Collaboration graph
[legend]

Public Member Functions

 GGSTLostEnergyReader ()
 Constructor.
 
 ~GGSTLostEnergyReader ()
 Destructor.
 
bool SetChain (TChain *lostEnergyChain)
 Sets the chain. More...
 
void GetEntry (Long64_t entry)
 
const GGSTLostEnergyInfoGetInfo ()
 Gets the lost energy data object. More...
 
- Public Member Functions inherited from GGSTChainReader
virtual ~GGSTChainReader ()
 Destructor.
 

Detailed Description

Class for reading output of GGSLostEnergyAction.

This class provides methods to read the information about lost energy as saved by GGSLostEnergyAction.

Definition at line 25 of file GGSTLostEnergyReader.h.

Member Function Documentation

void GGSTLostEnergyReader::GetEntry ( Long64_t  entry)
virtual

@ brief Reads the specified entry from the lost energy branch.

Parameters
entryThe desired entry.

Implements GGSTChainReader.

Definition at line 33 of file GGSTLostEnergyReader.cpp.

33  {
34  if (entry != _lostEnergyChain->GetEntries()) {
35  _lostEnergyChain->GetEntry(entry);
36  }
37 }
const GGSTLostEnergyInfo* GGSTLostEnergyReader::GetInfo ( )
inline

Gets the lost energy data object.

Returns
Pointer to lost energy data object.

Definition at line 52 of file GGSTLostEnergyReader.h.

52 { return _lostEnergyInfo; }
bool GGSTLostEnergyReader::SetChain ( TChain *  lostEnergyChain)
virtual

Sets the chain.

This method sets the lost energy chain, from which the informations will be read.

Parameters
lostEnergyChainThe chain containing the lost energy.

Implements GGSTChainReader.

Definition at line 22 of file GGSTLostEnergyReader.cpp.

22  {
23 
24  _lostEnergyChain = lostEnergyChain;
25  if (_lostEnergyChain->SetBranchAddress("lostEnergyInfo", &_lostEnergyInfo) != 0) {
26  return true;
27  } else
28  return false;
29 }

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