|
//____________________________________________________________________ // // Rdo (after first analysis pass) //____________________________________________________________________ // $Id: BrTofRdo.cxx,v 1.4 2002/03/20 19:25:50 videbaek Exp $ // $Author: videbaek $ // $Date: 2002/03/20 19:25:50 $ // $Copyright: 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrTofRdo #include "BrTofRdo.h" #endif #ifndef ROOT_TDirectory #include "TDirectory.h" #endif #ifndef __WIN32 #include <iostream> #include <iomanip> #else #include <iostream.h> #include <iomanip.h> #endif //____________________________________________________________________ ClassImp(BrTofRdo); //____________________________________________________________________ BrTofRdo::BrTofRdo() : BrDataObject(), fTofHits("BrTofRdo::BrTofHit", 0) { // Default constructor, do not use // Fix to allow objects of this class to be extracted an put as a // split branch on a new TTree. fTofHits.BypassStreamer(kFALSE); } //____________________________________________________________________ BrTofRdo::BrTofRdo(const char* name, const char* title) : BrDataObject(name, title), fTofHits("BrTofRdo::BrTofHit", 0) { // Named constructor // Fix to allow objects of this class to be extracted an put as a // split branch on a new TTree. fTofHits.BypassStreamer(kFALSE); } //____________________________________________________________________ BrTofRdo::~BrTofRdo() { fTofHits.Delete(); } //____________________________________________________________________ void BrTofRdo::Clear(Option_t* option) { fTofHits.Clear(); } //____________________________________________________________________ void BrTofRdo::Print(Option_t* option) const { // Print this data object // // Options: // A Array data // I Single data // R Ring data // // other options are passed on. // cout << "BrTofRdo: " << GetName() << "(" << GetTitle() << ")" << endl; TString opt(option); opt.ToLower(); if (opt.Contains("a")) { cout << " Entries: " << setw(7) << GetEntries() << endl; for (Int_t i = 0; i < GetEntries(); i++) GetHit(i)->Print(); } } //____________________________________________________________________ void BrTofRdo::AddHit(Int_t slat, Float_t tof, Float_t tofraw, Float_t energy, Float_t posX, Float_t posY, Float_t posZ) { Int_t idx = fTofHits.GetLast()+1; new(fTofHits[idx]) BrTofHit(slat, tof, tofraw, energy, posX, posY, posZ); } //____________________________________________________________________ ClassImp(BrTofRdo::BrTofHit); //____________________________________________________________________ BrTofRdo::BrTofHit::BrTofHit(Int_t slat, Float_t tof, Float_t tofraw, Float_t energy, Float_t posX, Float_t posY, Float_t posZ) : fSlatNum(slat), fTof(tof), fRawTof(tofraw), fEnergy(energy), fLocalPosX(posX), fLocalPosY(posY), fLocalPosZ(posZ) { // Default constructor } //____________________________________________________________________ void BrTofRdo::BrTofHit::Clear(Option_t* option) { // Clear this object fSlatNum = -1; fTof = -1; fRawTof = -1; fEnergy = -1; fLocalPosX = 99999; fLocalPosY = 99999; fLocalPosZ = 99999; } //____________________________________________________________________ void BrTofRdo::BrTofHit::Print(Option_t* option) const { // Print the data cout << " Slat: " << setw(3) << fSlatNum << endl << " Tof: " << setw(7) << fTof << endl << " Energy: " << setw(7) << fEnergy << endl << " Pos X: " << setw(7) << fLocalPosX << endl << " Pos Y: " << setw(7) << fLocalPosY << endl << " Pos Z: " << setw(7) << fLocalPosZ << endl; } //____________________________________________________________________ // // $Log: BrTofRdo.cxx,v $ // Revision 1.4 2002/03/20 19:25:50 videbaek // Added rawtof to data structure. Used in BrTofRdoModule and pp PID. // // Revision 1.3 2001/08/10 14:06:58 cholm // Fix to allow putting theses on branch in a new TTree - thanks Rene // // Revision 1.2 2001/06/25 14:31:20 cholm // Made Print conform to TObject // // Revision 1.1.1.1 2001/06/21 14:55:02 hagel // Initial revision of brat2 // // Revision 1.1 2001/06/19 12:46:45 ouerdane // Added calibration classes and reconstruction classes. // Brat compiles but these classes haven't been tested in this // context. Be careful if you use them before I (DO) check if // all is ok. // // Note: some classes are still not included (BrTofSlewingModule, // BrTofCscintCalModule, BrTofTdcOffsetModule). Will do that after // Brat2 is available // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|