1 #ifndef HeavyFlavorAnalysis_RecoDecay_BPHRecoBuilder_h 2 #define HeavyFlavorAnalysis_RecoDecay_BPHRecoBuilder_h 71 virtual int size()
const = 0;
79 static BPHGenericCollection* createCollection(
const std::vector<const reco::Candidate*>& candList,
119 void setMinPDiffererence(
double pMin);
124 std::map<std::string, BPHDecayMomentum::Component>
daugMap;
125 std::map<std::string, BPHRecoConstCandPtr>
compMap;
129 std::vector<ComponentSet>
build()
const;
151 int size()
const override {
return cPtr->size(); }
179 mutable std::map<std::string, const reco::Candidate*>
daugMap;
180 mutable std::map<std::string, BPHRecoConstCandPtr>
compMap;
194 std::vector<const BPHMomentumSelect*>
msList;
195 std::vector<const BPHVertexSelect*>
vsList;
203 void build(std::vector<ComponentSet>& compList,
205 std::vector<BPHRecoSource*>::const_iterator r_iter,
206 std::vector<BPHRecoSource*>::const_iterator r_iend,
207 std::vector<BPHCompSource*>::const_iterator c_iter,
208 std::vector<BPHCompSource*>::const_iterator c_iend)
const;
239 int n = collection.size();
240 std::vector<BPHRecoConstCandPtr>* compCandList =
new std::vector<BPHRecoConstCandPtr>(
n);
241 for (i = 0; i <
n; ++
i)
242 (*compCandList)[
i] = collection[
i];
244 compCollectList.insert(compCandList);
245 add(name, *compCandList);
std::vector< const BPHRecoSelect * > selector
std::map< std::string, BPHRecoConstCandPtr > compMap
BPHGenericPtr< const BPHRecoCandidate >::type BPHRecoConstCandPtr
std::vector< const BPHFitSelect * > fsList
const std::vector< BPHRecoConstCandPtr > * collection
std::map< std::string, BPHDecayMomentum::Component > daugMap
const edm::EventSetup * evSetup
int size() const override
~BPHSpecificCollection() override
BPHSpecificCollection(const T &c, const std::string &list)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
BPHGenericCollection(const std::string &list)
std::vector< BPHCompSource * > srCompList
const BPHGenericCollection * collection
static BPHGenericCollection * createCollection(const edm::Handle< T > &collection, const std::string &list="cfhpmig")
std::vector< const BPHVertexSelect * > vsList
std::map< std::string, const reco::Candidate * > daugMap
std::vector< const BPHFitSelect * > fitSelector
std::vector< BPHRecoSource * > sourceList
virtual ~BPHGenericCollection()
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)
const std::string & searchList() const
std::vector< const BPHMomentumSelect * > momSelector
std::map< std::string, BPHRecoConstCandPtr > compMap
std::vector< const BPHMomentumSelect * > msList
std::vector< const BPHVertexSelect * > vtxSelector
std::set< const std::vector< BPHRecoConstCandPtr > * > compCollectList
std::map< std::string, int > srCompId
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
std::map< std::string, int > sourceId