//--------------------------------------------------------------------------
// File and Version Information:
// $Id: KanEvtHeaderEntryK.cc,v 1.3 2004/08/06 06:13:09 bartoldu Exp $
//
// Description:
// Persistent class for KanEvtHeaderEntry - implementation
//
// Environment:
// Software developed for the BaBar Detector at the SLAC B-Factory.
//
// Author List:
// Matthias Steinke
//
//------------------------------------------------------------------------
//----------------
// Babar header --
//----------------
#include "BaBar/BaBar.hh"
//-----------------------
// This Class's Header --
//-----------------------
#include "KanEvent/KanEvtHeaderEntryK.hh"
//---------------
// C++ Headers --
//---------------
#include "TClass.h"
#include <assert.h>
#include <string>
#include <iomanip>
using std::endl;
using std::ostream;
using std::setw;
//-------------------------------
// Collaborating Class Headers --
//-------------------------------
//-----------------------------------------------------------------------
// Local Macros, Typedefs, Structures, Unions and Forward Declarations --
//-----------------------------------------------------------------------
ClassImp(KanEvtHeaderEntryK) ;
//----------------
// Constructors --
//----------------
KanEvtHeaderEntryK::KanEvtHeaderEntryK()
:KanEvtHeaderEntryI(){
}
//--------------
// Destructor --
//--------------
KanEvtHeaderEntryK::~KanEvtHeaderEntryK() {
}
//--------------
// Operations --
//--------------
void
KanEvtHeaderEntryK::print(ostream& os) const {
// Only print something for non-null entries
if (KanCompMap::getUnusedIndex() != compNameIndex()) {
os << KanCompMap::name(compNameIndex()) << " ";
if (isBorrowed()) {
os << "(borrowed) ";
} else {
os << "(owned) ";
}
os << "file=" << setw(7) << fileNameIndex() << " "
<< "uuid=" << setw(7) << uuidNameIndex() << " "
<< "evt=" << setw(7) << eventIndex();
os << endl;
}
}
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.
|