class TreeSearch::Hitpattern

Function Members (Methods)

public:
virtual~Hitpattern()
static TClass*Class()
voidClear(Option_t* opt = "")
pair<UInt_t,UInt_t>ContainsPattern(const TreeSearch::NodeDescriptor& nd) const
Double_tGetBinScale() const
UInt_tGetBinsSet() const
Double_tGetBinWidth() const
const vector<TreeSearch::Hit*>&GetHits(UInt_t plane, UInt_t bin) const
UInt_tGetMaxhitBin() const
UInt_tGetNbins() const
UInt_tGetNhits() 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)
protected:
voidAddHit(UInt_t plane, UInt_t bin, TreeSearch::Hit* hit)
UInt_tMakeIdx(UInt_t plane, UInt_t bin) const
private:
voidInit(Double_t width)

Data Members

protected:
Double_tfBinWidth1/fScale (meters per bin)
vector<UInt_t>fHitList
vector<std::vector<Hit*> >fHits
UInt_tfMaxhitBinMaximum depth of hit array per bin
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 Chart:
TreeSearch::Hitpattern

Function documentation

Hitpattern( const PatternTree& pt )
 Construct Hitpattern using paramaters of pattern tree
Hitpattern(UInt_t nlevels, UInt_t nplanes, Double_t width)
 Constructor
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)
 Assignment
~Hitpattern()
 Destructor
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
UInt_t GetBinsSet()
 Return number of bins set at the highest resolution
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()
{ return 1U<<(fNlevels-1); }
UInt_t GetNlevels()
{ return fNlevels; }
UInt_t GetNplanes()
{ return fNplanes; }
Double_t GetOffset()
{ return fOffset; }
Double_t GetWidth()
{ return GetNbins()/fScale; }
Double_t GetBinWidth()
{ return fBinWidth; }
Double_t GetBinScale()
{ return fScale; }
Bool_t IsError()
{ 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 GetNhits()
 Number of hits recorded
{ return (UInt_t)fHitList.size(); }
UInt_t GetMaxhitBin()
{ return fMaxhitBin; }
UInt_t MakeIdx(UInt_t plane, UInt_t bin) const
 Return index into fHits corresponding to the given plane and bin

Last update: Tue Jul 7 19:26:18 2009

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.