|
//____________________________________________________________________ // // RDO (Reduced Data Object) for the trigger hodoscope // in front of D1 (used in 2001/02 pp running - not useful for // HI running (at least not AuAu). // Since there are at most 3 slats hit the data structure is // fixed. // The slats are numbered 1,2,3 (counting from the beam side). // //____________________________________________________________________ // $Id: BrTd1Rdo.cxx,v 1.1 2002/02/08 21:32:21 videbaek Exp $ // $Author: videbaek $ // $Date: 2002/02/08 21:32:21 $ // $Copyright: 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrTd1Rdo #include "BrTd1Rdo.h" #endif #if !defined BRAT_BrIostream #include "BrIostream.h" #endif //____________________________________________________________________ ClassImp(BrTd1Rdo); //____________________________________________________________________ BrTd1Rdo::BrTd1Rdo() : BrDataObject() { // Default constructor, do not use } //____________________________________________________________________ BrTd1Rdo::BrTd1Rdo(const char* name, const char* title) : BrDataObject(name, title) { // Named constructor for(int i=0; i<3; i++){ fStat[i]=0; fDe[i]=0; fYpos[i]=0; fXpos[i]=0; fStat[i]=0; } fNhits=0; } //____________________________________________________________________ BrTd1Rdo::~BrTd1Rdo() { } //____________________________________________________________________ void BrTd1Rdo::Print(Option_t* option) const { // Print this data object // // Options: // A Array data // other options are passed on. // cout << "BrTd1Rdo: " << GetName() << "(" << GetTitle() << ")" << endl; TString opt(option); opt.ToLower(); if (opt.Contains("a")) { cout << "Hit Entries: " << setw(7) << GetNhits() << endl; for (Int_t i = 0; i < 3; i++){ int slat = i+1; if(!GetStatus(slat)) continue; cout << " Slat No. " << setw(4) << slat << "n"; cout << " Time " << setw(6) << GetTime(slat) << "n"; cout << " dE " << setw(6) << GetDe(slat) << "n"; cout << " Ypos " << setw(6) << GetYpos(slat) << "n"; } cout << endl; } } //____________________________________________________________________ void BrTd1Rdo::AddHit(Int_t slat, Float_t tof, Float_t de, Float_t posY, Float_t posX) { fTime[slat-1] = tof; fDe[slat-1] = de; fYpos[slat-1] = posY; fXpos[slat-1] = posX; fStat[slat-1] = 1; fNhits++; } //____________________________________________________________________ // // $Log: BrTd1Rdo.cxx,v $ // Revision 1.1 2002/02/08 21:32:21 videbaek // Td1 trigger counter data object added // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|