BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//____________________________________________________________________
// 
//  Dummy class for ZDC digitisation.  Someone knowledgeable on the
//  ZDC's should fill in this class 
// 

//____________________________________________________________________
//
// $Id: BrZdcDigModule.cxx,v 1.1 2001/08/12 10:15:02 cholm Exp $
// $Author: cholm $
// $Date: 2001/08/12 10:15:02 $
// $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov>
//
#ifndef BRAT_BrZdcDigModule
#include "BrZdcDigModule.h"
#endif
#ifndef ROOT_TDirectory
#include "TDirectory.h"
#endif
#ifndef WIN32
#include <iostream>
#else
#include <iostream.h>
#endif

//____________________________________________________________________
ClassImp(BrZdcDigModule);

//____________________________________________________________________
 BrZdcDigModule::BrZdcDigModule()
{
  // Default constructor. DO NOT USE
  SetState(kSetup);
}
//____________________________________________________________________
 BrZdcDigModule::BrZdcDigModule(const Char_t* name, const Char_t* title)
: BrModule(name, title)
{
  // Named Constructor
  SetState(kSetup);
}

//____________________________________________________________________
 void BrZdcDigModule::DefineHistograms()
{
  // Define histograms. They are:
  // <fill in here>

  if (GetState() != kInit) {
    Stop("DefineHistograms", "Must be called after Init"); 
    return;  
  }

  TDirectory* saveDir = gDirectory; 
  TDirectory* histDir = gDirectory->mkdir(GetName()); 
  histDir->cd();

  // Make histograms here 

  gDirectory = saveDir;
}

//____________________________________________________________________
 void BrZdcDigModule::Init()
{
  // Job-level initialisation
  SetState(kInit);
}

//____________________________________________________________________
 void BrZdcDigModule::Begin()
{
  // Run-level initialisation
  SetState(kBegin);
}

//____________________________________________________________________
 void BrZdcDigModule::Event(BrEventNode* inNode, BrEventNode* outNode)
{
  // Per event method
  SetState(kEvent);
}

//____________________________________________________________________
 void BrZdcDigModule::End()
{
  // Run-level finalisation
  SetState(kEnd);
}

//____________________________________________________________________
 void BrZdcDigModule::Finish()
{
  // Job-level finalisation
  SetState(kFinish);
}

//____________________________________________________________________
 void BrZdcDigModule::Print(Option_t* option) const
{
  // Print module information
  // See BrModule::Print for options.
  // In addition this module defines the Option:
  // <fill in here>

  TString opt(option);
  opt.ToLower(); 

  cout << "************** IMPORTANT **************" << endl
       << "  This is a dummy module - nothing"      << endl
       << "  is going inside this module. Please"   << endl
       << "  fill out the methods if you know"      << endl
       << "  about the ZDCs."                       << endl
       << "***************************************" << endl
       << endl;
  BrModule::Print(option); 
  if (opt.Contains("d")) 
   cout << endl 
         << "  Original author: Christian Holm Christensen" << endl
         << "  Last Modifications: " << endl 
         << "    $Author: cholm $" << endl  
         << "    $Date: 2001/08/12 10:15:02 $"   << endl 
         << "    $Revision: 1.1 $ " << endl  
         << endl 
         << "-------------------------------------------------" << endl;
}

//____________________________________________________________________
//
// $Log: BrZdcDigModule.cxx,v $
// Revision 1.1  2001/08/12 10:15:02  cholm
// Added dummy BrZdcDigModule.  Please note that this module does _nothing_
// at the moment.  Some one knowledgeable on the ZDCs should fill out the
// methods in this module.
//
//

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