BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//____________________________________________________________________
// 
// 
// 

//____________________________________________________________________
//
// $Id: BrTpcTrackPackage.cxx,v 1.5 2002/01/03 19:54:22 cholm Exp $
// $Author: cholm $
// $Date: 2002/01/03 19:54:22 $
// $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov>
//
#ifndef BRAT_BrTpcTrackPackage
#include "BrTpcTrackPackage.h"
#endif

#ifndef BRAT_BrTpcTrackFollowModule
#include "BrTpcTrackFollowModule.h"
#endif
#ifndef BRAT_BrTableNames
#include "BrTableNames.h"
#endif
#ifndef WIN32
#include <iostream>
#else
#include <iostream.h>
#endif

//____________________________________________________________________

ClassImp(BrTpcTrackPackage);

//____________________________________________________________________
 BrTpcTrackPackage::BrTpcTrackPackage()
{
  // Default constructor. DO NOT USE
  SetState(kSetup);
  fTpcTrackModule = 0;
  fTpcRdoModule = 0;

  // set default parameters
  SetHitsInOutput();
}
//____________________________________________________________________
 BrTpcTrackPackage::BrTpcTrackPackage(const Char_t* name, const Char_t* title)
: BrTpcHitPackage(name, title)
{
  // Named Constructor
  SetState(kSetup);
  fTpcTrackModule = 
    new BrTpcTrackFollowModule(name, Form("%s track follow module", name));
  GetSwitchContainer()->AddModuleAfter(GetTpcHitModule(),
					fTpcTrackModule);
  fTpcRdoModule = 
    new BrTpcRdoModule(name, Form("%s rdo module", name));
  GetSwitchContainer()->AddModuleAfter(fTpcTrackModule,
				       fTpcRdoModule);
  // set default parameters
  SetHitsInOutput();
}

//____________________________________________________________________
 void BrTpcTrackPackage::Init()
{
  // This is where we add the tables deselected to the cleanupcontainer
  BrTpcHitPackage::Init();
  
  if(!fHitsInOutput)
    GetCleanupNodesModule()->AddTable(Form("%s %s", BRTABLENAMES kTpcHit, GetName()));
}

//____________________________________________________________________
 void BrTpcTrackPackage::Print(Option_t* option) const
{
  // Print module information
  // See BrModule::Print for options.
  // In addition this module defines the Option:

  BrTpcHitPackage::Print(option);
  
  cout << "Hits in output     : ";
  if (fHitsInOutput)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;

  TString opt(option);
  opt.ToLower(); 
  
  if (opt.Contains("d")) 
   cout << endl 
         << "  Original author: Peter H Christiansen" << endl
         << "  Last Modifications: " << endl 
         << "    $Author: cholm $" << endl  
         << "    $Date: 2002/01/03 19:54:22 $"   << endl 
         << "    $Revision: 1.5 $ " << endl  
         << endl 
         << "-------------------------------------------------" << endl;
}

//____________________________________________________________________
//
// $Log: BrTpcTrackPackage.cxx,v $
// Revision 1.5  2002/01/03 19:54:22  cholm
// Prepared to use BrTableNames class (or perhaps BrDetectorList) for table names
//
// Revision 1.4  2001/10/12 11:02:30  pchristi
// Added BrTpcRdoModule to the track package.
//
// Revision 1.3  2001/08/16 15:28:36  jens
//
// New classes BrSpectrometerTrackingPackage, BrMrsTrackingPackage and
// BrFfsTrackingPackage.
//
// BrTpcTrackPackage:
// Changed fTrackModule to fTpcTrackModule to make it consistent with
// BrTpcHitPackage. Also changed corresponding getter.
//
// Revision 1.2  2001/08/14 20:10:33  pchristi
// Fixed small Print thing.
//
// Revision 1.1  2001/08/14 19:33:43  pchristi
// Added new tpctrackpackage derived from BrTpcHitPackage and updated
// BrTpcHitPackage to include the new BrCleanupNodesModule. The default is
// now to remove cluster table and in the tracking package the
// hit table as well.
//
//

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on by

Validate HTML
Validate CSS