13#ifndef THistogram_FLAG_
14#define THistogram_FLAG_
16#ifdef TRKRECO_DEBUG_DETAIL
25#include "CLHEP/Alist/AList.h"
27#include "TrkReco/TMLink.h"
28#include "TrkReco/TSegment.h"
29#include "TrkReco/TSegment0.h"
45 void dump(
const std::string& message = std::string(
"" ),
46 const std::string& prefix = std::string(
"" ) )
const;
55 unsigned nBin(
unsigned i )
const;
95 void mask(
unsigned binN );
111#ifdef THistogram_NO_INLINE
115# define THistogram_INLINE_DEFINE_HERE
118#ifdef THistogram_INLINE_DEFINE_HERE
121 if ( i < _nBins )
return _links[i];
126 while ( i < 0 ) i += _nBins;
127 return _links[i % _nBins];
135 for (
unsigned i = 0; i < _nBins; i++ ) _masks[i] =
false;
141 if ( i < _nBins )
return _bins[i];
A class to represent a circle in tracking.
A class for a histogram used in tracking.
const AList< TMLink > & contents(void) const
returns an AList<TMLink> of all contents.
void mask(unsigned binN)
masks a bin. Masked bin will not be returned by findPeak.
THistogram(unsigned nBins)
Constructor.
unsigned nBins(void) const
returns # of bins.
const AList< TMLink > *const bin(int i) const
returns a pointer to i'th AList<TMLink>.
AList< TSegment0 > clusters0(void) const
returns an AList<TSegment0> of clusters.
void fillX(const AList< TMLink > &links)
fills with hits.
virtual ~THistogram()
Destructor.
AList< TMLink > contents(unsigned center, unsigned width) const
returns an AList of TMLinks within 'center' bin +- 'width' bin region.
void remove(const AList< TMLink > &links)
removes links.
AList< TMLink > contents(int start, int end) const
returns an AList of TMLinks from 'start' bin to 'end' bin region.
AList< TSegment > segments(void) const
returns an AList<TSegment0> using clusters() function.
unsigned nBin(unsigned i) const
returns number in i'th bin.
AList< TSegment0 > segments0(void) const
returns an AList<TSegment0> using clusters() function.
const AList< TMLink > *const bin(unsigned i) const
returns a pointer to i'th AList<TMLink>.
void fillY(const AList< TMLink > &links)
fills with hits.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
void unmask(void)
remove masks.
void fillPhi(const AList< TMLink > &links)
fills with hits.
AList< TSegment > clusters(void) const
returns an AList<TSegment0> of clusters.