CbmRoot
CbmPlutoGenerator Class Reference

#include <CbmPlutoGenerator.h>

Inheritance diagram for CbmPlutoGenerator:
[legend]
Collaboration diagram for CbmPlutoGenerator:
[legend]

Public Member Functions

 CbmPlutoGenerator ()
 
 CbmPlutoGenerator (const Char_t *fileName)
 
 CbmPlutoGenerator (std::vector< std::string > fileNames)
 
 CbmPlutoGenerator (const CbmPlutoGenerator &)=delete
 
CbmPlutoGeneratoroperator= (const CbmPlutoGenerator &)=delete
 
virtual ~CbmPlutoGenerator ()
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 
void SetManualPDG (Int_t pdg)
 

Private Member Functions

void CloseInput ()
 forced pdg value for undefined pluto codes More...
 
void CheckFileExist (std::string filename)
 
 ClassDef (CbmPlutoGenerator, 4)
 

Private Attributes

PStaticDatafdata
 
PDataBasefbase
 pluto static data More...
 
Int_t iEvent
 pluto data base More...
 
const Char_t * fFileName
 Event number. More...
 
TChain * fInputChain
 Input file name. More...
 
TClonesArray * fParticles
 Pointer to input file. More...
 
Int_t fPDGmanual
 Particle array from PLUTO. More...
 

Detailed Description

Definition at line 34 of file CbmPlutoGenerator.h.

Constructor & Destructor Documentation

◆ CbmPlutoGenerator() [1/4]

CbmPlutoGenerator::CbmPlutoGenerator ( )

Default constructor (should not be used)

Definition at line 28 of file CbmPlutoGenerator.cxx.

◆ CbmPlutoGenerator() [2/4]

CbmPlutoGenerator::CbmPlutoGenerator ( const Char_t *  fileName)

Standard constructor

Parameters
fileNameThe input (PLUTO) file name

Definition at line 40 of file CbmPlutoGenerator.cxx.

References CheckFileExist(), fInputChain, and fParticles.

◆ CbmPlutoGenerator() [3/4]

CbmPlutoGenerator::CbmPlutoGenerator ( std::vector< std::string >  fileNames)

Constructor with list of input files

Parameters
fileNamesA list of (PLUTO) input file names

Definition at line 58 of file CbmPlutoGenerator.cxx.

References CheckFileExist(), fInputChain, and fParticles.

◆ CbmPlutoGenerator() [4/4]

CbmPlutoGenerator::CbmPlutoGenerator ( const CbmPlutoGenerator )
delete

◆ ~CbmPlutoGenerator()

CbmPlutoGenerator::~CbmPlutoGenerator ( )
virtual

Destructor

Definition at line 77 of file CbmPlutoGenerator.cxx.

References CloseInput(), fbase, and fdata.

Member Function Documentation

◆ CheckFileExist()

void CbmPlutoGenerator::CheckFileExist ( std::string  filename)
private

Check if file exists. Break fatal when it doesn't exist

Definition at line 181 of file CbmPlutoGenerator.cxx.

References buffer.

Referenced by CbmPlutoGenerator().

◆ ClassDef()

CbmPlutoGenerator::ClassDef ( CbmPlutoGenerator  ,
 
)
private

◆ CloseInput()

void CbmPlutoGenerator::CloseInput ( )
private

forced pdg value for undefined pluto codes

Private method CloseInput. Just for convenience. Closes the input file properly. Called from destructor and from ReadEvent.

Definition at line 172 of file CbmPlutoGenerator.cxx.

References fFileName, and fInputChain.

Referenced by ReadEvent(), and ~CbmPlutoGenerator().

◆ operator=()

CbmPlutoGenerator& CbmPlutoGenerator::operator= ( const CbmPlutoGenerator )
delete

◆ ReadEvent()

Bool_t CbmPlutoGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Reads on event from the input file and pushes the tracks onto the stack. Abstract method in base class.

Parameters
primGenpointer to the FairPrimaryGenerator

Definition at line 87 of file CbmPlutoGenerator.cxx.

References CloseInput(), fbase, fInputChain, fParticles, fPDGmanual, PParticle::GetDaughterIndex(), PDataBase::GetParamInt(), PParticle::GetParentIndex(), PParticle::getVertex(), PParticle::ID(), iEvent, and PParticle::Vect4().

◆ SetManualPDG()

void CbmPlutoGenerator::SetManualPDG ( Int_t  pdg)
inline

Definition at line 63 of file CbmPlutoGenerator.h.

References fPDGmanual.

Member Data Documentation

◆ fbase

PDataBase* CbmPlutoGenerator::fbase
private

pluto static data

Definition at line 68 of file CbmPlutoGenerator.h.

Referenced by ReadEvent(), and ~CbmPlutoGenerator().

◆ fdata

PStaticData* CbmPlutoGenerator::fdata
private

Definition at line 67 of file CbmPlutoGenerator.h.

Referenced by ~CbmPlutoGenerator().

◆ fFileName

const Char_t* CbmPlutoGenerator::fFileName
private

Event number.

Definition at line 71 of file CbmPlutoGenerator.h.

Referenced by CloseInput().

◆ fInputChain

TChain* CbmPlutoGenerator::fInputChain
private

Input file name.

Definition at line 72 of file CbmPlutoGenerator.h.

Referenced by CbmPlutoGenerator(), CloseInput(), and ReadEvent().

◆ fParticles

TClonesArray* CbmPlutoGenerator::fParticles
private

Pointer to input file.

Definition at line 73 of file CbmPlutoGenerator.h.

Referenced by CbmPlutoGenerator(), and ReadEvent().

◆ fPDGmanual

Int_t CbmPlutoGenerator::fPDGmanual
private

Particle array from PLUTO.

Definition at line 74 of file CbmPlutoGenerator.h.

Referenced by ReadEvent(), and SetManualPDG().

◆ iEvent

Int_t CbmPlutoGenerator::iEvent
private

pluto data base

Definition at line 70 of file CbmPlutoGenerator.h.

Referenced by ReadEvent().


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