BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//____________________________________________________________________
// 
// Vertex data class for the Beam-Beam counters  
//
// Contains the time 0 information, the Z position
// status   
//    0: No good vertex
//    1: Good Vertex (from 16+16 tubes)
//
//____________________________________________________________________
//
// $Id: BrInelVertex.cxx,v 1.1 2002/06/07 15:51:30 videbaek Exp $
// $Author: videbaek $
// $Date: 2002/06/07 15:51:30 $
// $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov>
//
//____________________________________________________________________

#ifndef __IOSTREAM__
#include <iostream>
#endif
#ifndef __IOMANIP__
#include <iomanip>
#endif

#ifndef BRAT_BrInelVertex
#include "BrInelVertex.h"
#endif

//____________________________________________________________________
ClassImp(BrInelVertex);

//____________________________________________________________________
 BrInelVertex::BrInelVertex()
  : BrDataObject()
{
  // Default constructor, do not use
  fTime0     = -1;
  fLeftTime  = -1;
  fRightTime = -1;
  fZ         = 999;
  fMethod    = 0;
}

//____________________________________________________________________
 BrInelVertex::BrInelVertex(const Char_t* name, const Char_t* title)
  : BrDataObject(name, title)
{
  // named constructor
  
  fTime0     = -1;
  fLeftTime  = -1;
  fRightTime = -1;
  fZ         = 999;
  fMethod    = 0;
}

//____________________________________________________________________
 BrInelVertex::BrInelVertex(BrInelVertex &vtx) 
  : BrDataObject(vtx.GetName(), vtx.GetTitle()) 
{  
  //Copy constructor
  
  SetZ(vtx.GetZ());
  SetTime0(vtx.GetTime0());
  SetLeftTime(vtx.GetLeftTime());
  SetRightTime(vtx.GetRightTime());
  SetMethod(vtx.GetMethod());
}

//____________________________________________________________________
 void BrInelVertex::Clear()
{
  fMethod    = 0;
  fZ         = 999;
  fTime0     = -1;
  fLeftTime  = -1;
  fRightTime = -1;
}

//____________________________________________________________________
BrInelVertex& BrInelVertex::operator=(BrInelVertex &vtx)
{
  // assign content of vtx to this
  fMethod    = vtx.GetMethod();
  fZ         = vtx.GetZ();
  fTime0     = vtx.GetTime0();
  fLeftTime  = vtx.GetLeftTime();
  fRightTime = vtx.GetRightTime();
  
  return *this;
}

//____________________________________________________________________
 void BrInelVertex::Print(Option_t* option)  const 
{
  // Print information 
  // 
  TString opt(option); 
  opt.ToLower(); 
  
  cout << "BrInelVertex: " << GetName() << "(" << GetTitle() << ")" 
       << endl; 
  
  cout << " Method used:   " << flush; 
  switch (fMethod) {
  case 0:  cout << "none" << endl; break;
  case 1:  cout << "All 16+16" << endl;  break; 
  default: cout << "unknown" << endl;
  }
  
  cout << "    Z position   : " <<  setw(8) << GetZ()    << endl
       << "    Time :       : " <<  setw(8) << GetTime0() << endl
       << "    Left time    : " <<  setw(8) << GetLeftTime() << endl
       << "    Right time   : " <<  setw(8) << GetRightTime() << endl;
}

//____________________________________________________________________
//
// $Log: BrInelVertex.cxx,v $
// Revision 1.1  2002/06/07 15:51:30  videbaek
// Add the InelVertex to the Brat datastructures.
// The layout is copied from that of the BbVertex to make the
// methods similar.
//
//

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