CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
BPHRecoBuilder Class Reference

#include <BPHRecoBuilder.h>

Classes

struct  BPHCompSource
 
class  BPHGenericCollection
 common object to interface with edm collections More...
 
class  BPHInterfaceCollection
 
struct  BPHRecoSource
 
class  BPHSpecificCollection
 
class  BPHSpecificCollection< BPHRecoBuilder::rcpV >
 
struct  ComponentSet
 

Public Member Functions

bool accept (const BPHRecoCandidate &cand) const
 
void add (const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)
 
template<class T >
void add (const std::string &name, const edm::Handle< T > &collection, double mass=-1.0, double msig=-1.0)
 
void add (const std::string &name, const std::vector< BPHRecoConstCandPtr > &collection)
 
template<class T >
void add (const std::string &name, const std::vector< T > &collection)
 
 BPHRecoBuilder (const BPHEventSetupWrapper &es)
 
 BPHRecoBuilder (const BPHRecoBuilder &x)=delete
 
std::vector< ComponentSetbuild () const
 build a set of combinations of particles fulfilling the selections More...
 
const BPHEventSetupWrappereventSetup () const
 get the EventSetup set in the constructor More...
 
void filter (const std::string &name, const BPHRecoSelect &sel) const
 
void filter (const std::string &name, const BPHMomentumSelect &sel) const
 previously reconstructed particles, at simple momentum sum level More...
 
void filter (const std::string &name, const BPHVertexSelect &sel) const
 previously reconstructed particles, at vertex reconstruction level More...
 
void filter (const std::string &name, const BPHFitSelect &sel) const
 previously reconstructed particles, at kinematical fit level More...
 
void filter (const BPHMomentumSelect &sel)
 
void filter (const BPHVertexSelect &sel)
 vertex reconstruction More...
 
void filter (const BPHFitSelect &sel)
 kinematical fit More...
 
BPHRecoConstCandPtr getComp (const std::string &name) const
 
const reco::CandidategetDaug (const std::string &name) const
 get simple or previously recontructed particle in current combination More...
 
BPHRecoBuilderoperator= (const BPHRecoBuilder &x)=delete
 
void setMinPDiffererence (double pMin)
 
virtual ~BPHRecoBuilder ()
 

Static Public Member Functions

template<class T >
static BPHGenericCollectioncreateCollection (const edm::Handle< T > &collection, const std::string &list="cfhpmig")
 
static BPHGenericCollectioncreateCollection (const std::vector< const reco::Candidate *> &candList, const std::string &list="cfhpmig")
 
static bool sameTrack (const reco::Candidate *lCand, const reco::Candidate *rCand, double minPDifference)
 

Private Types

typedef std::vector< const reco::Candidate * > rcpV
 

Private Member Functions

void build (std::vector< ComponentSet > &compList, ComponentSet &compSet, std::vector< BPHRecoSource *>::const_iterator r_iter, std::vector< BPHRecoSource *>::const_iterator r_iend, std::vector< BPHCompSource *>::const_iterator c_iter, std::vector< BPHCompSource *>::const_iterator c_iend) const
 
bool contained (ComponentSet &compSet, const reco::Candidate *cand) const
 
bool contained (ComponentSet &compSet, BPHRecoConstCandPtr cand) const
 
bool sameTrack (const reco::Candidate *lCand, const reco::Candidate *rCand) const
 

Private Attributes

std::set< const std::vector< BPHRecoConstCandPtr > * > compCollectList
 
std::map< std::string, BPHRecoConstCandPtrcompMap
 
std::map< std::string, const reco::Candidate * > daugMap
 
const BPHEventSetupWrapperevSetup
 
std::vector< const BPHFitSelect * > fsList
 
double minPDiff
 
std::vector< const BPHMomentumSelect * > msList
 
std::map< std::string, int > sourceId
 
std::vector< BPHRecoSource * > sourceList
 
std::map< std::string, int > srCompId
 
std::vector< BPHCompSource * > srCompList
 
std::vector< const BPHVertexSelect * > vsList
 

Detailed Description

Description: Class to build all the combinations of decay products starting from reco::Candidate collections and applying selection cuts to decay products and reconstructed candidates

Author
Paolo Ronchese INFN Padova

Definition at line 47 of file BPHRecoBuilder.h.

Member Typedef Documentation

◆ rcpV

typedef std::vector<const reco::Candidate*> BPHRecoBuilder::rcpV
private

Definition at line 143 of file BPHRecoBuilder.h.

Constructor & Destructor Documentation

◆ BPHRecoBuilder() [1/2]

BPHRecoBuilder::BPHRecoBuilder ( const BPHEventSetupWrapper es)

Constructor

Definition at line 38 of file BPHRecoBuilder.cc.

References msList, and vsList.

38  : evSetup(new BPHEventSetupWrapper(es)), minPDiff(-1.0) {
39  msList.reserve(5);
40  vsList.reserve(5);
41 }
const BPHEventSetupWrapper * evSetup
std::vector< const BPHVertexSelect * > vsList
std::vector< const BPHMomentumSelect * > msList

◆ BPHRecoBuilder() [2/2]

BPHRecoBuilder::BPHRecoBuilder ( const BPHRecoBuilder x)
delete

◆ ~BPHRecoBuilder()

BPHRecoBuilder::~BPHRecoBuilder ( )
virtual

Destructor

Definition at line 46 of file BPHRecoBuilder.cc.

References compCollectList, evSetup, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, sourceList, and srCompList.

46  {
47  int n = sourceList.size();
48  while (n--) {
49  delete sourceList[n]->collection;
50  delete sourceList[n];
51  }
52  int m = srCompList.size();
53  while (m--)
54  delete srCompList[m];
55  while (!compCollectList.empty()) {
56  const vector<BPHRecoConstCandPtr>* cCollection = *compCollectList.begin();
57  delete cCollection;
58  compCollectList.erase(cCollection);
59  }
60  delete evSetup;
61 }
const BPHEventSetupWrapper * evSetup
std::vector< BPHCompSource * > srCompList
std::vector< BPHRecoSource * > sourceList
std::set< const std::vector< BPHRecoConstCandPtr > * > compCollectList

Member Function Documentation

◆ accept()

bool BPHRecoBuilder::accept ( const BPHRecoCandidate cand) const

Definition at line 153 of file BPHRecoBuilder.cc.

References fsList, mps_fire::i, msList, dqmiodumpmetadata::n, and vsList.

Referenced by build(), BPHRecoCandidate::fill(), and esMonitoring.FDJsonServer::handle_accept().

153  {
154  int i;
155  int n;
156  n = msList.size();
157  for (i = 0; i < n; ++i) {
158  if (!msList[i]->accept(cand))
159  return false;
160  }
161  n = vsList.size();
162  for (i = 0; i < n; ++i) {
163  if (!vsList[i]->accept(cand))
164  return false;
165  }
166  n = fsList.size();
167  for (i = 0; i < n; ++i) {
168  if (!fsList[i]->accept(cand))
169  return false;
170  }
171  return true;
172 }
bool accept(const BPHRecoCandidate &cand) const
std::vector< const BPHFitSelect * > fsList
std::vector< const BPHVertexSelect * > vsList
std::vector< const BPHMomentumSelect * > msList

◆ add() [1/4]

void BPHRecoBuilder::add ( const std::string &  name,
const BPHGenericCollection collection,
double  mass = -1.0,
double  msig = -1.0 
)

add collection of particles giving them a name collections can be added as

Referenced by add(), BPHDecayToFlyingCascadeBuilder< BPHRecoCandidate, BPHPlusMinusCandidate >::addFlyCollection(), BPHDecayToResResBuilder< BPHRecoCandidate, BPHPlusMinusCandidate, BPHPlusMinusCandidate >::addRes2Collection(), BPHDecayConstrainedBuilder< BPHRecoCandidate, BPHRecoCandidate >::addResCollection(), BPHDecayToResTrkBuilderBase::fill(), BPHOniaToMuMuBuilder::fillRecList(), and counter.Counter::register().

◆ add() [2/4]

template<class T >
void BPHRecoBuilder::add ( const std::string &  name,
const edm::Handle< T > &  collection,
double  mass = -1.0,
double  msig = -1.0 
)

Definition at line 232 of file BPHRecoBuilder.h.

References add(), universalConfigTemplate::collection, EgHLTOffHistBins_cfi::mass, and Skims_PA_cff::name.

Referenced by counter.Counter::register().

232  {
233  // forward call after creating an interface to the collection
234  add(name, new BPHSpecificCollection<T>(*collection, "cfhpmig"), mass, msig);
235  return;
236 }
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)

◆ add() [3/4]

void BPHRecoBuilder::add ( const std::string &  name,
const std::vector< BPHRecoConstCandPtr > &  collection 
)

◆ add() [4/4]

template<class T >
void BPHRecoBuilder::add ( const std::string &  name,
const std::vector< T > &  collection 
)

Definition at line 239 of file BPHRecoBuilder.h.

References add(), universalConfigTemplate::collection, compCollectList, mps_fire::i, dqmiodumpmetadata::n, and Skims_PA_cff::name.

Referenced by counter.Counter::register().

239  {
240  // forward call after converting the list of pointer to a list
241  // of pointer to base objects
242  int i;
243  int n = collection.size();
244  std::vector<BPHRecoConstCandPtr>* compCandList = new std::vector<BPHRecoConstCandPtr>(n);
245  for (i = 0; i < n; ++i)
246  (*compCandList)[i] = collection[i];
247  // save the converted list for cleanup
248  compCollectList.insert(compCandList);
249  add(name, *compCandList);
250  return;
251 }
void add(const std::string &name, const BPHGenericCollection *collection, double mass=-1.0, double msig=-1.0)
std::set< const std::vector< BPHRecoConstCandPtr > * > compCollectList

◆ build() [1/2]

vector< BPHRecoBuilder::ComponentSet > BPHRecoBuilder::build ( ) const

build a set of combinations of particles fulfilling the selections

Definition at line 179 of file BPHRecoBuilder.cc.

References compMap, daugMap, sourceList, and srCompList.

Referenced by build(), and BPHRecoCandidate::fill().

179  {
180  daugMap.clear();
181  compMap.clear();
182  vector<ComponentSet> candList;
183  ComponentSet compSet;
184  build(candList, compSet, sourceList.begin(), sourceList.end(), srCompList.begin(), srCompList.end());
185  return candList;
186 }
std::map< std::string, BPHRecoConstCandPtr > compMap
std::vector< BPHCompSource * > srCompList
std::map< std::string, const reco::Candidate * > daugMap
std::vector< BPHRecoSource * > sourceList
std::vector< ComponentSet > build() const
build a set of combinations of particles fulfilling the selections

◆ build() [2/2]

void BPHRecoBuilder::build ( std::vector< ComponentSet > &  compList,
ComponentSet compSet,
std::vector< BPHRecoSource *>::const_iterator  r_iter,
std::vector< BPHRecoSource *>::const_iterator  r_iend,
std::vector< BPHCompSource *>::const_iterator  c_iter,
std::vector< BPHCompSource *>::const_iterator  c_iend 
) const
private

Definition at line 218 of file BPHRecoBuilder.cc.

References accept(), build(), universalConfigTemplate::collection, AlCaHLTBitMon_QueryRunRegistry::comp, BPHRecoBuilder::ComponentSet::compMap, compMap, contained(), BPHRecoBuilder::ComponentSet::daugMap, daugMap, mps_fire::i, dqmiolumiharvest::j, visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, collectionMerger::selector, optionsL1T::skip, and source.

223  {
224  if (r_iter == r_iend) {
225  if (c_iter == c_iend) {
226  compSet.compMap = compMap;
227  compList.push_back(compSet);
228  return;
229  }
230  BPHCompSource* source = *c_iter++;
231  const vector<BPHRecoConstCandPtr>* collection = source->collection;
232  vector<const BPHMomentumSelect*> momSelector = source->momSelector;
233  vector<const BPHVertexSelect*> vtxSelector = source->vtxSelector;
234  vector<const BPHFitSelect*> fitSelector = source->fitSelector;
235  int i;
236  int j;
237  int n = collection->size();
238  int m;
239  bool skip;
240  for (i = 0; i < n; ++i) {
241  skip = false;
243  if (contained(compSet, cand))
244  continue;
245  m = momSelector.size();
246  for (j = 0; j < m; ++j) {
247  if (!momSelector[j]->accept(*cand, this)) {
248  skip = true;
249  break;
250  }
251  }
252  if (skip)
253  continue;
254  m = vtxSelector.size();
255  for (j = 0; j < m; ++j) {
256  if (!vtxSelector[j]->accept(*cand, this)) {
257  skip = true;
258  break;
259  }
260  }
261  if (skip)
262  continue;
263  m = fitSelector.size();
264  for (j = 0; j < m; ++j) {
265  if (!fitSelector[j]->accept(*cand, this)) {
266  skip = true;
267  break;
268  }
269  }
270  if (skip)
271  continue;
272  compMap[*source->name] = cand;
273  build(compList, compSet, r_iter, r_iend, c_iter, c_iend);
274  compMap.erase(*source->name);
275  }
276  return;
277  }
278  BPHRecoSource* source = *r_iter++;
279  const BPHGenericCollection* collection = source->collection;
280  vector<const BPHRecoSelect*>& selector = source->selector;
281  int i;
282  int j;
283  int n = collection->size();
284  int m = selector.size();
285  bool skip;
286  for (i = 0; i < n; ++i) {
287  const reco::Candidate& cand = collection->get(i);
288  if (contained(compSet, &cand))
289  continue;
290  skip = false;
291  for (j = 0; j < m; ++j) {
292  if (!selector[j]->accept(cand, this)) {
293  skip = true;
294  break;
295  }
296  }
297  if (skip)
298  continue;
300  comp.cand = &cand;
301  comp.mass = source->mass;
302  comp.msig = source->msig;
303  comp.searchList = collection->searchList();
304  compSet.daugMap[*source->name] = comp;
305  daugMap[*source->name] = &cand;
306  build(compList, compSet, r_iter, r_iend, c_iter, c_iend);
307  daugMap.erase(*source->name);
308  compSet.daugMap.erase(*source->name);
309  }
310  return;
311 }
std::map< std::string, BPHRecoConstCandPtr > compMap
bool accept(const BPHRecoCandidate &cand) const
BPHGenericPtr< const BPHRecoCandidate >::type BPHRecoConstCandPtr
std::map< std::string, const reco::Candidate * > daugMap
bool contained(ComponentSet &compSet, const reco::Candidate *cand) const
std::vector< ComponentSet > build() const
build a set of combinations of particles fulfilling the selections
static std::string const source
Definition: EdmProvDump.cc:49

◆ contained() [1/2]

bool BPHRecoBuilder::contained ( ComponentSet compSet,
const reco::Candidate cand 
) const
private

Definition at line 313 of file BPHRecoBuilder.cc.

References BPHRecoBuilder::ComponentSet::daugMap, and sameTrack().

Referenced by build().

313  {
314  map<string, BPHDecayMomentum::Component>& dMap = compSet.daugMap;
315  map<string, BPHDecayMomentum::Component>::const_iterator d_iter;
316  map<string, BPHDecayMomentum::Component>::const_iterator d_iend = dMap.end();
317  for (d_iter = dMap.begin(); d_iter != d_iend; ++d_iter) {
318  const reco::Candidate* cChk = d_iter->second.cand;
319  if (cand == cChk)
320  return true;
321  if (sameTrack(cand, cChk))
322  return true;
323  }
324  return false;
325 }
static bool sameTrack(const reco::Candidate *lCand, const reco::Candidate *rCand, double minPDifference)

◆ contained() [2/2]

bool BPHRecoBuilder::contained ( ComponentSet compSet,
BPHRecoConstCandPtr  cand 
) const
private

Definition at line 327 of file BPHRecoBuilder.cc.

References compMap, BPHRecoBuilder::ComponentSet::daugMap, mps_splice::entry, dqmiolumiharvest::j, dqmdumpme::k, MainPageGenerator::l, visualization-live-secondInstance_cfg::m, and sameTrack().

327  {
328  map<string, BPHRecoConstCandPtr>::const_iterator c_iter;
329  map<string, BPHRecoConstCandPtr>::const_iterator c_iend = compMap.end();
330  const vector<const reco::Candidate*>& dCand = cCand->daughFull();
331  int j;
332  int m = dCand.size();
333  int k;
334  int l;
335  for (j = 0; j < m; ++j) {
336  const reco::Candidate* cand = cCand->originalReco(dCand[j]);
337  map<string, BPHDecayMomentum::Component>& dMap = compSet.daugMap;
338  map<string, BPHDecayMomentum::Component>::const_iterator d_iter;
339  map<string, BPHDecayMomentum::Component>::const_iterator d_iend = dMap.end();
340  for (d_iter = dMap.begin(); d_iter != d_iend; ++d_iter) {
341  const reco::Candidate* cChk = d_iter->second.cand;
342  if (cand == cChk)
343  return true;
344  if (sameTrack(cand, cChk))
345  return true;
346  }
347 
348  for (c_iter = compMap.begin(); c_iter != c_iend; ++c_iter) {
350  BPHRecoConstCandPtr cCChk = entry.second;
351  const vector<const reco::Candidate*>& dCChk = cCChk->daughFull();
352  l = dCChk.size();
353  for (k = 0; k < l; ++k) {
354  const reco::Candidate* cChk = cCChk->originalReco(dCChk[k]);
355  if (cand == cChk)
356  return true;
357  if (sameTrack(cand, cChk))
358  return true;
359  }
360  }
361  }
362 
363  return false;
364 }
static bool sameTrack(const reco::Candidate *lCand, const reco::Candidate *rCand, double minPDifference)
std::map< std::string, BPHRecoConstCandPtr > compMap
BPHGenericPtr< const BPHRecoCandidate >::type BPHRecoConstCandPtr

◆ createCollection() [1/2]

template<class T >
BPHRecoBuilder::BPHGenericCollection * BPHRecoBuilder::createCollection ( const edm::Handle< T > &  collection,
const std::string &  list = "cfhpmig" 
)
static

Definition at line 226 of file BPHRecoBuilder.h.

References universalConfigTemplate::collection.

Referenced by BPHWriteSpecificDecay::fill(), and BPHDecayToResTrkBuilderBase::fill().

227  {
228  return new BPHSpecificCollection<T>(*collection, list);
229 }

◆ createCollection() [2/2]

static BPHGenericCollection* BPHRecoBuilder::createCollection ( const std::vector< const reco::Candidate *> &  candList,
const std::string &  list = "cfhpmig" 
)
static

◆ eventSetup()

const BPHEventSetupWrapper * BPHRecoBuilder::eventSetup ( ) const

get the EventSetup set in the constructor

Definition at line 188 of file BPHRecoBuilder.cc.

References evSetup.

Referenced by BPHRecoCandidate::fill().

188 { return evSetup; }
const BPHEventSetupWrapper * evSetup

◆ filter() [1/7]

void BPHRecoBuilder::filter ( const std::string &  name,
const BPHRecoSelect sel 
) const

define selections to particles to be used in the reconstruction: simple particles

Referenced by BPHDecayToResFlyingBuilderBase::fill(), BPHDecayToResResBuilderBase::fill(), BPHDecayToResTrkBuilderBase::fill(), and BPHOniaToMuMuBuilder::fillRecList().

◆ filter() [2/7]

void BPHRecoBuilder::filter ( const std::string &  name,
const BPHMomentumSelect sel 
) const

previously reconstructed particles, at simple momentum sum level

◆ filter() [3/7]

void BPHRecoBuilder::filter ( const std::string &  name,
const BPHVertexSelect sel 
) const

previously reconstructed particles, at vertex reconstruction level

◆ filter() [4/7]

void BPHRecoBuilder::filter ( const std::string &  name,
const BPHFitSelect sel 
) const

previously reconstructed particles, at kinematical fit level

◆ filter() [5/7]

void BPHRecoBuilder::filter ( const BPHMomentumSelect sel)

define selections to recontructed particles, at different levels: simple momentum sum

Definition at line 138 of file BPHRecoBuilder.cc.

References msList, and EgammaValidation_Wenu_cff::sel.

138  {
139  msList.push_back(&sel);
140  return;
141 }
std::vector< const BPHMomentumSelect * > msList

◆ filter() [6/7]

void BPHRecoBuilder::filter ( const BPHVertexSelect sel)

vertex reconstruction

Definition at line 143 of file BPHRecoBuilder.cc.

References EgammaValidation_Wenu_cff::sel, and vsList.

143  {
144  vsList.push_back(&sel);
145  return;
146 }
std::vector< const BPHVertexSelect * > vsList

◆ filter() [7/7]

void BPHRecoBuilder::filter ( const BPHFitSelect sel)

kinematical fit

Definition at line 148 of file BPHRecoBuilder.cc.

References fsList, and EgammaValidation_Wenu_cff::sel.

148  {
149  fsList.push_back(&sel);
150  return;
151 }
std::vector< const BPHFitSelect * > fsList

◆ getComp()

BPHRecoConstCandPtr BPHRecoBuilder::getComp ( const std::string &  name) const

Definition at line 195 of file BPHRecoBuilder.cc.

References compMap, and Skims_PA_cff::name.

Referenced by BPHDecayToResResBuilderBase::DZSelect::accept().

195  {
196  map<string, BPHRecoConstCandPtr>::const_iterator iter = compMap.find(name);
197  return (iter == compMap.end() ? nullptr : iter->second);
198 }
std::map< std::string, BPHRecoConstCandPtr > compMap

◆ getDaug()

const reco::Candidate * BPHRecoBuilder::getDaug ( const std::string &  name) const

get simple or previously recontructed particle in current combination

Definition at line 190 of file BPHRecoBuilder.cc.

References daugMap, and Skims_PA_cff::name.

190  {
191  map<string, const reco::Candidate*>::const_iterator iter = daugMap.find(name);
192  return (iter == daugMap.end() ? nullptr : iter->second);
193 }
std::map< std::string, const reco::Candidate * > daugMap

◆ operator=()

BPHRecoBuilder& BPHRecoBuilder::operator= ( const BPHRecoBuilder x)
delete

◆ sameTrack() [1/2]

bool BPHRecoBuilder::sameTrack ( const reco::Candidate lCand,
const reco::Candidate rCand,
double  minPDifference 
)
static

compare two particles with their track reference and return true or false for same or different particles, including a check with momentum difference

Definition at line 200 of file BPHRecoBuilder.cc.

References reco::Candidate::charge(), BPHTrackReference::getFromPF(), BPHTrackReference::getFromRC(), and reco::Candidate::momentum().

Referenced by contained(), BPHWriteSpecificDecay::fill(), and sameTrack().

200  {
201  const reco::Track* lrcTrack = BPHTrackReference::getFromRC(*lCand);
202  const reco::Track* rrcTrack = BPHTrackReference::getFromRC(*rCand);
203  const reco::Track* lpfTrack = BPHTrackReference::getFromPF(*lCand);
204  const reco::Track* rpfTrack = BPHTrackReference::getFromPF(*rCand);
205  if ((lrcTrack != nullptr) && ((lrcTrack == rrcTrack) || (lrcTrack == rpfTrack)))
206  return true;
207  if ((lpfTrack != nullptr) && ((lpfTrack == rrcTrack) || (lpfTrack == rpfTrack)))
208  return true;
209  reco::Candidate::Vector pDiff = (lCand->momentum() - rCand->momentum());
210  reco::Candidate::Vector pMean = (lCand->momentum() + rCand->momentum());
211  double pDMod = pDiff.mag2();
212  double pMMod = pMean.mag2();
213  if (((pDMod / pMMod) < minPDifference) && (lCand->charge() == rCand->charge()))
214  return true;
215  return false;
216 }
static const reco::Track * getFromPF(const reco::Candidate &rc)
math::XYZVector Vector
point in the space
Definition: Candidate.h:42
static const reco::Track * getFromRC(const reco::Candidate &rc)
virtual Vector momentum() const =0
spatial momentum vector
virtual int charge() const =0
electric charge

◆ sameTrack() [2/2]

bool BPHRecoBuilder::sameTrack ( const reco::Candidate lCand,
const reco::Candidate rCand 
) const
private

Definition at line 366 of file BPHRecoBuilder.cc.

References minPDiff, and sameTrack().

366  {
367  return sameTrack(lCand, rCand, minPDiff);
368 }
static bool sameTrack(const reco::Candidate *lCand, const reco::Candidate *rCand, double minPDifference)

◆ setMinPDiffererence()

void BPHRecoBuilder::setMinPDiffererence ( double  pMin)

define a min. squared momentum difference between two particles (relative difference to squared momentum sum is used)

Definition at line 174 of file BPHRecoBuilder.cc.

References minPDiff, and ALCARECOTkAlMinBias_cff::pMin.

Referenced by BPHDecayToResFlyingBuilderBase::fill(), BPHDecayToResResBuilderBase::fill(), and BPHDecayToResTrkBuilderBase::fill().

174  {
175  minPDiff = pMin;
176  return;
177 }

Member Data Documentation

◆ compCollectList

std::set<const std::vector<BPHRecoConstCandPtr>*> BPHRecoBuilder::compCollectList
private

Definition at line 195 of file BPHRecoBuilder.h.

Referenced by add(), and ~BPHRecoBuilder().

◆ compMap

std::map<std::string, BPHRecoConstCandPtr> BPHRecoBuilder::compMap
mutableprivate

Definition at line 184 of file BPHRecoBuilder.h.

Referenced by build(), contained(), and getComp().

◆ daugMap

std::map<std::string, const reco::Candidate*> BPHRecoBuilder::daugMap
mutableprivate

Definition at line 183 of file BPHRecoBuilder.h.

Referenced by build(), and getDaug().

◆ evSetup

const BPHEventSetupWrapper* BPHRecoBuilder::evSetup
private

Definition at line 186 of file BPHRecoBuilder.h.

Referenced by eventSetup(), and ~BPHRecoBuilder().

◆ fsList

std::vector<const BPHFitSelect*> BPHRecoBuilder::fsList
private

Definition at line 200 of file BPHRecoBuilder.h.

Referenced by accept(), and filter().

◆ minPDiff

double BPHRecoBuilder::minPDiff
private

Definition at line 187 of file BPHRecoBuilder.h.

Referenced by sameTrack(), and setMinPDiffererence().

◆ msList

std::vector<const BPHMomentumSelect*> BPHRecoBuilder::msList
private

Definition at line 198 of file BPHRecoBuilder.h.

Referenced by accept(), BPHRecoBuilder(), and filter().

◆ sourceId

std::map<std::string, int> BPHRecoBuilder::sourceId
private

Definition at line 203 of file BPHRecoBuilder.h.

◆ sourceList

std::vector<BPHRecoSource*> BPHRecoBuilder::sourceList
private

Definition at line 190 of file BPHRecoBuilder.h.

Referenced by build(), and ~BPHRecoBuilder().

◆ srCompId

std::map<std::string, int> BPHRecoBuilder::srCompId
private

Definition at line 204 of file BPHRecoBuilder.h.

◆ srCompList

std::vector<BPHCompSource*> BPHRecoBuilder::srCompList
private

Definition at line 191 of file BPHRecoBuilder.h.

Referenced by build(), and ~BPHRecoBuilder().

◆ vsList

std::vector<const BPHVertexSelect*> BPHRecoBuilder::vsList
private

Definition at line 199 of file BPHRecoBuilder.h.

Referenced by accept(), BPHRecoBuilder(), and filter().