8 #ifndef DECAYTREEFITTER_CONSTRAINT_H 9 #define DECAYTREEFITTER_CONSTRAINT_H 1 26 enum Type {
unknown = 0,
beamspot,
lifetime,
resonance,
composite,
track,
photon,
conversion,
kinematic,
massEnergy,
geometric,
mass,
beamenergy,
merged,
ntypes };
34 unsigned int dim()
const {
return m_dim; }
36 unsigned int nIter()
const {
return m_maxNIter; }
41 : m_node(node), m_depth(depth), m_type(atype), m_dim(adim), m_weight(1), m_maxNIter(maxniter)
50 virtual void print(std::ostream &os = std::cout)
const;
51 std::string
name()
const;
54 void setWeight(
int w) { m_weight = w < 0 ? -1 : 1; }
58 void setDim(
unsigned int d) { m_dim = d; }
59 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