// $Id: hhitmatchsim.cc,v 1.11 2004-10-15 08:25:17 eberl Exp $ // Last update by Thomas Eberl: 03/07/09 17:51:24 // //********************************************************** // this class is a container class meant to hold one // "correlation" between different detectors //********************************************************** using namespace std; #include "hhitmatchsim.h" #include "hlinearcategory.h" #include "hrichhitsim.h" #include "hrichutilfunc.h" #include "richdef.h" #include #include 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; //RICH 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; //MDC fMdcTheta = source.fMdcTheta; fMdcPhi = source.fMdcPhi; fMdcR = source.fMdcR; fMdcZ = source.fMdcZ; fClusterSize = source.fClusterSize; nHitLay = source.nHitLay; iSegIOFlag = source.iSegIOFlag; indMdc = source.indMdc; //TOF fTofTof = source.fTofTof; fTofTheta = source.fTofTheta; fTofPhi = source.fTofPhi; indTof = source.indTof; //SHOWER-TOFINO 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; //CORR FLAGS nRichMdcCorr = source.nRichMdcCorr; nRichKickCorr = source.nRichKickCorr; nRichTofCorr = source.nRichTofCorr; nRichShowerCorr = source.nRichShowerCorr; nMdcTofCorr = source.nMdcTofCorr; nMdcShowerCorr = source.nMdcShowerCorr; //TRACK 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; // sim part isFakeFlag = source.isFakeFlag; isLeptonFlag = source.isLeptonFlag; isGLeptonRing = source.isGLeptonRing; isGCLeptonRing = source.isGCLeptonRing; nNbGPart = source.nNbGPart; isLeptonOnMirror = source.isLeptonOnMirror; trackMatched = source.trackMatched; } //dumpToStdoutSim(); return *this; } void HHitMatchSim::dumpToStdoutSim() { HHitMatch::dumpToStdout(); // cout<<"in HHitMatchSim::dumpToStdout()"<getObject(indRich); // } // else cout<<"HHitMatchSim::getTrackInfoObj, no HRichHit cat found for // trackinfo repair"<track1==-5) // { // cout<<"RICH track/weight"<track1<<"/"<weigTrack1<<" "; // cout<track2<<"/"<weigTrack2<<" "; // cout<track3<<"/"<weigTrack3< 0) // { // if (r && (r->track1==trkNb || r->track2==trkNb || r->track3==trkNb)) // { // // if it is found, check whether the matching was stored or not // Int_t RM = trackMatched.getMatchedRM(i); // Int_t RTS = trackMatched.getMatchedRT_S(i); // Int_t MTS = trackMatched.getMatchedMT_S(i); // Int_t RMTS = trackMatched.getMatchedRMT_S(i); // if(r) // { // cout<<"RICH track/weight"<track1<<"/"<weigTrack1<<" "; // cout<track2<<"/"<weigTrack2<<" "; // cout<track3<<"/"<weigTrack3<<" * "; // cout<track1<<"/"<weigTrack1<<" "; // cout<track2<<"/"<weigTrack2<<" "; // cout<track3<<"/"<weigTrack3<