ROOT logo
TreeSearch » TREESEARCH » TreeSearch::Hitpattern

class TreeSearch::Hitpattern

Function Members (Methods)

static TClass*Class()
voidClear(Option_t* opt = "")
pair<UInt_t,UInt_t>ContainsPattern(const TreeSearch::NodeDescriptor& nd) const
Double_tGetBinScale() const
Double_tGetBinWidth() const
const vector<TreeSearch::Hit*>&GetHits(UInt_t plane, UInt_t bin) const
UInt_tGetNbins() const
UInt_tGetNlevels() const
UInt_tGetNplanes() const
Double_tGetOffset() const
Double_tGetWidth() const
TreeSearch::HitpatternHitpattern(const TreeSearch::PatternTree& pt)
TreeSearch::HitpatternHitpattern(const TreeSearch::Hitpattern& orig)
TreeSearch::HitpatternHitpattern(UInt_t nlevels, UInt_t nplanes, Double_t width)
virtual TClass*IsA() const
Bool_tIsError() const
TreeSearch::Hitpattern&operator=(const TreeSearch::Hitpattern& rhs)
voidPrint(Option_t* opt = "") const
Int_tScanHits(TreeSearch::WirePlane* A, TreeSearch::WirePlane* B)
voidSetOffset(Double_t off)
voidSetPosition(Double_t pos, Double_t res, UInt_t plane, TreeSearch::Hit* hit)
voidSetPositionRange(Double_t start, Double_t end, UInt_t plane, TreeSearch::Hit* hit)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidAddHit(UInt_t plane, UInt_t bin, TreeSearch::Hit* hit)
UInt_tMakeIdx(UInt_t plane, UInt_t bin) const
voidInit(Double_t width)

Data Members

Double_tfBinWidth1/fScale (meters per bin)
vector<std::vector<Hit*> >fHits
UInt_tfNlevelsNumber of levels in the pattern tree
UInt_tfNplanesNumber of wire planes contained in the pattern
Double_tfOffsetOffset of zero hit position wrt zero det coord (m)
TreeSearch::Bits**fPattern[fNplanes] pattern at all fNlevels resolutions
Double_tfScale1/(bin resolution) = 2^(fNlevels-1)/width (1/m)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Hitpattern( const PatternTree& pt )
 Construct Hitpattern using paramaters of pattern tree
Hitpattern(UInt_t nlevels, UInt_t nplanes, Double_t width)
void Init(Double_t width)
 Allocate memory for new Hitpattern object.
 Internal utility function called by constructors.
Hitpattern( const Hitpattern& orig )
 Copy ctor
Hitpattern& operator=(const TreeSearch::Hitpattern& rhs)
void AddHit(UInt_t plane, UInt_t bin, TreeSearch::Hit* hit)
 Add hit for given bin in plane to the hit arrays
void Clear(Option_t* opt = "")
 Clear the hitpattern
void SetPositionRange(Double_t start, Double_t end, UInt_t plane, TreeSearch::Hit* hit)
 Set pattern bins corresponding to the exact physical positions
 between start and end (in m) in the given plane.
 Positions may range from 0.0 to width.
 Associate these bins with given hit
Int_t ScanHits(TreeSearch::WirePlane* A, TreeSearch::WirePlane* B)
 Set the points at all depths of the hit pattern that correspond to
 the hits in plane A. The plane number is extracted from A.
 The second, optional plane B represents an optional partner
 plane of A, i.e. a nearby plane with (usually) staggered wires.
 If B is present, test for pairs of hits in A and B.
 Naturally, the two planes and their wires must be parallel.

 Returns number of hits processed
void Print(Option_t* opt = "") const
 Print basic info about hitpattern.
std::pair<UInt_t,UInt_t> ContainsPattern(const TreeSearch::NodeDescriptor& nd) const
const std::vector<TreeSearch::Hit*>& GetHits(UInt_t plane, UInt_t bin) const
 Get array of hits that set the given bin in the given plane
UInt_t GetNbins() const
{ return 1U<<(fNlevels-1); }
UInt_t GetNlevels() const
{ return fNlevels; }
UInt_t GetNplanes() const
{ return fNplanes; }
Double_t GetOffset() const
{ return fOffset; }
Double_t GetWidth() const
{ return GetNbins()/fScale; }
Double_t GetBinWidth() const
{ return fBinWidth; }
Double_t GetBinScale() const
{ return fScale; }
Bool_t IsError() const
{ return (fNplanes == 0); }
void SetPosition(Double_t pos, Double_t res, UInt_t plane, TreeSearch::Hit* hit)
{ SetPositionRange( pos-res, pos+res, plane, hit ); }
void SetOffset(Double_t off)
{ fOffset = off; }
UInt_t MakeIdx(UInt_t plane, UInt_t bin) const
 Return index into fHits corresponding to the given plane and bin