HerdSoftware  0.1.1
Public Member Functions | Private Attributes | List of all members
TrdTravMatReader Class Reference

Class for reading output of . More...

#include <TrdTravMatReader.h>

Inheritance diagram for TrdTravMatReader:

Public Member Functions

 TrdTravMatReader ()
 Constructor. More...
 
bool SetChain (TChain *chain)
 Sets the chain. More...
 
void GetEntry (Long64_t entry)
 
const std::vector< TrdTravMat > & TraversedMaterial ()
 Retrieves the TRD traversed material for the given primary. More...
 

Private Attributes

std::vector< TrdTravMat > * _travMat
 
TChain * _chain
 

Detailed Description

Class for reading output of .

This class provides methods to read the information about traversed material in TRD as saved by TrdTravMatAction.

Constructor & Destructor Documentation

◆ TrdTravMatReader()

TrdTravMatReader::TrdTravMatReader ( )

Constructor.

Member Function Documentation

◆ GetEntry()

void TrdTravMatReader::GetEntry ( Long64_t  entry)

@ brief Reads the specified entry from the TRD traversed material branch.

Parameters
entryThe desired entry.

◆ SetChain()

bool TrdTravMatReader::SetChain ( TChain *  chain)

Sets the chain.

Parameters
chainThe chain containing the TRD traversed material information.

◆ TraversedMaterial()

const std::vector< TrdTravMat > & TrdTravMatReader::TraversedMaterial ( )

Retrieves the TRD traversed material for the given primary.

Parameters
trackIDThe track ID of the primary particle.
Returns
Vector of the TRD traversed material info (one element per primary particle that traversed the TRD).

Member Data Documentation

◆ _chain

TChain* TrdTravMatReader::_chain
private

◆ _travMat

std::vector<TrdTravMat>* TrdTravMatReader::_travMat
private

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