1 #ifndef HeavyFlavorAnalysis_RecoDecay_BPHRecoCandidate_h
2 #define HeavyFlavorAnalysis_RecoDecay_BPHRecoCandidate_h
70 double mass = -1.0,
double sigma = -1.0 ) {
71 addK( name, daug,
"cfhpmig",
mass, sigma );
return; }
75 double mass = -1.0,
double sigma = -1.0 ) {
76 addK( name, daug, searchList,
mass, sigma );
return; }
79 addK( name, comp );
return; }
94 double mass = -1,
double msig = -1 );
105 double mass,
double msig ) {
107 const std::vector<BPHRecoBuilder::ComponentSet> dll = builder.
build();
113 for ( i = 0; i <
n; ++
i ) {
117 if ( mass > 0 ) rc->setConstraint( mass, msig );
119 if ( builder.
accept( *rc ) )
cList.push_back(
typename
virtual void addK(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0)
BPHRecoCandidate(const edm::EventSetup *es)
std::shared_ptr< T > type
BPHGenericPtr< const BPHRecoCandidate >::type BPHRecoConstCandPtr
std::vector< ComponentSet > build() const
build a set of combinations of particles fulfilling the selections
virtual ParticleMass mass() const
bool accept(const BPHRecoCandidate &cand) const
const edm::EventSetup * eventSetup() const
get the EventSetup set in the constructor
static void fill(std::vector< typename BPHGenericPtr< const T >::type > &cList, const BPHRecoBuilder &builder, double mass=-1, double msig=-1)
std::vector< BPHRecoConstCandPtr > cList
virtual ~BPHRecoCandidate()
virtual void add(const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass=-1.0, double sigma=-1.0)
static std::vector< BPHRecoConstCandPtr > build(const BPHRecoBuilder &builder, double mass=-1, double msig=-1)
virtual void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0)
virtual void add(const std::string &name, const BPHRecoConstCandPtr &comp)