StBTofHitMaker Class Reference

#include <StBTofHitMaker.h>

Inheritance diagram for StBTofHitMaker:

StRTSBaseMaker StMaker

List of all members.

Public Member Functions

 StBTofHitMaker (const char *name="tof_raw")
 Default constructor.
void Clear (Option_t *option="")
 User defined functions.
Int_t Init ()
Int_t InitRun (Int_t)
Int_t FinishRun (Int_t)
Int_t Finish ()
Int_t Make ()
vector< TofRawHit > getLeadingHits ()
 obtain the whole list of leading edge hits
vector< TofRawHit > getTrailingHits ()
 obtain the whole list of trainling edge hits
virtual const char * GetCVS () const
 cvs

Protected Member Functions

StRtsTable * GetNextRaw ()
 This is an overloaded member function, provided for convenience.
StRtsTable * GetNextRaw (int sec)
 This is an overloaded member function, provided for convenience.
StBTofCollection * GetBTofCollection ()


Detailed Description

Class to read in TOF data from DAQ and store into StBTofCollection

Definition at line 57 of file StBTofHitMaker.h.


Member Function Documentation

Int_t StBTofHitMaker::Finish (  )  [virtual]

Terminate a run. Place to make operations on histograms, normalization,etc.

Reimplemented from StMaker.

Definition at line 106 of file StBTofHitMaker.cxx.

References Clear(), and kStOK.

StBTofCollection * StBTofHitMaker::GetBTofCollection (  )  [protected]

This method is to obtain the btofCollection from StEvent. If StEvent is in the chain, retrieve it; if no StEvent in the chain, a new StEvent is created.

Get StEvent if any at once

Need to create the hit collection

Save the hit collection to StEvent

Definition at line 117 of file StBTofHitMaker.cxx.

Referenced by Make().

StRtsTable * StBTofHitMaker::GetNextRaw ( int  sec  )  [protected, virtual]

This is an overloaded member function, provided for convenience.

Returns:
the DAQ data for the bank "raw" from sector sec if exists
See also:
"A DAQ_READER Cookbook"

Reimplemented from StRTSBaseMaker.

Definition at line 138 of file StBTofHitMaker.cxx.

References StRTSBaseMaker::DaqDta(), and StRTSBaseMaker::GetNextLegacy().

StRtsTable * StBTofHitMaker::GetNextRaw (  )  [protected, virtual]

This is an overloaded member function, provided for convenience.

Returns:
the DAQ data for the bank "raw" if exists
See also:
"A DAQ_READER Cookbook"

Query RTS/tof/raw cluster data from DAQ system

Reimplemented from StRTSBaseMaker.

Definition at line 148 of file StBTofHitMaker.cxx.

References StRTSBaseMaker::DaqDta(), and StRTSBaseMaker::GetNextLegacy().

Referenced by Make().

Int_t StBTofHitMaker::Make (  )  [virtual]

One has to implement this method to access the concrete detector subsystem DAQ information via the suitable method such as GetNextRaw, GetNextAdc, GetNextLegacy, GetNext, parse it and make it available for the STAR production chain

Unpack TOF raw data from daq structure

BTofHeader should be filled before making BTofHits (trigger selection)

Implements StRTSBaseMaker.

Definition at line 160 of file StBTofHitMaker.cxx.

References GetBTofCollection(), GetNextRaw(), and kStOk.


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

Generated on Fri Feb 10 04:27:58 2012 for StRoot by  doxygen 1.5.9