CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
gen::JetMatchingMGFastJet Class Reference

#include <JetMatchingMGFastJet.h>

Inheritance diagram for gen::JetMatchingMGFastJet:
gen::JetMatching

Public Member Functions

const std::vector< int > * getPartonList () override
 
 JetMatchingMGFastJet (const edm::ParameterSet &params)
 
 ~JetMatchingMGFastJet () override
 
- Public Member Functions inherited from gen::JetMatching
virtual std::set< std::string > capabilities () const
 
bool isMatchingDone ()
 
 JetMatching (const edm::ParameterSet &params)
 
void resetMatchingStatus ()
 
virtual ~JetMatching ()
 

Protected Member Functions

void beforeHadronisation (const lhef::LHEEvent *) override
 
void beforeHadronisationExec () override
 
double getJetEtaMax () const override
 
void init (const lhef::LHERunInfo *runInfo) override
 
bool initAfterBeams () override
 
int match (const lhef::LHEEvent *partonLevel, const std::vector< fastjet::PseudoJet > *jetInput) override
 

Private Types

enum  partonTypes { ID_TOP = 6, ID_GLUON = 21, ID_PHOTON = 22 }
 
enum  vetoStatus {
  NONE, LESS_JETS, MORE_JETS, HARD_JET,
  UNMATCHED_PARTON
}
 

Private Member Functions

template<typename T >
T getParameter (const std::string &var, const T &defValue=T()) const
 

Static Private Member Functions

template<typename T >
static T getParameter (const std::map< std::string, std::string > &params, const std::string &var, const T &defValue=T())
 
template<>
std::string parseParameter (const std::string &value)
 
template<typename T >
static T parseParameter (const std::string &value)
 
template<>
bool parseParameter (const std::string &value_)
 
template<typename T >
static void updateOrDie (const std::map< std::string, std::string > &params, T &param, const std::string &name)
 

Private Attributes

double clFact
 
double coneRadius
 
bool doMerge
 
double etaJetMax
 
bool exclusive
 
std::vector< fastjet::PseudoJet > fClusJets
 
int fDJROutFlag
 
std::ofstream fDJROutput
 
bool fExcLocal
 
bool fIsInit
 
fastjet::JetDefinition * fJetFinder
 
std::vector< fastjet::PseudoJet > fPtSortedJets
 
int jetAlgoPower
 
std::map< std::string, std::string > mgParams
 
int nJetMax
 
int nJetMin
 
int nQmatch
 
double qCut
 
double qCutSq
 
bool runInitialized
 
bool soup
 
std::vector< int > typeIdx [3]
 

Additional Inherited Members

- Static Public Member Functions inherited from gen::JetMatching
static std::unique_ptr< JetMatchingcreate (const edm::ParameterSet &params)
 
- Protected Attributes inherited from gen::JetMatching
bool fMatchingStatus
 

Detailed Description

Definition at line 31 of file JetMatchingMGFastJet.h.

Member Enumeration Documentation

◆ partonTypes

Enumerator
ID_TOP 
ID_GLUON 
ID_PHOTON 

Definition at line 73 of file JetMatchingMGFastJet.h.

73 { ID_TOP = 6, ID_GLUON = 21, ID_PHOTON = 22 };

◆ vetoStatus

Enumerator
NONE 
LESS_JETS 
MORE_JETS 
HARD_JET 
UNMATCHED_PARTON 

Definition at line 72 of file JetMatchingMGFastJet.h.

Constructor & Destructor Documentation

◆ JetMatchingMGFastJet()

gen::JetMatchingMGFastJet::JetMatchingMGFastJet ( const edm::ParameterSet params)

Definition at line 127 of file JetMatchingMGFastJet.cc.

128  : JetMatching(params), runInitialized(false), fJetFinder(nullptr), fIsInit(false) {
129  std::string mode = params.getParameter<std::string>("mode");
130  if (mode == "inclusive") {
131  soup = false;
132  exclusive = false;
133  } else if (mode == "exclusive") {
134  soup = false;
135  exclusive = true;
136  } else if (mode == "auto")
137  soup = true;
138  else
139  throw cms::Exception("Generator|LHEInterface") << "MGFastJet jet matching scheme requires \"mode\" "
140  "parameter to be set to either \"inclusive\", "
141  "\"exclusive\" or \"auto\"."
142  << std::endl;
143 
144  memain_.etcjet = 0.;
145  memain_.rclmax = 0.0;
146  memain_.clfact = 0.0;
147  memain_.ktsche = 0.0;
148  memain_.etaclmax = params.getParameter<double>("MEMAIN_etaclmax");
149  memain_.qcut = params.getParameter<double>("MEMAIN_qcut");
150  memain_.minjets = params.getParameter<int>("MEMAIN_minjets");
151  memain_.maxjets = params.getParameter<int>("MEMAIN_maxjets");
152  memain_.showerkt = params.getParameter<double>("MEMAIN_showerkt");
153  memain_.nqmatch = params.getParameter<int>("MEMAIN_nqmatch");
154  outtree_.flag = params.getParameter<int>("outTree_flag");
155  std::string list_excres = params.getParameter<std::string>("MEMAIN_excres");
156  std::vector<std::string> elems;
157  std::stringstream ss(list_excres);
159  int index = 0;
160  while (std::getline(ss, item, ',')) {
161  elems.push_back(item);
162  memain_.excres[index] = std::atoi(item.c_str());
163  index++;
164  }
166 
167  fDJROutFlag = params.getParameter<int>("outTree_flag");
168  }

References gen::MEMAIN::clfact, gen::MEMAIN::etaclmax, gen::MEMAIN::etcjet, Exception, exclusive, gen::MEMAIN::excres, fDJROutFlag, gen::OUTTREE::flag, B2GTnPMonitor_cfi::item, gen::MEMAIN::ktsche, gen::MEMAIN::maxjets, gen::memain_, gen::MEMAIN::minjets, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, gen::MEMAIN::nexcres, gen::MEMAIN::nqmatch, gen::outtree_, CalibrationSummaryClient_cfi::params, gen::MEMAIN::qcut, gen::MEMAIN::rclmax, gen::MEMAIN::showerkt, soup, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~JetMatchingMGFastJet()

gen::JetMatchingMGFastJet::~JetMatchingMGFastJet ( )
inlineoverride

Definition at line 35 of file JetMatchingMGFastJet.h.

35  {
36  if (fJetFinder)
37  delete fJetFinder;
38  }

References fJetFinder.

Member Function Documentation

◆ beforeHadronisation()

void gen::JetMatchingMGFastJet::beforeHadronisation ( const lhef::LHEEvent lhee)
overrideprotectedvirtual

Reimplemented from gen::JetMatching.

Definition at line 213 of file JetMatchingMGFastJet.cc.

213  {
214  if (!runInitialized)
215  throw cms::Exception("Generator|PartonShowerVeto") << "Run not initialized in JetMatchingMGFastJet" << std::endl;
216 
217  for (int i = 0; i < 3; i++) {
218  typeIdx[i].clear();
219  }
220 
221  // Sort original process final state into light/heavy jets and 'other'.
222  // Criteria:
223  // 1 <= ID <= 5 and massless, or ID == 21 --> light jet (typeIdx[0])
224  // 4 <= ID <= 6 and massive --> heavy jet (typeIdx[1])
225  // All else --> other (typeIdx[2])
226  //
227  const lhef::HEPEUP &hepeup = *lhee->getHEPEUP();
228  int idx = 2;
229  for (int i = 0; i < hepeup.NUP; i++) {
230  if (hepeup.ISTUP[i] < 0)
231  continue;
232  if (hepeup.MOTHUP[i].first != 1 && hepeup.MOTHUP[i].second != 2)
233  continue; // this way we skip entries that come
234  // from resonance decays;
235  // we only take those that descent
236  // directly from "incoming partons"
237  idx = 2;
238  if (hepeup.IDUP[i] == ID_GLUON || (std::abs(hepeup.IDUP[i]) <= nQmatch)) // light jet
239  // light jet
240  idx = 0;
241  else if (std::abs(hepeup.IDUP[i]) > nQmatch && std::abs(hepeup.IDUP[i]) <= ID_TOP) // heavy jet
242  idx = 1;
243  // Store
244  typeIdx[idx].push_back(i);
245  }
246 
247  // NOTE: In principle, I should use exclusive, inclusive, or soup !!!
248  // should be like this:
249  if (soup) {
250  int NPartons = typeIdx[0].size();
251  fExcLocal = (NPartons < nJetMax);
252  } else
254 
255  return;
256  }

References funct::abs(), Exception, exclusive, fExcLocal, lhef::LHEEvent::getHEPEUP(), mps_fire::i, ID_GLUON, ID_TOP, lhef::HEPEUP::IDUP, heavyIonCSV_trainingSettings::idx, lhef::HEPEUP::ISTUP, lhef::HEPEUP::MOTHUP, nJetMax, nQmatch, lhef::HEPEUP::NUP, runInitialized, soup, and typeIdx.

◆ beforeHadronisationExec()

void gen::JetMatchingMGFastJet::beforeHadronisationExec ( )
inlineoverrideprotectedvirtual

Reimplemented from gen::JetMatching.

Definition at line 47 of file JetMatchingMGFastJet.h.

47 { return; }

◆ getJetEtaMax()

double gen::JetMatchingMGFastJet::getJetEtaMax ( ) const
overrideprotectedvirtual

Implements gen::JetMatching.

Definition at line 170 of file JetMatchingMGFastJet.cc.

170 { return memain_.etaclmax; }

References gen::MEMAIN::etaclmax, and gen::memain_.

◆ getParameter() [1/2]

template<typename T >
T gen::JetMatchingMGFastJet::getParameter ( const std::map< std::string, std::string > &  params,
const std::string &  var,
const T defValue = T() 
)
staticprivate

Definition at line 72 of file JetMatchingMGFastJet.cc.

74  {
75  std::map<std::string, std::string>::const_iterator pos = params.find(var);
76  if (pos == params.end())
77  return defValue;
78  return parseParameter<T>(pos->second);
79  }

References CalibrationSummaryClient_cfi::params, and trigObjTnPSource_cfi::var.

Referenced by getParameter(), and updateOrDie().

◆ getParameter() [2/2]

template<typename T >
T gen::JetMatchingMGFastJet::getParameter ( const std::string &  var,
const T defValue = T() 
) const
private

Definition at line 82 of file JetMatchingMGFastJet.cc.

82  {
83  return getParameter(mgParams, var, defValue);
84  }

References getParameter(), mgParams, and trigObjTnPSource_cfi::var.

◆ getPartonList()

const std::vector<int>* gen::JetMatchingMGFastJet::getPartonList ( )
inlineoverridevirtual

Reimplemented from gen::JetMatching.

Definition at line 40 of file JetMatchingMGFastJet.h.

40 { return typeIdx; }

References typeIdx.

◆ init()

void gen::JetMatchingMGFastJet::init ( const lhef::LHERunInfo runInfo)
overrideprotectedvirtual

Reimplemented from gen::JetMatching.

Definition at line 258 of file JetMatchingMGFastJet.cc.

258  {
259  if (fIsInit)
260  return;
261 
262  // read MGFastJet run card
263 
264  std::map<std::string, std::string> parameters;
265 
266  std::vector<std::string> header = runInfo->findHeader("MGRunCard");
267  if (header.empty())
268  throw cms::Exception("Generator|PartonShowerVeto") << "In order to use MGFastJet jet matching, "
269  "the input file has to contain the corresponding "
270  "MadGraph headers."
271  << std::endl;
272 
274 
275  // set variables in common block
276 
277  std::vector<Param> params;
278  std::vector<Param> values;
279  for (std::map<std::string, std::string>::const_iterator iter = mgParams.begin(); iter != mgParams.end(); ++iter) {
280  params.push_back(" " + iter->first);
281  values.push_back(iter->second);
282  }
283 
284  // set MG matching parameters
285 
286  uppriv_.ickkw = getParameter<int>("ickkw", 0);
287  memain_.mektsc = getParameter<int>("ktscheme", 0);
288 
289  header = runInfo->findHeader("MGParamCMS");
290 
291  std::map<std::string, std::string> mgInfoCMS = parseHeader(header);
292 
293  for (std::map<std::string, std::string>::const_iterator iter = mgInfoCMS.begin(); iter != mgInfoCMS.end(); ++iter) {
294  std::cout << "mgInfoCMS: " << iter->first << " " << iter->second << std::endl;
295  }
296 
297  updateOrDie(mgInfoCMS, memain_.etaclmax, "etaclmax");
298  updateOrDie(mgInfoCMS, memain_.qcut, "qcut");
299  updateOrDie(mgInfoCMS, memain_.minjets, "minjets");
300  updateOrDie(mgInfoCMS, memain_.maxjets, "maxjets");
301  updateOrDie(mgInfoCMS, memain_.showerkt, "showerkt");
302  updateOrDie(mgInfoCMS, memain_.nqmatch, "nqmatch");
303 
304  runInitialized = true;
305 
306  initAfterBeams();
307 
308  fIsInit = true;
309 
310  return;
311  }

References gather_cfg::cout, gen::MEMAIN::etaclmax, fIsInit, RecoTauValidation_cfi::header, gen::UPPRIV::ickkw, initAfterBeams(), gen::MEMAIN::maxjets, gen::MEMAIN::mektsc, gen::memain_, mgParams, gen::MEMAIN::minjets, gen::MEMAIN::nqmatch, CalibrationSummaryClient_cfi::params, gen::parseHeader(), gen::MEMAIN::qcut, submitPVValidationJobs::runInfo, runInitialized, gen::MEMAIN::showerkt, updateOrDie(), gen::uppriv_, and contentValuesCheck::values.

◆ initAfterBeams()

bool gen::JetMatchingMGFastJet::initAfterBeams ( )
overrideprotectedvirtual

Reimplemented from gen::JetMatching.

Definition at line 172 of file JetMatchingMGFastJet.cc.

172  {
173  if (fIsInit)
174  return true;
175 
176  //
178  // doMerge = true;
179  qCut = memain_.qcut; //
181  clFact = 1.; // Default value
182  // NOTE: ME2pythia seems to default to 1.5 - need to check !!!
183  // in general, needs to read key ALPSFACT from LHE file - fix CMSSW code !!!
186 
188 
189  coneRadius = 1.0;
190  jetAlgoPower = 1; // this is the kT algorithm !!!
191 
192  // Matching procedure
193  //
194  qCutSq = pow(qCut, 2);
195  // this should be something like memaev_.iexc
196  fExcLocal = true;
197 
198  // If not merging, then done (?????)
199  //
200  // if (!doMerge) return true;
201 
202  // Initialise chosen jet algorithm.
203  //
204  fJetFinder = new fastjet::JetDefinition(fastjet::kt_algorithm, coneRadius);
205  fClusJets.clear();
206  fPtSortedJets.clear();
207 
208  fIsInit = true;
209 
210  return true;
211  }

References clFact, coneRadius, doMerge, gen::MEMAIN::etaclmax, etaJetMax, fClusJets, fExcLocal, fIsInit, fJetFinder, fPtSortedJets, gen::UPPRIV::ickkw, jetAlgoPower, gen::MEMAIN::maxjets, gen::memain_, gen::MEMAIN::minjets, nJetMax, nJetMin, gen::MEMAIN::nqmatch, nQmatch, funct::pow(), gen::MEMAIN::qcut, qCut, qCutSq, and gen::uppriv_.

Referenced by init().

◆ match()

int gen::JetMatchingMGFastJet::match ( const lhef::LHEEvent partonLevel,
const std::vector< fastjet::PseudoJet > *  jetInput 
)
overrideprotectedvirtual

Implements gen::JetMatching.

Definition at line 313 of file JetMatchingMGFastJet.cc.

313  {
314  // Number of hard partons
315  //
316  int NPartons = typeIdx[0].size();
317 
318  fClusJets.clear();
319  fPtSortedJets.clear();
320 
321  int ClusSeqNJets = 0;
322 
323  fastjet::ClusterSequence ClusSequence(*jetInput, *fJetFinder);
324 
325  if (fExcLocal) {
326  fClusJets = ClusSequence.exclusive_jets(qCutSq);
327  } else {
328  fClusJets = ClusSequence.inclusive_jets(qCut);
329  }
330 
331  ClusSeqNJets = fClusJets.size();
332 
333  if (ClusSeqNJets < NPartons)
334  return LESS_JETS;
335 
336  double localQcutSq = qCutSq;
337 
338  if (fExcLocal) // exclusive
339  {
340  if (ClusSeqNJets > NPartons)
341  return MORE_JETS;
342  } else // inclusive
343  {
344  fPtSortedJets = fastjet::sorted_by_pt(*jetInput);
345  localQcutSq = std::max(qCutSq, fPtSortedJets[0].pt2());
346  fClusJets = ClusSequence.exclusive_jets(NPartons); // override
347  ClusSeqNJets = NPartons;
348  }
349 
350  if (clFact != 0)
351  localQcutSq *= pow(clFact, 2);
352 
353  std::vector<fastjet::PseudoJet> MatchingInput;
354 
355  std::vector<bool> jetAssigned;
356  jetAssigned.assign(fClusJets.size(), false);
357 
358  int counter = 0;
359 
360  const lhef::HEPEUP &hepeup = *partonLevel->getHEPEUP();
361 
362  while (counter < NPartons) {
363  MatchingInput.clear();
364 
365  for (int i = 0; i < ClusSeqNJets; i++) {
366  if (jetAssigned[i])
367  continue;
368  if (i == NPartons)
369  break;
370  //
371  // this looks "awkward" but this way we do NOT pass in cluster_hist_index
372  // which would actually indicate position in "history" of the "master" ClusSeq
373  //
374  fastjet::PseudoJet exjet = fClusJets[i];
375  MatchingInput.push_back(fastjet::PseudoJet(exjet.px(), exjet.py(), exjet.pz(), exjet.e()));
376  MatchingInput.back().set_user_index(i);
377  }
378 
379  int idx = typeIdx[0][counter];
380  MatchingInput.push_back(
381  fastjet::PseudoJet(hepeup.PUP[idx][0], hepeup.PUP[idx][1], hepeup.PUP[idx][2], hepeup.PUP[idx][3]));
382 
383  //
384  // in principle, one can use ClusterSequence::n_particles()
385  //
386  int NBefore = MatchingInput.size();
387 
388  // Create new clustering object - which includes the 1st clustering run !!!
389  // NOTE-1: it better be a new object for each try, or history will be "too crowded".
390  // NOTE-2: when created, the it ALWAYS makes at least 1 clustering step, so in most
391  // cases at least 1 new jet object will be added; although in some cases
392  // no jet is added, if the system doesn't cluster to anything (for example,
393  // input jet(s) and parton(s) are going opposite directions)
394  //
395  fastjet::ClusterSequence ClusSeq(MatchingInput, *fJetFinder);
396 
397  const std::vector<fastjet::PseudoJet> &output = ClusSeq.jets();
398  int NClusJets = output.size() - NBefore;
399 
400  //
401  // JVY - I think this is the right idea:
402  // at least 1 (one) new jet needs to be added
403  // however, need to double check details and refine, especially for inclusive mode
404  //
405  //
406  if (NClusJets < 1) {
407  return UNMATCHED_PARTON;
408  }
409  //
410  // very unlikely case but let's do it just to be safe
411  //
412  if (NClusJets >= NBefore) {
413  return MORE_JETS;
414  }
415 
416  // Now browse history and see how close the clustering distance
417  //
418  // NOTE: Remember, there maybe more than one new jet in the list (for example,
419  // for process=2,3,...);
420  // in this case we take the ** first ** one that satisfies the distance/cut,
421  // which is ** typically ** also the best one
422  //
423  bool matched = false;
424  const std::vector<fastjet::ClusterSequence::history_element> &history = ClusSeq.history();
425 
426  // for ( unsigned int i=nBefore; i<history.size(); i++ )
427  for (unsigned int i = NBefore; i < output.size(); i++) {
428  int hidx = output[i].cluster_sequence_history_index();
429  double dNext = history[hidx].dij;
430  if (dNext < localQcutSq) {
431  //
432  // the way we form input, parent1 is always jet, and parent2 can be any,
433  // but if it's a good match/cluster, it should point at the parton
434  //
435  int parent1 = history[hidx].parent1;
436  int parent2 = history[hidx].parent2;
437  if (parent1 < 0 || parent2 < 0)
438  break; // bad cluster, no match
439  //
440  // pull up jet's "global" index
441  //
442  int pidx = MatchingInput[parent1].user_index();
443  jetAssigned[pidx] = true;
444  matched = true;
445  break;
446  }
447  }
448  if (!matched) {
449  return UNMATCHED_PARTON;
450  }
451 
452  counter++;
453  }
454 
455  // Now save some info for DJR analysis (if requested).
456  // This mimics what is done in ME2pythia.f
457  // Basically, NJets and matching scale for these 4 cases:
458  // 1->0, 2->1, 3->2, and 4->3
459  //
460  if (fDJROutFlag > 0) {
461  std::vector<double> MergingScale;
462  MergingScale.clear();
463  for (int nj = 0; nj < 4; nj++) {
464  double dmscale2 = ClusSequence.exclusive_dmerge(nj);
465  double dmscale = sqrt(dmscale2);
466  MergingScale.push_back(dmscale);
467  }
468  fDJROutput.open("events.tree", std::ios_base::app);
469  double dNJets = (double)NPartons;
470  fDJROutput << " " << dNJets << " " << MergingScale[0] << " " << MergingScale[1] << " " << MergingScale[2] << " "
471  << MergingScale[3] << std::endl;
472  fDJROutput.close();
473  }
474 
475  return NONE;
476  }

References clFact, counter, fClusJets, fDJROutFlag, fDJROutput, fExcLocal, fJetFinder, fPtSortedJets, lhef::LHEEvent::getHEPEUP(), mps_fire::i, heavyIonCSV_trainingSettings::idx, LESS_JETS, muonTagProbeFilters_cff::matched, SiStripPI::max, MORE_JETS, NONE, convertSQLitetoXML_cfg::output, funct::pow(), HLT_FULL_cff::pt2, lhef::HEPEUP::PUP, qCut, qCutSq, mathSSE::sqrt(), typeIdx, and UNMATCHED_PARTON.

◆ parseParameter() [1/3]

template<>
std::string gen::JetMatchingMGFastJet::parseParameter ( const std::string &  value)
staticprivate

Definition at line 55 of file JetMatchingMGFastJet.cc.

55  {
57  if (!result.empty() && result[0] == '\'')
58  result = result.substr(1);
59  if (!result.empty() && result[result.length() - 1] == '\'')
60  result.resize(result.length() - 1);
61  return result;
62  }

References mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ parseParameter() [2/3]

template<typename T >
T gen::JetMatchingMGFastJet::parseParameter ( const std::string &  value)
staticprivate

Definition at line 47 of file JetMatchingMGFastJet.cc.

47  {
48  std::istringstream ss(value);
49  T result;
50  ss >> result;
51  return result;
52  }

References mps_fire::result, and contentValuesCheck::ss.

◆ parseParameter() [3/3]

template<>
bool gen::JetMatchingMGFastJet::parseParameter ( const std::string &  value_)
staticprivate

Definition at line 65 of file JetMatchingMGFastJet.cc.

65  {
66  std::string value(value_);
67  std::transform(value.begin(), value.end(), value.begin(), (int (*)(int))std::toupper);
68  return value == "T" || value == "Y" || value == "True" || value == "1" || value == ".TRUE.";
69  }

References createfilelist::int, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetIdTransform::transform(), and relativeConstraints::value.

◆ updateOrDie()

template<typename T >
void gen::JetMatchingMGFastJet::updateOrDie ( const std::map< std::string, std::string > &  params,
T param,
const std::string &  name 
)
staticprivate

Definition at line 112 of file JetMatchingMGFastJet.cc.

114  {
115  if (param < 0) {
116  param = getParameter(params, name, param);
117  }
118  if (param < 0)
119  throw cms::Exception("Generator|PartonShowerVeto") << "The MGParamCMS header does not specify the jet "
120  "matching parameter \""
121  << name
122  << "\", but it "
123  "is requested by the CMSSW configuration."
124  << std::endl;
125  }

References Exception, getParameter(), Skims_PA_cff::name, and CalibrationSummaryClient_cfi::params.

Referenced by init().

Member Data Documentation

◆ clFact

double gen::JetMatchingMGFastJet::clFact
private

Definition at line 76 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams(), and match().

◆ coneRadius

double gen::JetMatchingMGFastJet::coneRadius
private

Definition at line 87 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams().

◆ doMerge

bool gen::JetMatchingMGFastJet::doMerge
private

Definition at line 80 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams().

◆ etaJetMax

double gen::JetMatchingMGFastJet::etaJetMax
private

Definition at line 87 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams().

◆ exclusive

bool gen::JetMatchingMGFastJet::exclusive
private

Definition at line 99 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), and JetMatchingMGFastJet().

◆ fClusJets

std::vector<fastjet::PseudoJet> gen::JetMatchingMGFastJet::fClusJets
private

Definition at line 105 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams(), and match().

◆ fDJROutFlag

int gen::JetMatchingMGFastJet::fDJROutFlag
private

Definition at line 110 of file JetMatchingMGFastJet.h.

Referenced by JetMatchingMGFastJet(), and match().

◆ fDJROutput

std::ofstream gen::JetMatchingMGFastJet::fDJROutput
private

Definition at line 109 of file JetMatchingMGFastJet.h.

Referenced by match().

◆ fExcLocal

bool gen::JetMatchingMGFastJet::fExcLocal
private

Definition at line 92 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), initAfterBeams(), and match().

◆ fIsInit

bool gen::JetMatchingMGFastJet::fIsInit
private

Definition at line 112 of file JetMatchingMGFastJet.h.

Referenced by init(), and initAfterBeams().

◆ fJetFinder

fastjet::JetDefinition* gen::JetMatchingMGFastJet::fJetFinder
private

Definition at line 104 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams(), match(), and ~JetMatchingMGFastJet().

◆ fPtSortedJets

std::vector<fastjet::PseudoJet> gen::JetMatchingMGFastJet::fPtSortedJets
private

Definition at line 105 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams(), and match().

◆ jetAlgoPower

int gen::JetMatchingMGFastJet::jetAlgoPower
private

Definition at line 86 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams().

◆ mgParams

std::map<std::string, std::string> gen::JetMatchingMGFastJet::mgParams
private

Definition at line 68 of file JetMatchingMGFastJet.h.

Referenced by getParameter(), and init().

◆ nJetMax

int gen::JetMatchingMGFastJet::nJetMax
private

Definition at line 83 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), and initAfterBeams().

◆ nJetMin

int gen::JetMatchingMGFastJet::nJetMin
private

Definition at line 83 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams().

◆ nQmatch

int gen::JetMatchingMGFastJet::nQmatch
private

Definition at line 77 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), and initAfterBeams().

◆ qCut

double gen::JetMatchingMGFastJet::qCut
private

Definition at line 75 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams(), and match().

◆ qCutSq

double gen::JetMatchingMGFastJet::qCutSq
private

Definition at line 75 of file JetMatchingMGFastJet.h.

Referenced by initAfterBeams(), and match().

◆ runInitialized

bool gen::JetMatchingMGFastJet::runInitialized
private

Definition at line 97 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), and init().

◆ soup

bool gen::JetMatchingMGFastJet::soup
private

Definition at line 98 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), and JetMatchingMGFastJet().

◆ typeIdx

std::vector<int> gen::JetMatchingMGFastJet::typeIdx[3]
private

Definition at line 95 of file JetMatchingMGFastJet.h.

Referenced by beforeHadronisation(), getPartonList(), and match().

muonTagProbeFilters_cff.matched
matched
Definition: muonTagProbeFilters_cff.py:62
lhef::LHEEvent::getHEPEUP
const HEPEUP * getHEPEUP() const
Definition: LHEEvent.h:38
counter
Definition: counter.py:1
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
gen::JetMatchingMGFastJet::initAfterBeams
bool initAfterBeams() override
Definition: JetMatchingMGFastJet.cc:172
gen::JetMatchingMGFastJet::exclusive
bool exclusive
Definition: JetMatchingMGFastJet.h:99
mps_fire.i
i
Definition: mps_fire.py:428
gen::JetMatchingMGFastJet::etaJetMax
double etaJetMax
Definition: JetMatchingMGFastJet.h:87
lhef::HEPEUP::MOTHUP
std::vector< std::pair< int, int > > MOTHUP
Definition: LesHouches.h:234
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
lhef::HEPEUP::ISTUP
std::vector< int > ISTUP
Definition: LesHouches.h:228
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pos
Definition: PixelAliasList.h:18
gen::outtree_
struct gen::OUTTREE outtree_
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
gen::JetMatchingMGFastJet::LESS_JETS
Definition: JetMatchingMGFastJet.h:72
gen::JetMatchingMGFastJet::HARD_JET
Definition: JetMatchingMGFastJet.h:72
gen::JetMatchingMGFastJet::ID_PHOTON
Definition: JetMatchingMGFastJet.h:73
gen::JetMatchingMGFastJet::fPtSortedJets
std::vector< fastjet::PseudoJet > fPtSortedJets
Definition: JetMatchingMGFastJet.h:105
gen::JetMatchingMGFastJet::NONE
Definition: JetMatchingMGFastJet.h:72
gen::JetMatchingMGFastJet::getParameter
static T getParameter(const std::map< std::string, std::string > &params, const std::string &var, const T &defValue=T())
Definition: JetMatchingMGFastJet.cc:72
gen::MEMAIN::rclmax
double rclmax
Definition: JetMatchingMadgraph.cc:50
gen::MEMAIN::mektsc
int mektsc
Definition: JetMatchingMadgraph.cc:52
gen::JetMatchingMGFastJet::updateOrDie
static void updateOrDie(const std::map< std::string, std::string > &params, T &param, const std::string &name)
Definition: JetMatchingMGFastJet.cc:112
gen::MEMAIN::etcjet
double etcjet
Definition: JetMatchingMadgraph.cc:50
gen::JetMatchingMGFastJet::fIsInit
bool fIsInit
Definition: JetMatchingMGFastJet.h:112
gen::JetMatchingMGFastJet::UNMATCHED_PARTON
Definition: JetMatchingMGFastJet.h:72
gen::JetMatchingMGFastJet::fJetFinder
fastjet::JetDefinition * fJetFinder
Definition: JetMatchingMGFastJet.h:104
gen::JetMatchingMGFastJet::qCut
double qCut
Definition: JetMatchingMGFastJet.h:75
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
gen::JetMatchingMGFastJet::soup
bool soup
Definition: JetMatchingMGFastJet.h:98
gen::JetMatchingMGFastJet::coneRadius
double coneRadius
Definition: JetMatchingMGFastJet.h:87
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
gen::MEMAIN::nqmatch
int nqmatch
Definition: JetMatchingMadgraph.cc:53
gen::MEMAIN::ktsche
int ktsche
Definition: JetMatchingMadgraph.cc:51
gen::MEMAIN::clfact
double clfact
Definition: JetMatchingMadgraph.cc:50
lhef::HEPEUP::NUP
int NUP
Definition: LesHouches.h:184
gen::JetMatchingMGFastJet::nQmatch
int nQmatch
Definition: JetMatchingMGFastJet.h:77
gen::MEMAIN::qcut
double qcut
Definition: JetMatchingMadgraph.cc:50
gen::MEMAIN::maxjets
int maxjets
Definition: JetMatchingMadgraph.cc:51
gen::JetMatchingMGFastJet::fClusJets
std::vector< fastjet::PseudoJet > fClusJets
Definition: JetMatchingMGFastJet.h:105
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
gen::JetMatchingMGFastJet::fExcLocal
bool fExcLocal
Definition: JetMatchingMGFastJet.h:92
gen::JetMatchingMGFastJet::qCutSq
double qCutSq
Definition: JetMatchingMGFastJet.h:75
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
gen::JetMatchingMGFastJet::clFact
double clFact
Definition: JetMatchingMGFastJet.h:76
gen::memain_
struct gen::MEMAIN memain_
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
gen::parseHeader
static std::map< std::string, std::string > parseHeader(const std::vector< std::string > &header)
Definition: JetMatchingMadgraph.cc:163
gen::JetMatchingMGFastJet::runInitialized
bool runInitialized
Definition: JetMatchingMGFastJet.h:97
gen::JetMatchingMGFastJet::jetAlgoPower
int jetAlgoPower
Definition: JetMatchingMGFastJet.h:86
gen::JetMatchingMGFastJet::ID_TOP
Definition: JetMatchingMGFastJet.h:73
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
gen::MEMAIN::minjets
int minjets
Definition: JetMatchingMadgraph.cc:51
gen::JetMatchingMGFastJet::nJetMax
int nJetMax
Definition: JetMatchingMGFastJet.h:83
createfilelist.int
int
Definition: createfilelist.py:10
gen::MEMAIN::etaclmax
double etaclmax
Definition: JetMatchingMadgraph.cc:50
value
Definition: value.py:1
counter
static std::atomic< unsigned int > counter
Definition: SharedResourceNames.cc:18
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
gen::JetMatchingMGFastJet::ID_GLUON
Definition: JetMatchingMGFastJet.h:73
HLT_FULL_cff.pt2
pt2
Definition: HLT_FULL_cff.py:9872
gen::JetMatchingMGFastJet::fDJROutFlag
int fDJROutFlag
Definition: JetMatchingMGFastJet.h:110
lhef::HEPEUP
Definition: LesHouches.h:138
gen::JetMatchingMGFastJet::nJetMin
int nJetMin
Definition: JetMatchingMGFastJet.h:83
gen::uppriv_
struct gen::UPPRIV uppriv_
gen::MEMAIN::showerkt
double showerkt
Definition: JetMatchingMadgraph.cc:50
lhef::HEPEUP::IDUP
std::vector< int > IDUP
Definition: LesHouches.h:223
T
long double T
Definition: Basic3DVectorLD.h:48
relativeConstraints.value
value
Definition: relativeConstraints.py:53
gen::MEMAIN::excres
int excres[30]
Definition: JetMatchingMadgraph.cc:52
Exception
Definition: hltDiff.cc:245
gen::MEMAIN::nexcres
int nexcres
Definition: JetMatchingMadgraph.cc:52
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
submitPVValidationJobs.runInfo
dictionary runInfo
Definition: submitPVValidationJobs.py:1013
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
gen::JetMatchingMGFastJet::fDJROutput
std::ofstream fDJROutput
Definition: JetMatchingMGFastJet.h:109
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:292
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
mps_fire.result
result
Definition: mps_fire.py:311
cms::Exception
Definition: Exception.h:70
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
gen::UPPRIV::ickkw
int ickkw
Definition: JetMatchingMadgraph.cc:46
gen::JetMatchingMGFastJet::typeIdx
std::vector< int > typeIdx[3]
Definition: JetMatchingMGFastJet.h:95
gen::JetMatchingMGFastJet::doMerge
bool doMerge
Definition: JetMatchingMGFastJet.h:80
gen::JetMatchingMGFastJet::MORE_JETS
Definition: JetMatchingMGFastJet.h:72
lhef::HEPEUP::PUP
std::vector< FiveVector > PUP
Definition: LesHouches.h:246
gen::OUTTREE::flag
int flag
Definition: JetMatchingMadgraph.cc:57
gen::JetMatching::JetMatching
JetMatching(const edm::ParameterSet &params)
Definition: JetMatching.cc:17
gen::JetMatchingMGFastJet::mgParams
std::map< std::string, std::string > mgParams
Definition: JetMatchingMGFastJet.h:68