20 #ifndef DECAYTREEFITTER_CONSTRAINT_H 21 #define DECAYTREEFITTER_CONSTRAINT_H 1 38 enum Type {
unknown = 0,
beamspot,
lifetime,
resonance,
composite,
track,
photon,
conversion,
kinematic,
massEnergy,
geometric,
mass,
beamenergy,
merged,
ntypes };
46 unsigned int dim()
const {
return m_dim; }
48 unsigned int nIter()
const {
return m_maxNIter; }
53 : m_node(node), m_depth(depth), m_type(atype), m_dim(adim), m_weight(1), m_maxNIter(maxniter)
62 virtual void print(std::ostream &os = std::cout)
const;
63 std::string
name()
const;
66 void setWeight(
int w) { m_weight = w < 0 ? -1 : 1; }
70 void setDim(
unsigned int d) { m_dim = d; }
71 void setNIter(
unsigned int d) { m_maxNIter = d; }
Constraint(Constraint::Type atype)
void setDim(unsigned int d)
bool operator<(const Constraint &rhs) const
virtual ErrCode project(const FitParams *fitpar, Projection &p) const
unsigned int nIter() const
bool operator==(const Constraint &rhs) const
Constraint(const ParticleBase *node, Type atype, int depth, unsigned int adim, int maxniter=1)
virtual void print(std::ostream &os=std::cout) const
void setNIter(unsigned int d)
virtual ErrCode filter(FitParams *fitpar) const