HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HMdcSegSim Class Reference

#include <hmdcsegsim.h>

Inheritance diagram for HMdcSegSim:
Collaboration diagram for HMdcSegSim:

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)
 
- Public Member Functions inherited from HMdcSeg
 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
 
HSymMatgetCovariance (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)
 
- Public Member Functions inherited from HMdcCellGroup12
 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)
 
- Public Member Functions inherited from HMdcCellGroup
 ~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
 
- Protected Attributes inherited from HMdcSeg
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
 
- Protected Attributes inherited from HMdcCellGroup12
UShort_t iLayer [12]
 
- Protected Attributes inherited from HMdcCellGroup
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

- Protected Types inherited from HMdcSeg
enum  { kIsFake = BIT(14), kOffVertexClust = BIT(20) }
 
- Protected Member Functions inherited from HMdcSeg
Short_t convertToShort (Double_t v) const
 
- Protected Member Functions inherited from HMdcCellGroup
void initLookups (void)
 pointer to layer information. More...
 
 HMdcCellGroup (UShort_t *layerBuffer)
 
void printCells (Int_t nlays)
 
- Static Protected Attributes inherited from HMdcCellGroup
static UChar_t nCellsLookUp [256]
 
static UChar_t cellPosLookUp [4][256]
 
static Bool_t lookUpsInitialized =kFALSE
 

Detailed Description

Definition at line 6 of file hmdcsegsim.h.

Constructor & Destructor Documentation

HMdcSegSim::HMdcSegSim ( void  )
inline

Definition at line 19 of file hmdcsegsim.h.

References clear().

HMdcSegSim::~HMdcSegSim ( void  )
inline

Definition at line 20 of file hmdcsegsim.h.

Member Function Documentation

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().

void HMdcSegSim::clear ( void  )

Referenced by HMdcSegSim().

void HMdcSegSim::clearSimInfo ( void  )
void HMdcSegSim::exchangeTrPos ( Int_t  t1,
Int_t  t2 
)
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().

UChar_t HMdcSegSim::getNDigiTimes ( Int_t  n) const
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.

Char_t HMdcSegSim::getNNotFakeTracks ( void  ) const
inline

Definition at line 34 of file hmdcsegsim.h.

References nNotFakeTracks.

Referenced by HParticleCandFiller::fillCandSim().

UChar_t HMdcSegSim::getNTimes ( Int_t  n) const
inline
Int_t HMdcSegSim::getNumNoiseWires ( void  ) const

Definition at line 183 of file hmdcsegsim.cc.

References listTracks, n, and nTimes.

Int_t HMdcSegSim::getStatus ( void  ) const
inline

Definition at line 32 of file hmdcsegsim.h.

References status.

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().

Bool_t HMdcSegSim::indOk ( Int_t  i) const
inlineprivate
Bool_t HMdcSegSim::is1or2HitsNotRec ( Int_t  i) const
inline

Definition at line 47 of file hmdcsegsim.h.

References testBit().

Bool_t HMdcSegSim::isClFnLevelTooHigh ( Int_t  i) const
inline

Definition at line 46 of file hmdcsegsim.h.

References testBit().

Bool_t HMdcSegSim::isFakeContribution ( Int_t  i) const
inline
Bool_t HMdcSegSim::isGEANTBug ( Int_t  i) const
inline

Definition at line 51 of file hmdcsegsim.h.

References testBit().

Bool_t HMdcSegSim::isGntTrackOk ( Int_t  i) const
inline

Definition at line 44 of file hmdcsegsim.h.

References testBit().

Bool_t HMdcSegSim::isNoMeta ( Int_t  i) const
inline

Definition at line 50 of file hmdcsegsim.h.

References testBit().

Bool_t HMdcSegSim::isSegNotRec ( Int_t  i) const
inline

Definition at line 48 of file hmdcsegsim.h.

References testBit().

Bool_t HMdcSegSim::isTrackNotRec ( Int_t  i) const
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  )
Bool_t HMdcSegSim::setFakeContributionFlag ( void  )

Definition at line 359 of file hmdcsegsim.cc.

References isFakeContribution(), nNotFakeTracks, and trackStatus.

Referenced by HMdc12Fit::testGeantInf().

void HMdcSegSim::setNDigiTimes ( Int_t  n,
UChar_t  nt 
)
inline

Definition at line 29 of file hmdcsegsim.h.

References indOk(), and n.

void HMdcSegSim::setNTracks ( Int_t  nTr,
const Int_t *  listTr,
const UChar_t *  nTm,
const UChar_t *  nDi = 0 
)
void HMdcSegSim::setNTracks ( Int_t  nTr,
Char_t  nNF,
Char_t  ioS 
)
inline

Definition at line 80 of file hmdcsegsim.h.

References ioSMatchStatus, nNotFakeTracks, and nTracks.

void HMdcSegSim::setStatus ( Int_t  f)
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().

void HMdcSegSim::setTrackStatus ( Int_t  n,
UChar_t  status 
)
inline
void HMdcSegSim::sortTrListByContr ( void  )
Bool_t HMdcSegSim::testBit ( Int_t  i,
UChar_t  b 
) const
inlineprivate
UChar_t HMdcSegSim::trackBits ( Int_t  i) const
inlineprivate

Definition at line 61 of file hmdcsegsim.h.

References indOk().

Referenced by testBit().

Member Data Documentation

Char_t HMdcSegSim::ioSMatchStatus
protected

Definition at line 15 of file hmdcsegsim.h.

Referenced by clearSimInfo(), and setNTracks().

UChar_t HMdcSegSim::nDigiTimes[5]
protected
Short_t HMdcSegSim::nTracks
protected
Int_t HMdcSegSim::status
protected

Definition at line 17 of file hmdcsegsim.h.

Referenced by clearSimInfo(), getStatus(), and setTrackStatus().

UChar_t HMdcSegSim::trackStatus[5]
protected

The documentation for this class was generated from the following files: