|
//____________________________________________________________________ // // BrFfsPackage // A package for tracking in the fron part of the forward spectrometer, // i.e. all the way from cluster reconstruction to track matching in D2. // Nothing related to H1 nor C1 is included so far, i.e. it is on the // to-do-list. //____________________________________________________________________ // // $Id: BrFfsPackage.cxx,v 1.2 2001/11/05 07:52:23 ouerdane Exp $ // $Author: ouerdane $ // $Date: 2001/11/05 07:52:23 $ // $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrFfsPackage #include "BrFfsPackage.h" #endif #ifndef ROOT_TDirectory #include "TDirectory.h" #endif #ifndef WIN32 #include <iostream> #else #include <iostream.h> #endif #ifndef BRAT_BrDetectorList #include "BrDetectorList.h" #endif #ifndef ROOT_TString #include "TString.h" #endif //____________________________________________________________________ ClassImp(BrFfsPackage); //____________________________________________________________________ BrFfsPackage::BrFfsPackage() { // Default constructor. DO NOT USE SetState(kSetup); } //____________________________________________________________________ BrFfsPackage::BrFfsPackage(const Char_t* name, const Char_t* title) : BrModuleContainer(name, title) { // Named Constructor SetState(kSetup); BrDetectorList detectorList; fT1TrackPackage = new BrTpcTrackPackage( detectorList.GetDetectorName( kBrT1 ), Form( "%s tracking package", detectorList.GetDetectorName( kBrT1 ) ) ); fT2TrackPackage = new BrTpcTrackPackage( detectorList.GetDetectorName( kBrT2 ), Form( "%s tracking package", detectorList.GetDetectorName( kBrT2 ) ) ); fSwitchContainer = new BrSwitchContainer( name, Form( "%s switch container", name ) ); fFfsTrackingModule = new BrFfsTrackingModule( name, Form( "%s tracking module", name ) ); AddModule( fT1TrackPackage ); AddModule( fT2TrackPackage ); AddModule( fSwitchContainer ); fSwitchContainer->AddModule( fFfsTrackingModule ); } //____________________________________________________________________ BrFfsPackage::~BrFfsPackage() { // Destructor delete fT1TrackPackage; delete fT2TrackPackage; delete fFfsTrackingModule; delete fSwitchContainer; } //____________________________________________________________________ BrTpcTrackPackage* BrFfsPackage::GetTpcTrackPackage( const Char_t* name ) const { // Return instance of BrTpcTrackPackage according to name BrDetectorList detList; TString n( name ); if ( n == detList.GetDetectorName( kBrT1 ) ) return fT1TrackPackage; else if ( n == detList.GetDetectorName( kBrT2 ) ) return fT2TrackPackage; else { Warning( "GetTpcTrackPackage", "No such tracking package: %s", name ); return NULL; } } //____________________________________________________________________ void BrFfsPackage::Print(Option_t* option) const { // Print module information // See BrModuleContainer::Print for options. // In addition this module defines the Option: // <fill in here> TString opt(option); opt.ToLower(); BrModuleContainer::Print(option); if (opt.Contains("d")) cout << endl << " Original author: Jens Ivar Jordre" << endl << " Last Modifications: " << endl << " $Author: ouerdane $" << endl << " $Date: 2001/11/05 07:52:23 $" << endl << " $Revision: 1.2 $ " << endl << endl << "-------------------------------------------------" << endl; } //____________________________________________________________________ // // $Log: BrFfsPackage.cxx,v $ // Revision 1.2 2001/11/05 07:52:23 ouerdane // changed MRS to Mrs, FFS to Ffs // // Revision 1.1 2001/08/17 16:17:29 jens // // BrXXXTrackingPackage replaced by BrXXXPackage // Removed BrSpectrometerTrackingPackage // // // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|