using namespace std;
#include "hhitmatchsim.h"
#include "hlinearcategory.h"
#include "hrichhitsim.h"
#include "hrichutilfunc.h"
#include "richdef.h"
#include <iostream>
#include <iomanip>
ClassImp(HHitMatchSim)
HHitMatchSim::HHitMatchSim() {
reset();
}
HHitMatchSim::~HHitMatchSim() {}
HHitMatchSim::HHitMatchSim(const HHitMatchSim& source) {
}
HHitMatchSim& HHitMatchSim::operator=(const HHitMatchSim& source) {
if (this != &source) {
reset();
resetSim();
nSector= source.nSector;
fRichPhi = source.fRichPhi;
fRichTheta = source.fRichTheta;
nRingX = source.nRingX;
nRingY = source.nRingY;
nRingPatMat = source.nRingPatMat;
nRingHouTra = source.nRingHouTra;
nRingAmplitude = source.nRingAmplitude;
nRingPadNr = source.nRingPadNr;
fRingRadius = source.fRingRadius;
fRingCentroid = source.fRingCentroid;
nRingLocalMax4 = source.nRingLocalMax4;
nCentX = source.nCentX;
nCentY = source.nCentY;
fTests = source.fTests;
fMaxClusterSize = source.fMaxClusterSize;
fMaxThrClusterSize = source.fMaxThrClusterSize;
fRingFitRad=source.fRingFitRad;
fRingFitVar=source.fRingFitVar;
fRingFitTheta=source.fRingFitTheta;
fRingFitPhi=source.fRingFitPhi;
nRingFitNbCoords=source.nRingFitNbCoords;
indRich = source.indRich;
fMdcTheta = source.fMdcTheta;
fMdcPhi = source.fMdcPhi;
fMdcR = source.fMdcR;
fMdcZ = source.fMdcZ;
fClusterSize = source.fClusterSize;
nHitLay = source.nHitLay;
iSegIOFlag = source.iSegIOFlag;
indMdc = source.indMdc;
fTofTof = source.fTofTof;
fTofTheta = source.fTofTheta;
fTofPhi = source.fTofPhi;
indTof = source.indTof;
fShowerTheta = source.fShowerTheta;
fShowerPhi = source.fShowerPhi;
fTofinoTof = source.fTofinoTof;
m_fSum0 = source.m_fSum0;
m_fSum1 = source.m_fSum1;
m_fSum2 = source.m_fSum2;
iTofino_Mult = source.iTofino_Mult;
indShower = source.indShower;
nRichMdcCorr = source.nRichMdcCorr;
nRichKickCorr = source.nRichKickCorr;
nRichTofCorr = source.nRichTofCorr;
nRichShowerCorr = source.nRichShowerCorr;
nMdcTofCorr = source.nMdcTofCorr;
nMdcShowerCorr = source.nMdcShowerCorr;
indKick = source.indKick;
mom = source.mom;
momt = source.momt;
charge = source.charge;
quality = source.quality;
mass = source.mass;
beta = source.beta;
pull = source.pull;
lvec = source.lvec;
isFakeFlag = source.isFakeFlag;
isLeptonFlag = source.isLeptonFlag;
isGLeptonRing = source.isGLeptonRing;
isGCLeptonRing = source.isGCLeptonRing;
nNbGPart = source.nNbGPart;
isLeptonOnMirror = source.isLeptonOnMirror;
trackMatched = source.trackMatched;
}
return *this;
}
void HHitMatchSim::dumpToStdoutSim()
{
HHitMatch::dumpToStdout();
if(isFake()) cout<<"FAKE !!!!!"<<endl;
else
{
cout<<"CONFIRMED CORRELATION"<<endl;
if(isLepton()) cout<<"is confirmed Lepton !!!!"<<endl;
}
trackMatched.dumpToStdout();
}
void HHitMatchSim::resetSim(void)
{
isFakeFlag=1;
isLeptonFlag=0;
isGCLeptonRing=-1;
isGLeptonRing=-1;
nNbGPart=-1;
isGLepInMDC=-1;
numPhot1 = -1;
numPhot2 = -1;
isLeptonOnMirror = 0;
weightRatio = 0.;
}
HTrackInfo * HHitMatchSim::getTrackInfoObj()
{
return &trackMatched;
}
Last change: Sat May 22 12:57:15 2010
Last generated: 2010-05-22 12:57
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.