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; }
83 static std::vector<BPHRecoConstCandPtr> build(
const BPHRecoBuilder& builder,
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
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
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)
virtual void add(const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass=-1.0, double sigma=-1.0)
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
virtual void add(const std::string &name, const BPHRecoConstCandPtr &comp)