Hall C ROOT/C++ Analyzer (hcana)
THcDummySpectrometer Class Reference

A dummy spectrometer apparatus for testing detectors.

This class behaves as a spectrometer apparatus in that it holds detector classes, but it does no reconstruction. It is intended to provide an elegant way to setup a teststand for a detector or a set of detectors, without requiring some "needed" detectors or parameters.

Definition at line 13 of file THcDummySpectrometer.h.

Public Member Functions

TString GetKwPrefix ()
 Returns prefix used for parameters in param files. More...
 
virtual Int_t Reconstruct ()
 Does nothing and returns 0. More...
 
 THcDummySpectrometer (const char *name, const char *description)
 A constructor. More...
 
virtual ~THcDummySpectrometer ()
 A destructor. More...
 

Protected Member Functions

virtual Int_t DefineVariables (EMode mode=kDefine)
 
virtual Int_t ReadDatabase (const TDatime &date)
 
virtual Int_t ReadRunDatabase (const TDatime &date)
 

Protected Attributes

TString fKwPrefix
 

Private Member Functions

 ClassDef (THcDummySpectrometer, 0)
 
 THcDummySpectrometer ()
 

#include <THcDummySpectrometer.h>

Inheritance diagram for THcDummySpectrometer:

Constructor & Destructor Documentation

THcDummySpectrometer::THcDummySpectrometer ( const char *  name,
const char *  description 
)

A constructor.

Parameters
[in]nameName of the apparatus. Is typically "H", "P" or "S" for HMS, SHMS and SOS, respectively.
[in]descriptionDescription of the apparatus.

Definition at line 55 of file THcDummySpectrometer.cxx.

THcDummySpectrometer::~THcDummySpectrometer ( )
virtual

A destructor.

Definition at line 68 of file THcDummySpectrometer.cxx.

THcDummySpectrometer::THcDummySpectrometer ( )
private

Definition at line 105 of file THcDummySpectrometer.cxx.

Member Function Documentation

THcDummySpectrometer::ClassDef ( THcDummySpectrometer  ,
 
)
private
Int_t THcDummySpectrometer::DefineVariables ( EMode  mode = kDefine)
protectedvirtual

Definition at line 92 of file THcDummySpectrometer.cxx.

TString THcDummySpectrometer::GetKwPrefix ( )

Returns prefix used for parameters in param files.

All the parameters read by this apparatus are prefixed with the returned string.

Definition at line 77 of file THcDummySpectrometer.cxx.

Int_t THcDummySpectrometer::ReadDatabase ( const TDatime date)
protectedvirtual

Definition at line 87 of file THcDummySpectrometer.cxx.

Int_t THcDummySpectrometer::ReadRunDatabase ( const TDatime date)
protectedvirtual

Definition at line 82 of file THcDummySpectrometer.cxx.

Int_t THcDummySpectrometer::Reconstruct ( )
virtual

Does nothing and returns 0.

This function is usually responsible for reconstructing the event from the detectors in the spectrometer. Since this is a dummy apparatus, we have a dummy reconstruction.

Definition at line 71 of file THcDummySpectrometer.cxx.

Member Data Documentation

TString THcDummySpectrometer::fKwPrefix
protected

Definition at line 27 of file THcDummySpectrometer.h.

Collaboration diagram for THcDummySpectrometer:

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