CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TrackingParticleSelectorByGen Class Reference

#include <SimGeneral/TrackingParticleSelectorByGen/plugins/TrackingParticleSelectorByGen.cc>

Inheritance diagram for TrackingParticleSelectorByGen:
edm::stream::EDProducer<>

Public Member Functions

 TrackingParticleSelectorByGen (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void flagDaughters (const reco::GenParticle &, int)
 
void flagMothers (const reco::GenParticle &, int)
 
void getDaughterKeys (std::vector< size_t > &, std::vector< size_t > &, const reco::GenParticleRefVector &) const
 
void getMotherKeys (std::vector< size_t > &, std::vector< size_t > &, const reco::GenParticleRefVector &) const
 
void parse (const std::string &selection, helper::SelectCode &code, std::string &cut) const
 
void produce (edm::Event &, const edm::EventSetup &) override
 
void recursiveFlagDaughters (size_t, const reco::GenParticleCollection &, int, std::vector< size_t > &)
 
void recursiveFlagMothers (size_t, const reco::GenParticleCollection &, int, std::vector< size_t > &)
 

Private Attributes

bool firstEvent_
 
std::vector< int > flags_
 
edm::EDGetTokenT< reco::GenParticleCollectiongpToken_
 
int keepOrDropAll_
 
std::vector< std::pair< StringCutObjectSelector< reco::GenParticle >, helper::SelectCode > > select_
 
std::vector< std::string > selection_
 
edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecordtableToken_
 
edm::EDGetTokenT< TrackingParticleCollectiontpToken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 49 of file TrackingParticleSelectorByGen.cc.

Constructor & Destructor Documentation

◆ TrackingParticleSelectorByGen()

TrackingParticleSelectorByGen::TrackingParticleSelectorByGen ( const edm::ParameterSet iConfig)
explicit

Definition at line 134 of file TrackingParticleSelectorByGen.cc.

135  : tpToken_(consumes<TrackingParticleCollection>(iConfig.getParameter<edm::InputTag>("trackingParticles"))),
136  gpToken_(consumes<reco::GenParticleCollection>(iConfig.getParameter<edm::InputTag>("genParticles"))),
138  firstEvent_(true),
140  selection_(iConfig.getParameter<vector<string>>("select")) {
141  produces<TrackingParticleCollection>();
142 }

Member Function Documentation

◆ fillDescriptions()

void TrackingParticleSelectorByGen::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 333 of file TrackingParticleSelectorByGen.cc.

333  {
335  desc.add<edm::InputTag>("trackingParticles", edm::InputTag("mix", "MergedTrackTruth"));
336  desc.add<edm::InputTag>("genParticles", edm::InputTag("genParticles"));
337  desc.add<vector<string>>("select");
338 
339  descriptions.add("tpSelectorByGenDefault", desc);
340 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.

◆ flagDaughters()

void TrackingParticleSelectorByGen::flagDaughters ( const reco::GenParticle gen,
int  keepOrDrop 
)
private

Definition at line 144 of file TrackingParticleSelectorByGen.cc.

144  {
145  const GenParticleRefVector &daughters = gen.daughterRefVector();
146  for (GenParticleRefVector::const_iterator i = daughters.begin(); i != daughters.end(); ++i)
147  flags_[i->key()] = keepOrDrop;
148 }

References BPhysicsValidation_cfi::daughters, flags_, and mps_fire::i.

Referenced by produce().

◆ flagMothers()

void TrackingParticleSelectorByGen::flagMothers ( const reco::GenParticle gen,
int  keepOrDrop 
)
private

Definition at line 150 of file TrackingParticleSelectorByGen.cc.

150  {
151  const GenParticleRefVector &mothers = gen.motherRefVector();
152  for (GenParticleRefVector::const_iterator i = mothers.begin(); i != mothers.end(); ++i)
153  flags_[i->key()] = keepOrDrop;
154 }

References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), flags_, and mps_fire::i.

Referenced by produce().

◆ getDaughterKeys()

void TrackingParticleSelectorByGen::getDaughterKeys ( std::vector< size_t > &  daIndxs,
std::vector< size_t > &  daNewIndxs,
const reco::GenParticleRefVector daughters 
) const
private

Definition at line 198 of file TrackingParticleSelectorByGen.cc.

200  {
201  for (GenParticleRefVector::const_iterator j = daughters.begin(); j != daughters.end(); ++j) {
202  GenParticleRef dau = *j;
203  if (find(daIndxs.begin(), daIndxs.end(), dau.key()) == daIndxs.end()) {
204  daIndxs.push_back(dau.key());
205  int idx = flags_[dau.key()];
206  if (idx > 0) {
207  daNewIndxs.push_back(idx);
208  } else {
209  const GenParticleRefVector &daus = dau->daughterRefVector();
210  if (!daus.empty())
211  getDaughterKeys(daIndxs, daNewIndxs, daus);
212  }
213  }
214  }
215 }

References BPhysicsValidation_cfi::daughters, edm::RefVector< C, T, F >::empty(), spr::find(), flags_, heavyIonCSV_trainingSettings::idx, dqmiolumiharvest::j, and edm::Ref< C, T, F >::key().

◆ getMotherKeys()

void TrackingParticleSelectorByGen::getMotherKeys ( std::vector< size_t > &  moIndxs,
std::vector< size_t > &  moNewIndxs,
const reco::GenParticleRefVector mothers 
) const
private

Definition at line 217 of file TrackingParticleSelectorByGen.cc.

219  {
220  for (GenParticleRefVector::const_iterator j = mothers.begin(); j != mothers.end(); ++j) {
221  GenParticleRef mom = *j;
222  if (find(moIndxs.begin(), moIndxs.end(), mom.key()) == moIndxs.end()) {
223  moIndxs.push_back(mom.key());
224  int idx = flags_[mom.key()];
225  if (idx >= 0) {
226  moNewIndxs.push_back(idx);
227  } else {
228  const GenParticleRefVector &moms = mom->motherRefVector();
229  if (!moms.empty())
230  getMotherKeys(moIndxs, moNewIndxs, moms);
231  }
232  }
233  }
234 }

References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::empty(), edm::RefVector< C, T, F >::end(), spr::find(), flags_, heavyIonCSV_trainingSettings::idx, dqmiolumiharvest::j, and edm::Ref< C, T, F >::key().

◆ parse()

void TrackingParticleSelectorByGen::parse ( const std::string &  selection,
helper::SelectCode code,
std::string &  cut 
) const
private

Definition at line 84 of file TrackingParticleSelectorByGen.cc.

86  {
87  using namespace ::helper;
88  size_t f = selection.find_first_not_of(' ');
89  size_t n = selection.size();
90  string command;
91  char c;
92  for (; (c = selection[f]) != ' ' && f < n; ++f) {
93  command.push_back(c);
94  }
95  if (command[0] == '+') {
96  command.erase(0, 1);
97  if (command[0] == '+') {
98  command.erase(0, 1);
99  code.mothersDepth_ = SelectCode::kAll;
100  } else {
101  code.mothersDepth_ = SelectCode::kFirst;
102  }
103  } else
105 
106  if (command[command.size() - 1] == '+') {
107  command.erase(command.size() - 1);
108  if (command[command.size() - 1] == '+') {
109  command.erase(command.size() - 1);
110  code.daughtersDepth_ = SelectCode::kAll;
111  } else {
112  code.daughtersDepth_ = SelectCode::kFirst;
113  }
114  } else
116 
117  if (command == "keep")
118  code.keepOrDrop_ = SelectCode::kKeep;
119  else if (command == "drop")
120  code.keepOrDrop_ = SelectCode::kDrop;
121  else {
122  throw Exception(errors::Configuration) << "invalid selection command: " << command << "\n" << endl;
123  }
124  for (; f < n; ++f) {
125  if (selection[f] != ' ')
126  break;
127  }
128  cut = string(selection, f);
129  if (cut[0] == '*')
130  cut = string(cut, 0, cut.find_first_of(' '));
131  code.all_ = cut == "*";
132 }

References helper::SelectCode::all_, c, mps_check::command, edm::errors::Configuration, PA_MinBiasSkim_cff::cut, helper::SelectCode::daughtersDepth_, Exception, f, helper::SelectCode::keepOrDrop_, WDecay::kNone, helper::SelectCode::mothersDepth_, dqmiodumpmetadata::n, corrVsCorr::selection, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by produce().

◆ produce()

void TrackingParticleSelectorByGen::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 236 of file TrackingParticleSelectorByGen.cc.

236  {
237  using namespace edm;
238 
239  if (firstEvent_) {
240  auto const &pdt = iSetup.getData(tableToken_);
241  for (vector<string>::const_iterator i = selection_.begin(); i != selection_.end(); ++i) {
242  string cut;
243  ::helper::SelectCode code;
244  parse(*i, code, cut);
245  if (code.all_) {
246  if (i != selection_.begin())
248  << "selections \"keep *\" and \"drop *\" can be used only as first options. Here used in position # "
249  << (i - selection_.begin()) + 1 << "\n"
250  << endl;
251  switch (code.keepOrDrop_) {
252  case ::helper::SelectCode::kDrop:
254  break;
255  case ::helper::SelectCode::kKeep:
257  };
258  } else {
259  cut = pdgEntryReplace(cut, pdt);
260  select_.push_back(make_pair(StringCutObjectSelector<GenParticle>(cut), code));
261  }
262  }
263  firstEvent_ = false;
264  }
265 
266  const auto &tps = iEvent.get(tpToken_);
267 
268  const auto &gps = iEvent.get(gpToken_);
269 
270  using namespace ::helper;
271  const size_t n = gps.size();
272  flags_.clear();
273  flags_.resize(n, keepOrDropAll_);
274  for (size_t j = 0; j < select_.size(); ++j) {
275  const pair<StringCutObjectSelector<GenParticle>, SelectCode> &sel = select_[j];
276  SelectCode code = sel.second;
278  for (size_t i = 0; i < n; ++i) {
279  const GenParticle &p = gps[i];
280  if (cut(p)) {
281  int keepOrDrop = keep;
282  switch (code.keepOrDrop_) {
283  case SelectCode::kKeep:
284  keepOrDrop = keep;
285  break;
286  case SelectCode::kDrop:
287  keepOrDrop = drop;
288  };
289  flags_[i] = keepOrDrop;
290  std::vector<size_t> allIndicesDa;
291  std::vector<size_t> allIndicesMo;
292  switch (code.daughtersDepth_) {
293  case SelectCode::kAll:
294  recursiveFlagDaughters(i, gps, keepOrDrop, allIndicesDa);
295  break;
296  case SelectCode::kFirst:
297  flagDaughters(p, keepOrDrop);
298  break;
299  case SelectCode::kNone:;
300  };
301  switch (code.mothersDepth_) {
302  case SelectCode::kAll:
303  recursiveFlagMothers(i, gps, keepOrDrop, allIndicesMo);
304  break;
305  case SelectCode::kFirst:
306  flagMothers(p, keepOrDrop);
307  break;
308  case SelectCode::kNone:;
309  };
310  }
311  }
312  }
313 
314  auto out = std::make_unique<TrackingParticleCollection>();
315  out->reserve(n);
316 
317  for (auto &&tp : tps) {
318  auto &associatedGenParticles = tp.genParticles();
319 
320  bool isSelected = false;
321  for (auto &&assocGen : associatedGenParticles) {
322  if (flags_[assocGen.index()] == keep)
323  isSelected = true;
324  }
325 
326  if (isSelected) {
327  out->emplace_back(tp);
328  }
329  }
330  iEvent.put(std::move(out));
331 }

References edm::errors::Configuration, PA_MinBiasSkim_cff::cut, drop, Exception, firstEvent_, flagDaughters(), flagMothers(), flags_, edm::EventSetup::getData(), gpToken_, mps_fire::i, iEvent, isSelected(), dqmiolumiharvest::j, keep, keepOrDropAll_, WDecay::kNone, eostools::move(), dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, AlCaHLTBitMon_ParallelJobs::p, parse(), pdgEntryReplace(), recursiveFlagDaughters(), recursiveFlagMothers(), EgammaValidation_Wenu_cff::sel, select_, selection_, tableToken_, cmsswSequenceInfo::tp, and tpToken_.

◆ recursiveFlagDaughters()

void TrackingParticleSelectorByGen::recursiveFlagDaughters ( size_t  index,
const reco::GenParticleCollection src,
int  keepOrDrop,
std::vector< size_t > &  allIndices 
)
private

Definition at line 156 of file TrackingParticleSelectorByGen.cc.

159  {
160  GenParticleRefVector daughters = src[index].daughterRefVector();
161  // avoid infinite recursion if the daughters are set to "this" particle.
162  size_t cachedIndex = index;
163  for (GenParticleRefVector::const_iterator i = daughters.begin(); i != daughters.end(); ++i) {
164  index = i->key();
165  // To also avoid infinite recursion if a "loop" is found in the daughter list,
166  // check to make sure the index hasn't already been added.
167  if (find(allIndices.begin(), allIndices.end(), index) == allIndices.end()) {
168  allIndices.push_back(index);
169  if (cachedIndex != index) {
170  flags_[index] = keepOrDrop;
171  recursiveFlagDaughters(index, src, keepOrDrop, allIndices);
172  }
173  }
174  }
175 }

References BPhysicsValidation_cfi::daughters, spr::find(), flags_, mps_fire::i, and TrackRefitter_38T_cff::src.

Referenced by produce().

◆ recursiveFlagMothers()

void TrackingParticleSelectorByGen::recursiveFlagMothers ( size_t  index,
const reco::GenParticleCollection src,
int  keepOrDrop,
std::vector< size_t > &  allIndices 
)
private

Definition at line 177 of file TrackingParticleSelectorByGen.cc.

180  {
181  GenParticleRefVector mothers = src[index].motherRefVector();
182  // avoid infinite recursion if the mothers are set to "this" particle.
183  size_t cachedIndex = index;
184  for (GenParticleRefVector::const_iterator i = mothers.begin(); i != mothers.end(); ++i) {
185  index = i->key();
186  // To also avoid infinite recursion if a "loop" is found in the daughter list,
187  // check to make sure the index hasn't already been added.
188  if (find(allIndices.begin(), allIndices.end(), index) == allIndices.end()) {
189  allIndices.push_back(index);
190  if (cachedIndex != index) {
191  flags_[index] = keepOrDrop;
192  recursiveFlagMothers(index, src, keepOrDrop, allIndices);
193  }
194  }
195  }
196 }

References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), spr::find(), flags_, mps_fire::i, and TrackRefitter_38T_cff::src.

Referenced by produce().

Member Data Documentation

◆ firstEvent_

bool TrackingParticleSelectorByGen::firstEvent_
private

Definition at line 71 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

◆ flags_

std::vector<int> TrackingParticleSelectorByGen::flags_
private

◆ gpToken_

edm::EDGetTokenT<reco::GenParticleCollection> TrackingParticleSelectorByGen::gpToken_
private

Definition at line 69 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

◆ keepOrDropAll_

int TrackingParticleSelectorByGen::keepOrDropAll_
private

Definition at line 72 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

◆ select_

std::vector<std::pair<StringCutObjectSelector<reco::GenParticle>, helper::SelectCode> > TrackingParticleSelectorByGen::select_
private

Definition at line 75 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

◆ selection_

std::vector<std::string> TrackingParticleSelectorByGen::selection_
private

Definition at line 74 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

◆ tableToken_

edm::ESGetToken<HepPDT::ParticleDataTable, edm::DefaultRecord> TrackingParticleSelectorByGen::tableToken_
private

Definition at line 70 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

◆ tpToken_

edm::EDGetTokenT<TrackingParticleCollection> TrackingParticleSelectorByGen::tpToken_
private

Definition at line 68 of file TrackingParticleSelectorByGen.cc.

Referenced by produce().

mps_fire.i
i
Definition: mps_fire.py:428
TrackingParticleSelectorByGen::getMotherKeys
void getMotherKeys(std::vector< size_t > &, std::vector< size_t > &, const reco::GenParticleRefVector &) const
Definition: TrackingParticleSelectorByGen.cc:217
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
TrackingParticleSelectorByGen::recursiveFlagDaughters
void recursiveFlagDaughters(size_t, const reco::GenParticleCollection &, int, std::vector< size_t > &)
Definition: TrackingParticleSelectorByGen.cc:156
helper::SelectCode::keepOrDrop_
KeepOrDrop keepOrDrop_
Definition: GenParticlePruner.cc:17
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
TrackingParticleSelectorByGen::tableToken_
edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_
Definition: TrackingParticleSelectorByGen.cc:70
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TrackingParticleSelectorByGen::getDaughterKeys
void getDaughterKeys(std::vector< size_t > &, std::vector< size_t > &, const reco::GenParticleRefVector &) const
Definition: TrackingParticleSelectorByGen.cc:198
TrackingParticleSelectorByGen::select_
std::vector< std::pair< StringCutObjectSelector< reco::GenParticle >, helper::SelectCode > > select_
Definition: TrackingParticleSelectorByGen.cc:75
isSelected
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
Definition: L1HPSPFTauQualityCut.cc:90
edm::RefVector< GenParticleCollection >
drop
const int drop
Definition: TrackingParticleSelectorByGen.cc:82
TrackingParticleSelectorByGen::recursiveFlagMothers
void recursiveFlagMothers(size_t, const reco::GenParticleCollection &, int, std::vector< size_t > &)
Definition: TrackingParticleSelectorByGen.cc:177
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
mps_check.command
list command
Definition: mps_check.py:25
GenParticle
Definition: GenParticle.py:1
edm::Ref< GenParticleCollection >
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
TrackingParticleSelectorByGen::firstEvent_
bool firstEvent_
Definition: TrackingParticleSelectorByGen.cc:71
TrackingParticleSelectorByGen::keepOrDropAll_
int keepOrDropAll_
Definition: TrackingParticleSelectorByGen.cc:72
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
edm::RefVector::empty
bool empty() const
Is the RefVector empty.
Definition: RefVector.h:99
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
BPhysicsValidation_cfi.daughters
daughters
Definition: BPhysicsValidation_cfi.py:11
TrackingParticleSelectorByGen::parse
void parse(const std::string &selection, helper::SelectCode &code, std::string &cut) const
Definition: TrackingParticleSelectorByGen.cc:84
keep
const int keep
Definition: TrackingParticleSelectorByGen.cc:82
helper::SelectCode::all_
bool all_
Definition: GenParticlePruner.cc:19
corrVsCorr.selection
selection
main part
Definition: corrVsCorr.py:100
TrackingParticleSelectorByGen::flags_
std::vector< int > flags_
Definition: TrackingParticleSelectorByGen.cc:73
gen
Definition: PythiaDecays.h:13
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
TrackingParticleSelectorByGen::tpToken_
edm::EDGetTokenT< TrackingParticleCollection > tpToken_
Definition: TrackingParticleSelectorByGen.cc:68
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
helper
Definition: helper.py:1
iEvent
int iEvent
Definition: GenABIO.cc:224
pdgEntryReplace
std::string pdgEntryReplace(const std::string &, HepPDT::ParticleDataTable const &)
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
WDecay::kNone
Definition: TopGenEvent.h:27
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
helper::SelectCode::daughtersDepth_
FlagDepth daughtersDepth_
Definition: GenParticlePruner.cc:18
PA_MinBiasSkim_cff.cut
cut
Definition: PA_MinBiasSkim_cff.py:13
StringCutObjectSelector
Definition: StringCutObjectSelector.h:16
Exception
Definition: hltDiff.cc:245
edm::RefVectorIterator
Definition: EDProductfwd.h:33
TrackingParticleSelectorByGen::gpToken_
edm::EDGetTokenT< reco::GenParticleCollection > gpToken_
Definition: TrackingParticleSelectorByGen.cc:69
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
helper::SelectCode::mothersDepth_
FlagDepth mothersDepth_
Definition: GenParticlePruner.cc:18
TrackingParticleSelectorByGen::flagDaughters
void flagDaughters(const reco::GenParticle &, int)
Definition: TrackingParticleSelectorByGen.cc:144
TrackingParticleSelectorByGen::selection_
std::vector< std::string > selection_
Definition: TrackingParticleSelectorByGen.cc:74
edm::Ref::key
key_type key() const
Accessor for product key.
Definition: Ref.h:250
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::errors::Configuration
Definition: EDMException.h:36
edm::InputTag
Definition: InputTag.h:15
TrackingParticleSelectorByGen::flagMothers
void flagMothers(const reco::GenParticle &, int)
Definition: TrackingParticleSelectorByGen.cc:150