#ifndef HPidHitData_h
#define HPidHitData_h
#include "TObject.h"
#include "TError.h"
#include "piddef.h"
class HMetaMatch;
class HPidHitData: public TObject
{
public:
HPidHitData(void) { reset(); }
HPidHitData(const HPidHitData& source);
virtual ~HPidHitData(void) { }
void reset(void);
void clearFlags(void) { ResetBit(kALLDETS); }
UInt_t getFlags(void) const { return ((TestBits(kALLDETS) & kALLDETS)); }
virtual void Clear(Option_t*) { reset(); }
void fillFromMetaMatch(HMetaMatch *pMatch, Int_t iMatchIndex);
virtual void Print(Option_t*) const { print(); }
void print(void) const;
enum
{
kRICH = 0x01<<14,
kINNERMDC = 0x02<<14,
kOUTERMDC = 0x04<<14,
kTOF = 0x08<<14,
kSHOWER = 0x10<<14,
kRICHIPU = 0x20<<14,
kALLDETS = kRICH | kINNERMDC | kOUTERMDC | kTOF | kSHOWER | kRICHIPU
};
void setFlagRICH(Bool_t b = kTRUE) {
if(b) SetBit(kRICH);
else ResetBit(kRICH);
}
Bool_t getFlagRICH(void) const { return TestBits(kRICH); }
void setFlagInnerMDC(Bool_t b = kTRUE) {
if(b) SetBit(kINNERMDC);
else ResetBit(kINNERMDC);
}
Bool_t getFlagInnerMDC(void) const { return TestBits(kINNERMDC); }
void setFlagOuterMDC(Bool_t b = kTRUE) {
if(b) SetBit(kOUTERMDC);
else ResetBit(kOUTERMDC);
}
Bool_t getFlagOuterMDC(void) const { return TestBits(kOUTERMDC); }
void setFlagTOF(Bool_t b = kTRUE) {
if(b) SetBit(kTOF);
else ResetBit(kTOF);
}
Bool_t getFlagTOF(void) const { return TestBits(kTOF); }
void setFlagSHOWER(Bool_t b = kTRUE) {
if(b) SetBit(kSHOWER);
else ResetBit(kSHOWER);
}
Bool_t getFlagSHOWER(void) const { return TestBits(kSHOWER); }
void setFlagRICHIPU(Bool_t b = kTRUE) {
if(b) SetBit(kRICHIPU);
else ResetBit(kRICHIPU);
}
Bool_t getFlagRICHIPU(void) const { return TestBits(kRICHIPU); }
Float_t getDeltaThetaMDCRICH() const;
Float_t getDeltaPhiMDCRICH()const;
Float_t getDeltaThetaRKRICH(Float_t fRKTheta) const;
Float_t getDeltaPhiRKRICH(Float_t fRKPhi,Float_t fRKTheta) const;
void setSector(Int_t nSec){nSector=nSec;}
Int_t getSector() const {return nSector;}
Float_t getTof() const {return (iSystem==0)?fShowerTimeOfFlight:fTOFTimeOfFlight;}
Int_t nSector;
Short_t iSystem;
Int_t nRingPadNr;
Float_t fRingCentroid;
Float_t fRichTheta;
Float_t fRichPhi;
Int_t nRingPatMat;
Int_t nRingHouTra;
Int_t nRingAmplitude;
Int_t nRingLocalMax4;
Float_t fInnerMdcChiSquare;
Float_t fInnerMdcdEdx;
Float_t fInnerMdcdEdxSigma;
Float_t fMdcRCoord;
Float_t fMdcZCoord;
Float_t fMdcTheta;
Float_t fMdcPhi;
Float_t fOuterMdcChiSquare;
Float_t fOuterMdcdEdx;
Float_t fOuterMdcdEdxSigma;
Float_t fCombinedMdcdEdx;
Float_t fCombinedMdcdEdxSigma;
Int_t iIPURingQuality;
Int_t iIPUVetoQuality;
Float_t fShowerSum[3];
Int_t nShowerClS[3];
Int_t nShowerRow;
Int_t nShowerCol;
Float_t fShowerTimeOfFlight;
Float_t fMetaLocalX;
Float_t fMetaLocalY;
Float_t fTOFTimeOfFlight;
Float_t fTOFLeftAmplitude;
Float_t fTOFRightAmplitude;
Float_t fTofEloss;
Int_t iTofinoMult;
Int_t nTofClsSize;
Int_t nMetaCell;
Int_t nTofCell;
Int_t nTofModule;
Short_t iIndRICH;
Short_t iIndRICHIPU;
Short_t iIndInnerSeg;
Short_t iIndOuterSeg;
Short_t iIndTOF;
Short_t iIndShower;
Short_t iIndClusInf0;
Short_t iIndClusInf1;
Short_t iIndClusInf2;
Short_t iIndClusInf3;
Short_t iIndMatch;
Float_t fDistanceToVertex[MAX_MOM_ALGS];
Bool_t hasRingCorrelation[MAX_MOM_ALGS];
Bool_t hasMetaTrackCorrelation[MAX_MOM_ALGS];
Short_t getSystem() const {return iSystem;}
Int_t getRingPadNr() const {return nRingPadNr;}
Float_t getRingCentroid() const {return fRingCentroid;}
Float_t getRichTheta() const {return fRichTheta;}
Float_t getRichPhi() const {return fRichPhi;}
Int_t getRingPatMat() const {return nRingPatMat;}
Int_t getRingHouTra() const {return nRingHouTra;}
Int_t getRingAmplitude() const {return nRingAmplitude;}
Int_t getRingLocalMax4() const {return nRingLocalMax4;}
Int_t getMdcClsSize(Int_t i) const;
Int_t getMdcNWires(Int_t i) const;
Int_t getMdcLevelCls(Int_t i) const;
Float_t getInnerMdcChiSquare() const {return fInnerMdcChiSquare;}
Float_t getInnerMdcdEdx() const {return fInnerMdcdEdx;}
Float_t getInnerMdcdEdxSigma() const {return fInnerMdcdEdxSigma;}
Float_t getMdcRCoord() const {return fMdcRCoord;}
Float_t getMdcZCoord() const {return fMdcZCoord;}
Float_t getMdcTheta() const {return fMdcTheta;}
Float_t getMdcPhi() const {return fMdcPhi;}
Float_t getOuterMdcChiSquare() const {return fOuterMdcChiSquare;}
Float_t getOuterMdcdEdx() const {return fOuterMdcdEdx;}
Float_t getOuterMdcdEdxSigma() const {return fOuterMdcdEdxSigma;}
Float_t getCombinedMdcdEdx() const {return fCombinedMdcdEdx;}
Float_t getCombinedMdcdEdxSigma() const {return fCombinedMdcdEdxSigma;}
Int_t getIPURingQuality() const {return iIPURingQuality;}
Int_t getIPUVetoQuality() const {return iIPUVetoQuality;}
Float_t getShowerSum(Int_t index) const {return fShowerSum[index];}
Int_t getShowerClS(Int_t index) const {return nShowerClS[index];}
Int_t getShowerRow() const {return nShowerRow;}
Int_t getShowerCol() const {return nShowerCol;}
Float_t getShowerTimeOfFlight() const {return fShowerTimeOfFlight;}
Float_t getMetaLocalX() const {return fMetaLocalX;}
Float_t getMetaLocalY() const {return fMetaLocalY;}
Float_t getTOFTimeOfFlight() const {return fTOFTimeOfFlight;}
Float_t getTOFLeftAmplitude() const {return fTOFLeftAmplitude;}
Float_t getTOFRightAmplitude() const {return fTOFRightAmplitude;}
Float_t getTofEloss() const {return fTofEloss;}
Int_t getTofinoMult() const {return iTofinoMult;}
Int_t getTofClsSize() const {return nTofClsSize;}
Int_t getMetaCell() const {return nMetaCell;}
Int_t getTofCell() const {return nTofCell;}
Int_t getTofModule() const {return nTofModule;}
Short_t getIndRICH() const {return iIndRICH;}
Short_t getIndRICHIPU() const {return iIndRICHIPU;}
Short_t getIndInnerSeg() const {return iIndInnerSeg;}
Short_t getIndOuterSeg() const {return iIndOuterSeg;}
Short_t getIndTOF() const {return iIndTOF;}
Short_t getIndShower() const {return iIndShower;}
Short_t getIndMatch() const {return iIndMatch;}
Short_t getIndClusInf(Int_t i) const;
Float_t getDistanceToVertex(Int_t momalg) const {return fDistanceToVertex[momalg];}
Bool_t getRingCorrelation(Int_t momalg) const {return hasRingCorrelation[momalg];}
Bool_t getMetaTrackCorrelation(Int_t momalg) const {return hasMetaTrackCorrelation[momalg];}
void setSystem(Short_t o_System) {iSystem=o_System;}
void setRingPadNr(Int_t o_RingPadNr) {nRingPadNr=o_RingPadNr;}
void setRingCentroid(Float_t o_RingCentroid) {fRingCentroid=o_RingCentroid;}
void setRichTheta(Float_t o_RichTheta) {fRichTheta=o_RichTheta;}
void setRichPhi(Float_t o_RichPhi) {fRichPhi=o_RichPhi;}
void setRingPatMat(Int_t o_RingPatMat) {nRingPatMat=o_RingPatMat;}
void setRingHouTra(Int_t o_RingHouTra) {nRingHouTra=o_RingHouTra;}
void setRingAmplitude(Int_t o_RingAmplitude) {nRingAmplitude=o_RingAmplitude;}
void setRingLocalMax4(Int_t o_RingLocalMax4) {nRingLocalMax4=o_RingLocalMax4;}
void setInnerMdcChiSquare(Float_t o_InnerMdcChiSquare) {fInnerMdcChiSquare=o_InnerMdcChiSquare;}
void setInnerMdcdEdx(Float_t o_InnerMdcdEdx) {fInnerMdcdEdx=o_InnerMdcdEdx;}
void setInnerMdcdEdxSigma(Float_t o_InnerMdcdEdxSigma) {fInnerMdcdEdxSigma=o_InnerMdcdEdxSigma;}
void setMdcRCoord(Float_t o_MdcRCoord) {fMdcRCoord=o_MdcRCoord;}
void setMdcZCoord(Float_t o_MdcZCoord) {fMdcZCoord=o_MdcZCoord;}
void setMdcTheta(Float_t o_MdcTheta) {fMdcTheta=o_MdcTheta;}
void setMdcPhi(Float_t o_MdcPhi) {fMdcPhi=o_MdcPhi;}
void setOuterMdcChiSquare(Float_t o_OuterMdcChiSquare) {fOuterMdcChiSquare=o_OuterMdcChiSquare;}
void setOuterMdcdEdx(Float_t o_OuterMdcdEdx) {fOuterMdcdEdx=o_OuterMdcdEdx;}
void setOuterMdcdEdxSigma(Float_t o_OuterMdcdEdxSigma) {fOuterMdcdEdxSigma=o_OuterMdcdEdxSigma;}
void setCombinedMdcdEdx(Float_t o_CombinedMdcdEdx) {fCombinedMdcdEdx=o_CombinedMdcdEdx;}
void setCombinedMdcdEdxSigma(Float_t o_CombinedMdcdEdxSigma) {fCombinedMdcdEdxSigma=o_CombinedMdcdEdxSigma;}
void setIPURingQuality(Int_t o_IPURingQuality) {iIPURingQuality=o_IPURingQuality;}
void setIPUVetoQuality(Int_t o_IPUVetoQuality) {iIPUVetoQuality=o_IPUVetoQuality;}
void setShowerSum(Int_t index, Float_t o_ShowerSum) {fShowerSum[index]=o_ShowerSum;}
void setShowerClS(Int_t index, Int_t o_ShowerClS) {nShowerClS[index]=o_ShowerClS;}
void setShowerRow(Int_t o_ShowerRow) {nShowerRow=o_ShowerRow;}
void setShowerCol(Int_t o_ShowerCol) {nShowerCol=o_ShowerCol;}
void setShowerTimeOfFlight(Float_t o_ShowerTimeOfFlight) {fShowerTimeOfFlight=o_ShowerTimeOfFlight;}
void setMetaLocalX(Float_t o_MetaLocalX) {fMetaLocalX=o_MetaLocalX;}
void setMetaLocalY(Float_t o_MetaLocalY) {fMetaLocalY=o_MetaLocalY;}
void setTOFTimeOfFlight(Float_t o_TOFTimeOfFlight) {fTOFTimeOfFlight=o_TOFTimeOfFlight;}
void setTOFLeftAmplitude(Float_t o_TOFLeftAmplitude) {fTOFLeftAmplitude=o_TOFLeftAmplitude;}
void setTOFRightAmplitude(Float_t o_TOFRightAmplitude) {fTOFRightAmplitude=o_TOFRightAmplitude;}
void setTofEloss(Float_t o_TofEloss) {fTofEloss=o_TofEloss;}
void setTofinoMult(Int_t o_TofinoMult) {iTofinoMult=o_TofinoMult;}
void setTofClsSize(Int_t o_TofClsSize) {nTofClsSize=o_TofClsSize;}
void setMetaCell(Int_t o_MetaCell) {nMetaCell=o_MetaCell;}
void setTofCell(Int_t o_TofCell) {nTofCell=o_TofCell;}
void setTofModule(Int_t o_TofModule) {nTofModule=o_TofModule;}
void setIndRICH(Short_t o_IndRICH) {iIndRICH=o_IndRICH;}
void setIndRICHIPU(Short_t o_IndRICHIPU) {iIndRICHIPU=o_IndRICHIPU;}
void setIndInnerSeg(Short_t o_IndInnerSeg) {iIndInnerSeg=o_IndInnerSeg;}
void setIndOuterSec(Short_t o_IndOuterSeg) {iIndOuterSeg=o_IndOuterSeg;}
void setIndTOF(Short_t o_IndTOF) {iIndTOF=o_IndTOF;}
void setIndShower(Short_t o_IndShower) {iIndShower=o_IndShower;}
void setIndMatch(Short_t o_IndMatch) {iIndMatch=o_IndMatch;}
void setDistanceToVertex(Int_t momalg, Float_t o_DistanceToVertex) {fDistanceToVertex[momalg]=o_DistanceToVertex;}
void setRingCorrelation(Int_t momalg, Float_t o_RingCorrelation) {hasRingCorrelation[momalg]=o_RingCorrelation;}
void setMetaTrackCorrelation(Int_t momalg, Float_t o_MetaTrackCorrelation) {hasMetaTrackCorrelation[momalg]=o_MetaTrackCorrelation;}
ClassDef(HPidHitData, 9)
};
#endif /* HPidHitData_h */
Last change: Sat May 22 13:07:10 2010
Last generated: 2010-05-22 13:07
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.