using namespace std;
# include "hmdccaltable.h"
# include "hmdccal3.h"
# include <iostream>
# include <iomanip>
ClassImp(HMdcCal3)
HMdcCal3 ::HMdcCal3(void){
nHits = 0;
error = 0.;
pos=20000.;
fAddress = 0x00000000;
link = NULL;
}
HMdcCal3 ::HMdcCal3(HMdcCal3 *copy){
nHits = copy->getFlag();
error = copy->getError();
pos=copy->getPos();
fAddress = copy->getAddress();
link = copy->getLink();
}
HMdcCal3::~HMdcCal3(void) {
}
void HMdcCal3::setAddress(Char_t sector, Char_t module, Char_t layer, Short_t cell, Char_t hitNumber){
setSector(sector);
setModule(module);
setLayer(layer);
setCell(cell);
setHitNumber(hitNumber);
}
void HMdcCal3::print(void){
cout << "nHits " << nHits << endl;
cout << "pos " << pos << " +- " << error<< endl;
cout << "address:" << "s: " << getSector() << " m: " << getModule() << " l: " << getLayer() << " c :" << getCell() << " h :" << getHitNumber() << endl << endl;
}
void HMdcCal3::print(ostream &file){
file << "nHits " << nHits << endl;
file << "pos " << pos << " +- " << error << endl;
file << "address:" << "s: " << getSector() << " m: " << getModule() << " l: " << getLayer() << " c :" << getCell() << " h :" << getHitNumber() << endl << endl;
}
Last change: Sat May 22 12:59:57 2010
Last generated: 2010-05-22 12:59
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.