HYDRA_development_version
|
#include <hmdcsegsim.h>
Public Member Functions | |
HMdcSegSim (void) | |
~HMdcSegSim (void) | |
void | clear (void) |
void | clearSimInfo (void) |
void | setStatus (Int_t f) |
void | setNTracks (Int_t nTr, const Int_t *listTr, const UChar_t *nTm, const UChar_t *nDi=0) |
void | addTrack (Int_t track, UChar_t nTm, UChar_t nDi=0) |
Int_t | calcNTracks (void) |
void | setTrackInf (const Int_t *lst, const Short_t *nTms, const UChar_t *nDTms, const UChar_t *tSt) |
void | setNTracks (Int_t nTr, Char_t nNF, Char_t ioS) |
void | setNDigiTimes (Int_t n, UChar_t nt) |
void | setTrackStatus (Int_t n, UChar_t status) |
Int_t | getStatus (void) const |
Int_t | getNTracks (void) const |
Char_t | getNNotFakeTracks (void) const |
Int_t | getTrack (Int_t n) const |
UChar_t | getNTimes (Int_t n) const |
UChar_t | getNDigiTimes (Int_t n) const |
UChar_t | getTrackStatus (Int_t n) const |
Int_t | getNumNoiseWires (void) const |
void | sortTrListByContr (void) |
Int_t | getGoodTrack (Int_t i1, HMdcSegSim *outerSeg, Int_t nWiresCut=5) const |
Int_t | getNextGoodTrack (Int_t &i1, HMdcSegSim *outerSeg, Int_t nWiresCut=5) const |
Bool_t | isGntTrackOk (Int_t i) const |
Bool_t | isFakeContribution (Int_t i) const |
Bool_t | isClFnLevelTooHigh (Int_t i) const |
Bool_t | is1or2HitsNotRec (Int_t i) const |
Bool_t | isSegNotRec (Int_t i) const |
Bool_t | isTrackNotRec (Int_t i) const |
Bool_t | isNoMeta (Int_t i) const |
Bool_t | isGEANTBug (Int_t i) const |
Int_t | findTrack (Int_t geantNum, Int_t nDigTimes=0) const |
Int_t | getTrackIndex (Int_t tr) const |
Bool_t | resetFakeContributionFlag (void) |
Bool_t | setFakeContributionFlag (void) |
void | print (void) |
![]() | |
HMdcSeg (void) | |
~HMdcSeg (void) | |
void | Clear (void) |
void | setZ (const Float_t zl, const Float_t err) |
void | setR (const Float_t rl, const Float_t err) |
void | setTheta (const Float_t th, const Float_t err) |
void | setPhi (const Float_t ph, const Float_t err) |
void | setZR (const Float_t zl, const Float_t erz, const Float_t rl, const Float_t err) |
void | setThetaPhi (const Float_t th, const Float_t ert, const Float_t ph, const Float_t erp) |
void | setPar (const Float_t zl, const Float_t ezl, const Float_t rl, const Float_t erl, const Float_t th, const Float_t eth, const Float_t ph, const Float_t eph) |
void | setZ (const Float_t zl) |
void | setR (const Float_t rl) |
void | setTheta (const Float_t th) |
void | setPhi (const Float_t ph) |
void | setPar (const Float_t zl, const Float_t rl, const Float_t th, const Float_t ph) |
void | setZprime (const Float_t zpr) |
void | setRprime (const Float_t rpr) |
void | setChi2 (const Float_t chl) |
void | setFlag (const Int_t fl) |
void | setSec (Int_t sec) |
void | setIOSeg (Int_t seg) |
void | setHitInd (UInt_t i, UInt_t idx) |
void | setClusIndex (Int_t ind) |
void | setX1 (Double_t v) |
void | setY1 (Double_t v) |
void | setX2 (Double_t v) |
void | setY2 (Double_t v) |
void | setXYPar (Double_t vx1, Double_t vy1, Double_t vx2, Double_t vy2) |
Float_t | getZ (void) const |
Float_t | getR (void) const |
Float_t | getTheta (void) const |
Float_t | getPhi (void) const |
Float_t | getErrZ (void) |
Float_t | getErrR (void) |
Float_t | getErrTheta (void) |
Float_t | getErrPhi (void) |
Float_t | getZprime (void) const |
Float_t | getRprime (void) const |
Int_t | getClusIndex (void) const |
Float_t | getX1 (void) const |
Float_t | getY1 (void) const |
Float_t | getX2 (void) const |
Float_t | getY2 (void) const |
Short_t | getX1Sh (void) const |
Short_t | getY1Sh (void) const |
Short_t | getX2Sh (void) const |
Short_t | getY2Sh (void) const |
void | getZ (Float_t &zl, Float_t &err) |
void | getR (Float_t &rl, Float_t &err) |
void | getTheta (Float_t &th, Float_t &err) |
void | getPhi (Float_t &ph, Float_t &err) |
void | getZR (Float_t &zl, Float_t &erz, Float_t &rl, Float_t &err) |
void | getThetaPhi (Float_t &th, Float_t &ert, Float_t &ph, Float_t &erp) |
void | getPar (Float_t &p1, Float_t &p2, Float_t &p3, Float_t &p4) const |
void | getErrPar (Float_t &p1, Float_t &p2, Float_t &p3, Float_t &p4) |
Float_t | getChi2 (void) const |
HSymMat & | getCovariance (void) |
Int_t | getFlag (void) const |
Int_t | getSec (void) const |
Int_t | getIOSeg (void) const |
Int_t | getHitInd (Int_t i) const |
void | setFakeFlag (void) |
void | resetFakeFlag (void) |
Bool_t | isFake (void) const |
void | setClusInfo (Int_t nBins, Int_t nCells, Int_t nMerClus) |
void | setOffVertexClus (void) |
Bool_t | isOffVertexClus (void) const |
Int_t | getNBinsClus (void) const |
Int_t | getNCellsClus (void) const |
Int_t | getNMergedClus (void) const |
void | print (void) |
![]() | |
HMdcCellGroup12 (void) | |
~HMdcCellGroup12 (void) | |
void | clear (void) |
Int_t | getSumWires () |
Int_t | getSumWires (UInt_t mod) |
Int_t | getNLayers () |
Int_t | getNLayers (UInt_t mod) |
void | printCellGroup (void) |
UChar_t | getNSharedCells (HMdcCellGroup12 *gr, Int_t &nLayers, Int_t &nLayOr) |
UChar_t | getNSharedCells (HMdcCellGroup12 *gr) |
![]() | |
~HMdcCellGroup (void) | |
Int_t | getNCells (Int_t layer) |
Int_t | getCell (Int_t layer, Int_t idx) |
Int_t | getSignId (Int_t layer, Int_t idx) |
void | setSignId (Int_t layer, Int_t cell, Int_t t1, Int_t t2=0, Int_t t3=0, Int_t t4=0) |
void | setLayerGroup (Int_t layer, UShort_t cl) |
Int_t | getLayerListCells (Int_t layer, Int_t *list) |
Protected Attributes | |
Short_t | nTracks |
Int_t | listTracks [5] |
UChar_t | nTimes [5] |
UChar_t | nDigiTimes [5] |
UChar_t | trackStatus [5] |
Char_t | nNotFakeTracks |
Char_t | ioSMatchStatus |
Int_t | status |
![]() | |
Float_t | z |
Float_t | r |
Float_t | theta |
Float_t | phi |
Float_t | chi2 |
Int_t | flag |
HSymMat4 | cov |
UInt_t | ind |
UInt_t | ind2 |
Float_t | zPrime |
Float_t | rPrime |
Int_t | clusInd |
Short_t | x1 |
Short_t | y1 |
Short_t | x2 |
Short_t | y2 |
![]() | |
UShort_t | iLayer [12] |
![]() | |
UShort_t * | pLayer |
Private Member Functions | |
Bool_t | indOk (Int_t i) const |
UChar_t | trackBits (Int_t i) const |
Bool_t | testBit (Int_t i, UChar_t b) const |
void | exchangeTrPos (Int_t t1, Int_t t2) |
Additional Inherited Members | |
![]() | |
enum | { kIsFake = BIT(14), kOffVertexClust = BIT(20) } |
![]() | |
Short_t | convertToShort (Double_t v) const |
![]() | |
void | initLookups (void) |
pointer to layer information. More... | |
HMdcCellGroup (UShort_t *layerBuffer) | |
void | printCells (Int_t nlays) |
![]() | |
static UChar_t | nCellsLookUp [256] |
static UChar_t | cellPosLookUp [4][256] |
static Bool_t | lookUpsInitialized =kFALSE |
Definition at line 6 of file hmdcsegsim.h.
|
inline |
Definition at line 19 of file hmdcsegsim.h.
References clear().
|
inline |
Definition at line 20 of file hmdcsegsim.h.
void HMdcSegSim::addTrack | ( | Int_t | track, |
UChar_t | nTm, | ||
UChar_t | nDi = 0 |
||
) |
Definition at line 104 of file hmdcsegsim.cc.
References listTracks, nDigiTimes, nTimes, and nTracks.
Referenced by HMdcTrackInfSim::fillSegTrackInf().
Int_t HMdcSegSim::calcNTracks | ( | void | ) |
Definition at line 114 of file hmdcsegsim.cc.
References catMdcCal1, HEvent::getCategory(), HMdcCellGroup::getCell(), Hades::getCurrentEvent(), Hades::getEmbeddingRealTrackId(), HMdcSeg::getIOSeg(), HMdcCellGroup::getNCells(), HMdcCal1Sim::getNTrack1(), HMdcCal1Sim::getNTrack2(), HMdcSeg::getSec(), HMdcCellGroup::getSignId(), gHades, listTracks, n, nTimes, nTracks, and HTool::sort().
Referenced by HMdcTrackInfSim::fillSegTrackInf().
void HMdcSegSim::clear | ( | void | ) |
Referenced by HMdcSegSim().
void HMdcSegSim::clearSimInfo | ( | void | ) |
Definition at line 73 of file hmdcsegsim.cc.
References ioSMatchStatus, listTracks, nDigiTimes, nNotFakeTracks, nTimes, nTracks, status, and trackStatus.
Referenced by HMdcTrackInfSim::fillSegTrackInf().
|
private |
Definition at line 211 of file hmdcsegsim.cc.
References listTracks, nDigiTimes, nTimes, and trackStatus.
Referenced by sortTrListByContr().
Int_t HMdcSegSim::findTrack | ( | Int_t | geantNum, |
Int_t | nDigTimes = 0 |
||
) | const |
Definition at line 336 of file hmdcsegsim.cc.
References listTracks, n, nDigiTimes, and nTracks.
Referenced by HMdc12Fit::fitAlgorithm1(), and HMdc12Fit::sortGeantInf().
Int_t HMdcSegSim::getGoodTrack | ( | Int_t | i1, |
HMdcSegSim * | outerSeg, | ||
Int_t | nWiresCut = 5 |
||
) | const |
Definition at line 280 of file hmdcsegsim.cc.
References HMdcSeg::getIOSeg(), listTracks, nNotFakeTracks, and nTimes.
Referenced by HParticleCandFiller::fillCandSim().
|
inline |
Definition at line 76 of file hmdcsegsim.h.
References indOk(), n, and nDigiTimes.
Referenced by HEDSegment::HEDSegment(), and HMdcTrackFinder::sortTracksInClusters().
Int_t HMdcSegSim::getNextGoodTrack | ( | Int_t & | i1, |
HMdcSegSim * | outerSeg, | ||
Int_t | nWiresCut = 5 |
||
) | const |
Definition at line 306 of file hmdcsegsim.cc.
References HMdcSeg::getIOSeg(), listTracks, nNotFakeTracks, and nTimes.
|
inline |
Definition at line 34 of file hmdcsegsim.h.
References nNotFakeTracks.
Referenced by HParticleCandFiller::fillCandSim().
|
inline |
Definition at line 72 of file hmdcsegsim.h.
References indOk(), n, and nTimes.
Referenced by HMdcGeantSeg::analyseSeg(), HParticleCandFiller::fillCandSim(), HEDSegment::HEDSegment(), HMdcGeantSeg::isSegBetter(), and HMdc12Fit::testGeantInf().
|
inline |
Definition at line 33 of file hmdcsegsim.h.
References nTracks.
Referenced by HParticleCandFiller::fillCandSim(), HMdcTrackInfSim::fillSegTrackInf(), HParticleTool::getSimTracks(), HEDSegment::HEDSegment(), HParticleBooker::nextEvent(), HParticleTool::printSimTracks(), HMdcVertexFind::readSegments(), HMdcTrackFinder::sortTracksInClusters(), and HMdcTrackInfSim::testIOMatching().
Int_t HMdcSegSim::getNumNoiseWires | ( | void | ) | const |
Definition at line 183 of file hmdcsegsim.cc.
References listTracks, n, and nTimes.
|
inline |
Definition at line 32 of file hmdcsegsim.h.
References status.
|
inline |
Definition at line 68 of file hmdcsegsim.h.
References indOk(), listTracks, and n.
Referenced by HMdcTrackingEff::execute(), HParticleCandFiller::fillCandSim(), HEDSegment::HEDSegment(), HParticleBooker::nextEvent(), HMdcVertexFind::readSegments(), HMdcTrackFinder::sortTracksInClusters(), HMdc12Fit::testGeantInf(), and HMdcTrackInfSim::testIOMatching().
Int_t HMdcSegSim::getTrackIndex | ( | Int_t | tr | ) | const |
Definition at line 345 of file hmdcsegsim.cc.
References listTracks, and nTracks.
UChar_t HMdcSegSim::getTrackStatus | ( | Int_t | n | ) | const |
Definition at line 276 of file hmdcsegsim.cc.
References indOk(), n, and trackStatus.
Referenced by HMdcTrackInfSim::testIOMatching().
|
inlineprivate |
Definition at line 60 of file hmdcsegsim.h.
References nTracks.
Referenced by getNDigiTimes(), getNTimes(), getTrack(), getTrackStatus(), setNDigiTimes(), setTrackStatus(), and trackBits().
|
inline |
Definition at line 47 of file hmdcsegsim.h.
References testBit().
|
inline |
Definition at line 46 of file hmdcsegsim.h.
References testBit().
|
inline |
Definition at line 45 of file hmdcsegsim.h.
References testBit().
Referenced by HMdc12Fit::fitAlgorithm1(), resetFakeContributionFlag(), setFakeContributionFlag(), HMdc12Fit::sortGeantInf(), sortTrListByContr(), HMdc12Fit::testGeantInf(), and HMdcTrackInfSim::testIOMatching().
|
inline |
Definition at line 51 of file hmdcsegsim.h.
References testBit().
|
inline |
Definition at line 44 of file hmdcsegsim.h.
References testBit().
|
inline |
Definition at line 50 of file hmdcsegsim.h.
References testBit().
|
inline |
Definition at line 48 of file hmdcsegsim.h.
References testBit().
|
inline |
Definition at line 49 of file hmdcsegsim.h.
References testBit().
void HMdcSegSim::print | ( | void | ) |
Definition at line 228 of file hmdcsegsim.cc.
References listTracks, n, nDigiTimes, nNotFakeTracks, nTimes, nTracks, HMdcSeg::print(), and trackStatus.
Bool_t HMdcSegSim::resetFakeContributionFlag | ( | void | ) |
Definition at line 350 of file hmdcsegsim.cc.
References HMdcCellGroup12::getSumWires(), isFakeContribution(), nNotFakeTracks, nTimes, and trackStatus.
Referenced by HMdc12Fit::testGeantInf().
Bool_t HMdcSegSim::setFakeContributionFlag | ( | void | ) |
Definition at line 359 of file hmdcsegsim.cc.
References isFakeContribution(), nNotFakeTracks, and trackStatus.
Referenced by HMdc12Fit::testGeantInf().
|
inline |
Definition at line 29 of file hmdcsegsim.h.
void HMdcSegSim::setNTracks | ( | Int_t | nTr, |
const Int_t * | listTr, | ||
const UChar_t * | nTm, | ||
const UChar_t * | nDi = 0 |
||
) |
Definition at line 87 of file hmdcsegsim.cc.
References listTracks, n, nDigiTimes, nTimes, and nTracks.
Referenced by HMdcIdealTracking::fillHitsSeg(), HMdcIdealTracking::setWires(), and HMdcTrackFinder::sortTracksInClusters().
|
inline |
Definition at line 80 of file hmdcsegsim.h.
References ioSMatchStatus, nNotFakeTracks, and nTracks.
|
inline |
Definition at line 23 of file hmdcsegsim.h.
void HMdcSegSim::setTrackInf | ( | const Int_t * | lst, |
const Short_t * | nTms, | ||
const UChar_t * | nDTms, | ||
const UChar_t * | tSt | ||
) |
Definition at line 266 of file hmdcsegsim.cc.
References listTracks, nDigiTimes, nTimes, and trackStatus.
Referenced by HMdcTrackFinder::sortTracksInClusters().
|
inline |
Definition at line 30 of file hmdcsegsim.h.
References indOk(), n, and status.
Referenced by HMdcGeantSeg::analyseSeg(), HMdcTrackInfSim::fillSegTrackInf(), HMdcTrackFinder::sortTracksInClusters(), and HMdcTrackInfSim::testIOMatching().
void HMdcSegSim::sortTrListByContr | ( | void | ) |
Definition at line 188 of file hmdcsegsim.cc.
References exchangeTrPos(), isFakeContribution(), nNotFakeTracks, nTimes, and nTracks.
Referenced by HMdcTrackFinder::sortTracksInClusters().
|
inlineprivate |
Definition at line 62 of file hmdcsegsim.h.
References trackBits().
Referenced by is1or2HitsNotRec(), isClFnLevelTooHigh(), isFakeContribution(), isGEANTBug(), isGntTrackOk(), isNoMeta(), isSegNotRec(), and isTrackNotRec().
|
inlineprivate |
|
protected |
Definition at line 15 of file hmdcsegsim.h.
Referenced by clearSimInfo(), and setNTracks().
|
protected |
Definition at line 9 of file hmdcsegsim.h.
Referenced by addTrack(), calcNTracks(), clearSimInfo(), exchangeTrPos(), findTrack(), getGoodTrack(), getNextGoodTrack(), getNumNoiseWires(), getTrack(), getTrackIndex(), print(), setNTracks(), and setTrackInf().
|
protected |
Definition at line 12 of file hmdcsegsim.h.
Referenced by addTrack(), clearSimInfo(), exchangeTrPos(), findTrack(), getNDigiTimes(), print(), setNTracks(), and setTrackInf().
|
protected |
Definition at line 14 of file hmdcsegsim.h.
Referenced by clearSimInfo(), getGoodTrack(), getNextGoodTrack(), getNNotFakeTracks(), print(), resetFakeContributionFlag(), setFakeContributionFlag(), setNTracks(), and sortTrListByContr().
|
protected |
Definition at line 10 of file hmdcsegsim.h.
Referenced by addTrack(), calcNTracks(), clearSimInfo(), exchangeTrPos(), getGoodTrack(), getNextGoodTrack(), getNTimes(), getNumNoiseWires(), print(), resetFakeContributionFlag(), setNTracks(), setTrackInf(), and sortTrListByContr().
|
protected |
Definition at line 8 of file hmdcsegsim.h.
Referenced by addTrack(), calcNTracks(), clearSimInfo(), findTrack(), getNTracks(), getTrackIndex(), indOk(), print(), setNTracks(), and sortTrListByContr().
|
protected |
Definition at line 17 of file hmdcsegsim.h.
Referenced by clearSimInfo(), getStatus(), and setTrackStatus().
|
protected |
Definition at line 13 of file hmdcsegsim.h.
Referenced by clearSimInfo(), exchangeTrPos(), getTrackStatus(), print(), resetFakeContributionFlag(), setFakeContributionFlag(), and setTrackInf().