|
//____________________________________________________________________ // // RDO (Reduced Data Object) for the trigger hodoscope // in front of TPM1 (used in 2001/02 pp running - not useful for // HI running (at least not AuAu). // Since there is only one slat data structure is // fixed. // //____________________________________________________________________ // $Id: BrTMrsFRdo.cxx,v 1.1 2002/04/23 15:33:04 videbaek Exp $ // $Author: videbaek $ // $Date: 2002/04/23 15:33:04 $ // $Copyright: 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrTMrsFRdo #include "BrTMrsFRdo.h" #endif #if !defined BRAT_BrIostream #include "BrIostream.h" #endif //____________________________________________________________________ ClassImp(BrTMrsFRdo); //____________________________________________________________________ BrTMrsFRdo::BrTMrsFRdo() : BrDataObject() { // Default constructor, do not use } //____________________________________________________________________ BrTMrsFRdo::BrTMrsFRdo(const char* name, const char* title) : BrDataObject(name, title) { // Named constructor fStat=0; fDe=0; fYpos=0; fXpos=0; fStat=0; fNhits=0; } //____________________________________________________________________ BrTMrsFRdo::~BrTMrsFRdo() { } //____________________________________________________________________ void BrTMrsFRdo::Print(Option_t* option) const { // Print this data object // // Options: // A Array data // other options are passed on. // cout << "BrTMrsFRdo: " << GetName() << "(" << GetTitle() << ")" << endl; TString opt(option); opt.ToLower(); if (opt.Contains("a")) { cout << "Hit Entries: " << setw(7) << GetNhits() << endl; cout << " Time " << setw(6) << GetTime() << "n"; cout << " dE " << setw(6) << GetDe() << "n"; cout << " Ypos " << setw(6) << GetYpos() << "n"; cout << endl; } } //____________________________________________________________________ void BrTMrsFRdo::AddHit(Float_t tof, Float_t de, Float_t posY, Float_t posX) { fTime = tof; fDe = de; fYpos = posY; fXpos = posX; fStat = 1; fNhits++; } //____________________________________________________________________ // // $Log: BrTMrsFRdo.cxx,v $ // Revision 1.1 2002/04/23 15:33:04 videbaek // dd BrTMrsF rdo data object. // // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|