BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//____________________________________________________________________
// 
// Package for digitisation of BRAG output data for all FFS
// detectors (T1, T2, C1, TOF1)
// 

//____________________________________________________________________
//
// $Id: BrFfsDigPackage.cxx,v 1.1 2001/08/12 13:39:52 cholm Exp $
// $Author: cholm $
// $Date: 2001/08/12 13:39:52 $
// $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov>
//
#ifndef BRAT_BrFfsDigPackage
#include "BrFfsDigPackage.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

//____________________________________________________________________
ClassImp(BrFfsDigPackage);

//____________________________________________________________________
 BrFfsDigPackage::BrFfsDigPackage()
{
  // Default constructor. DO NOT USE
  SetState(kSetup);
  fT1Module     = 0; 
  fT2Module     = 0; 
  fC1Module     = 0;
  fTof1Module   = 0;
}
//____________________________________________________________________
 BrFfsDigPackage::BrFfsDigPackage(const Char_t* name, const Char_t* title)
  : BrModuleContainer(name, title)
{
  // Named Constructor. Construct all the digisation modules. 
  SetState(kSetup);

  TString dName;

  // T1 digitisation module
  dName = BrDetectorList::GetDetectorName(kBrT1);
  fT1Module = 
    new BrDigitizeTPC(dName, Form("%s digitizer", dName.Data())); 
  AddModule(fT1Module);
   
  // T2 digitisation module
  dName = BrDetectorList::GetDetectorName(kBrT2);
  fT2Module = 
    new BrDigitizeTPC(dName, Form("%s digitizer", dName.Data())); 
  AddModule(fT2Module);
   
  // C1 digitisation module
  dName = BrDetectorList::GetDetectorName(kBrC1);
  fC1Module = 
    new BrC1DigModule(dName, Form("%s digitizer", dName.Data())); 
  AddModule(fC1Module);
  
  // Tof1 digitisation module
  dName = BrDetectorList::GetDetectorName(kBrTOF1);
  fTof1Module = 
    new BrDigitizeTof(dName, Form("%s digitizer", dName.Data())); 
  AddModule(fTof1Module);
  
}

//____________________________________________________________________
 void BrFfsDigPackage::Book()
{
  // Make a directory for FFS data and let the modules do the
  // rest. 
  TDirectory* saveDir = gDirectory; 
  TDirectory* glbDir  = saveDir->mkdir("FFS");
  glbDir->cd();
  
  BrModuleContainer::Book();
  
  gDirectory = saveDir;
}

//____________________________________________________________________
 void BrFfsDigPackage::Print(Option_t* option) const
{
  // Print module information
  // See BrModuleContainer::Print for options.
  TString opt(option);
  opt.ToLower(); 
  
  BrModuleContainer::Print(option); 
  if (opt.Contains("d")) 
   cout << endl 
         << "  Original author: Christian Holm Christensen" << endl
         << "  Last Modifications: " << endl 
         << "    $Author: cholm $" << endl  
         << "    $Date: 2001/08/12 13:39:52 $"   << endl 
         << "    $Revision: 1.1 $ " << endl  
         << endl 
         << "-------------------------------------------------" << endl;
}

//____________________________________________________________________
//
// $Log: BrFfsDigPackage.cxx,v $
// Revision 1.1  2001/08/12 13:39:52  cholm
// Added 4 pacakges for digitisation of global, FFS, BFS, MRS detectors
// seperatly. Using these packages, one can easily set up a full digitisation
// job, using a configuration script with a module section like:
//
//   //__________________________________________________________________
//   // Module: BrBragHeaderModule
//   BrBragHeaderModule* bragHeaderModule =
//     new BrBragHeaderModule("header", "Copy BRAG header");
//   mainModule->AddModule(bragHeaderModule);
//
//   //__________________________________________________________________
//   // Module: BrGlbDigPackage
//   BrGlbDigPackage* glbDigPackage =
//     new BrGlbDigPackage("GLB", "Global digitisation");
//   mainModule->AddModule(glbDigPackage);
//
//   //__________________________________________________________________
//   // Module: BrFfsDigPackage
//   BrFfsDigPackage* ffsDigPackage =
//     new BrFfsDigPackage("FFS", "FFS digitisation");
//   mainModule->AddModule(ffsDigPackage);
//
//   //__________________________________________________________________
//   // Module: BrBfsDigPackage
//   BrBfsDigPackage* bfsDigPackage =
//     new BrBfsDigPackage("BFS", "BFS digitisation");
//   mainModule->AddModule(bfsDigPackage);
//
//   //__________________________________________________________________
//   // Module: BrMrsDigPackage
//   BrMrsDigPackage* mrsDigPackage =
//     new BrMrsDigPackage("MRS", "MRS digitisation");
//   mainModule->AddModule(mrsDigPackage);
//
// This is similar the old BrDigitizeModule, but much more flexible and in
// the true spirit of BRAT.
//
//

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