CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastjetJetProducer.cc
Go to the documentation of this file.
1 //
3 // FastjetJetProducer
4 // ------------------
5 //
6 // 04/21/2009 Philipp Schieferdecker <philipp.schieferdecker@cern.ch>
8 
10 
19 
25 
28 
29 #include "fastjet/SISConePlugin.hh"
30 #include "fastjet/CMSIterativeConePlugin.hh"
31 #include "fastjet/ATLASConePlugin.hh"
32 #include "fastjet/CDFMidPointPlugin.hh"
33 #include "fastjet/tools/Filter.hh"
34 #include "fastjet/tools/Pruner.hh"
35 #include "fastjet/tools/MassDropTagger.hh"
36 #include "fastjet/contrib/SoftDrop.hh"
37 #include "fastjet/tools/JetMedianBackgroundEstimator.hh"
38 #include "fastjet/contrib/ConstituentSubtractor.hh"
40 
41 #include <iostream>
42 #include <memory>
43 #include <algorithm>
44 #include <limits>
45 #include <cmath>
46 //#include <fstream>
47 
48 using namespace std;
49 
50 
51 
53 // construction / destruction
55 
56 //______________________________________________________________________________
58  : VirtualJetProducer( iConfig ),
59  useMassDropTagger_(false),
60  useFiltering_(false),
61  useDynamicFiltering_(false),
62  useTrimming_(false),
63  usePruning_(false),
64  useCMSBoostedTauSeedingAlgorithm_(false),
65  useKtPruning_(false),
66  useConstituentSubtraction_(false),
67  useSoftDrop_(false),
68  muCut_(-1.0),
69  yCut_(-1.0),
70  rFilt_(-1.0),
71  rFiltFactor_(-1.0),
72  nFilt_(-1),
73  trimPtFracMin_(-1.0),
74  zCut_(-1.0),
75  RcutFactor_(-1.0),
76  csRho_EtaMax_(-1.0),
77  csRParam_(-1.0),
78  beta_(-1.0),
79  R0_(-1.0)
80 {
81 
82  if ( iConfig.exists("UseOnlyVertexTracks") )
83  useOnlyVertexTracks_ = iConfig.getParameter<bool>("UseOnlyVertexTracks");
84  else
85  useOnlyVertexTracks_ = false;
86 
87  if ( iConfig.exists("UseOnlyOnePV") )
88  useOnlyOnePV_ = iConfig.getParameter<bool>("UseOnlyOnePV");
89  else
90  useOnlyOnePV_ = false;
91 
92  if ( iConfig.exists("DzTrVtxMax") )
93  dzTrVtxMax_ = iConfig.getParameter<double>("DzTrVtxMax");
94  else
95  dzTrVtxMax_ = 999999.;
96  if ( iConfig.exists("DxyTrVtxMax") )
97  dxyTrVtxMax_ = iConfig.getParameter<double>("DxyTrVtxMax");
98  else
99  dxyTrVtxMax_ = 999999.;
100  if ( iConfig.exists("MinVtxNdof") )
101  minVtxNdof_ = iConfig.getParameter<int>("MinVtxNdof");
102  else
103  minVtxNdof_ = 5;
104  if ( iConfig.exists("MaxVtxZ") )
105  maxVtxZ_ = iConfig.getParameter<double>("MaxVtxZ");
106  else
107  maxVtxZ_ = 15;
108 
109 
110  if ( iConfig.exists("useFiltering") ||
111  iConfig.exists("useTrimming") ||
112  iConfig.exists("usePruning") ||
113  iConfig.exists("useMassDropTagger") ||
114  iConfig.exists("useCMSBoostedTauSeedingAlgorithm") ||
115  iConfig.exists("useConstituentSubtraction") ||
116  iConfig.exists("useSoftDrop")
117  ) {
118  useMassDropTagger_=false;
119  useFiltering_=false;
120  useDynamicFiltering_=false;
121  useTrimming_=false;
122  usePruning_=false;
124  useKtPruning_=false;
126  useSoftDrop_ = false;
127  rFilt_=-1.0;
128  rFiltFactor_=-1.0;
129  nFilt_=-1;
130  trimPtFracMin_=-1.0;
131  zCut_=-1.0;
132  RcutFactor_=-1.0;
133  muCut_=-1.0;
134  yCut_=-1.0;
135  subjetPtMin_ = -1.0;
136  muMin_ = -1.0;
137  muMax_ = -1.0;
138  yMin_ = -1.0;
139  yMax_ = -1.0;
140  dRMin_ = -1.0;
141  dRMax_ = -1.0;
142  maxDepth_ = -1;
143  csRho_EtaMax_ = -1.0;
144  csRParam_ = -1.0;
145  beta_ = -1.0;
146  R0_ = -1.0;
147  useExplicitGhosts_ = true;
148 
149  if ( iConfig.exists("useMassDropTagger") ) {
150  useMassDropTagger_ = iConfig.getParameter<bool>("useMassDropTagger");
151  muCut_ = iConfig.getParameter<double>("muCut");
152  yCut_ = iConfig.getParameter<double>("yCut");
153  }
154 
155  if ( iConfig.exists("useFiltering") ) {
156  useFiltering_ = iConfig.getParameter<bool>("useFiltering");
157  rFilt_ = iConfig.getParameter<double>("rFilt");
158  nFilt_ = iConfig.getParameter<int>("nFilt");
159  if ( iConfig.exists("useDynamicFiltering") ) {
160  useDynamicFiltering_ = iConfig.getParameter<bool>("useDynamicFiltering");
161  rFiltFactor_ = iConfig.getParameter<double>("rFiltFactor");
162  if ( useDynamicFiltering_ )
163  rFiltDynamic_ = DynamicRfiltPtr(new DynamicRfilt(rFilt_, rFiltFactor_));
164  }
165  }
166 
167  if ( iConfig.exists("useTrimming") ) {
168  useTrimming_ = iConfig.getParameter<bool>("useTrimming");
169  rFilt_ = iConfig.getParameter<double>("rFilt");
170  trimPtFracMin_ = iConfig.getParameter<double>("trimPtFracMin");
171  }
172 
173  if ( iConfig.exists("usePruning") ) {
174  usePruning_ = iConfig.getParameter<bool>("usePruning");
175  zCut_ = iConfig.getParameter<double>("zcut");
176  RcutFactor_ = iConfig.getParameter<double>("rcut_factor");
177  nFilt_ = iConfig.getParameter<int>("nFilt");
178  if ( iConfig.exists("useKtPruning") )
179  useKtPruning_ = iConfig.getParameter<bool>("useKtPruning");
180  }
181 
182  if ( iConfig.exists("useCMSBoostedTauSeedingAlgorithm") ) {
183  useCMSBoostedTauSeedingAlgorithm_ = iConfig.getParameter<bool>("useCMSBoostedTauSeedingAlgorithm");
184  subjetPtMin_ = iConfig.getParameter<double>("subjetPtMin");
185  muMin_ = iConfig.getParameter<double>("muMin");
186  muMax_ = iConfig.getParameter<double>("muMax");
187  yMin_ = iConfig.getParameter<double>("yMin");
188  yMax_ = iConfig.getParameter<double>("yMax");
189  dRMin_ = iConfig.getParameter<double>("dRMin");
190  dRMax_ = iConfig.getParameter<double>("dRMax");
191  maxDepth_ = iConfig.getParameter<int>("maxDepth");
192  }
193 
194  if ( iConfig.exists("useConstituentSubtraction") ) {
195 
196  if ( fjAreaDefinition_.get() == 0 ) {
197  throw cms::Exception("AreaMustBeSet") << "Logic error. The area definition must be set if you use constituent subtraction." << std::endl;
198  }
199 
200  useConstituentSubtraction_ = iConfig.getParameter<bool>("useConstituentSubtraction");
201  csRho_EtaMax_ = iConfig.getParameter<double>("csRho_EtaMax");
202  csRParam_ = iConfig.getParameter<double>("csRParam");
203  }
204 
205  if ( iConfig.exists("useSoftDrop") ) {
206  if ( usePruning_ ) {
207  throw cms::Exception("PruningAndSoftDrop") << "Logic error. Soft drop is a generalized pruning, do not run them together." << std::endl;
208  }
209  useSoftDrop_ = iConfig.getParameter<bool>("useSoftDrop");
210  zCut_ = iConfig.getParameter<double>("zcut");
211  beta_ = iConfig.getParameter<double>("beta");
212  R0_ = iConfig.getParameter<double>("R0");
213  }
214 
215  }
216 
217  input_chrefcand_token_ = consumes<edm::View<reco::RecoChargedRefCandidate> >(src_);
218 
219 }
220 
221 
222 //______________________________________________________________________________
224 {
225 }
226 
227 
229 // implementation of member functions
231 
233 {
234 
235  // for everything but track jets
236  if (!makeTrackJet(jetTypeE)) {
237 
238  // use the default production from one collection
239  VirtualJetProducer::produce( iEvent, iSetup );
240 
241  } else { // produce trackjets from tracks grouped per primary vertex
242 
243  produceTrackJets(iEvent, iSetup);
244 
245  }
246 
247  // fjClusterSeq_ retains quite a lot of memory - about 1 to 7Mb at 200 pileup
248  // depending on the exact configuration; and there are 24 FastjetJetProducers in the
249  // sequence so this adds up to about 60 Mb. It's allocated every time runAlgorithm
250  // is called, so safe to delete here.
251  fjClusterSeq_.reset();
252 }
253 
254 
256 {
257 
258  // read in the track candidates
260  iEvent.getByToken(input_chrefcand_token_, inputsHandle);
261 
262  // make collection with pointers so we can play around with it
263  std::vector<edm::Ptr<reco::RecoChargedRefCandidate> > allInputs;
264  std::vector<edm::Ptr<reco::Candidate> > origInputs;
265  for (size_t i = 0; i < inputsHandle->size(); ++i) {
266  allInputs.push_back(inputsHandle->ptrAt(i));
267  origInputs.push_back(inputsHandle->ptrAt(i));
268  }
269 
270  // read in the PV collection
272  iEvent.getByToken(input_vertex_token_, pvCollection);
273  // define the overall output jet container
274  std::auto_ptr<std::vector<reco::TrackJet> > jets(new std::vector<reco::TrackJet>() );
275 
276  // loop over the good vertices, clustering for each vertex separately
277  for (reco::VertexCollection::const_iterator itVtx = pvCollection->begin(); itVtx != pvCollection->end(); ++itVtx) {
278  if (itVtx->isFake() || itVtx->ndof() < minVtxNdof_ || fabs(itVtx->z()) > maxVtxZ_) continue;
279 
280  // clear the intermediate containers
281  inputs_.clear();
282  fjInputs_.clear();
283  fjJets_.clear();
284 
285  // if only vertex-associated tracks should be used
286  if (useOnlyVertexTracks_) {
287  // loop over the tracks associated to the vertex
288  for (reco::Vertex::trackRef_iterator itTr = itVtx->tracks_begin(); itTr != itVtx->tracks_end(); ++itTr) {
289  // whether a match was found in the track candidate input
290  bool found = false;
291  // loop over input track candidates
292  for (std::vector<edm::Ptr<reco::RecoChargedRefCandidate> >::iterator itIn = allInputs.begin(); itIn != allInputs.end(); ++itIn) {
293  // match the input track candidate to the track from the vertex
294  reco::TrackRef trref(itTr->castTo<reco::TrackRef>());
295  // check if the tracks match
296  if ((*itIn)->track() == trref) {
297  found = true;
298  // add this track candidate to the input for clustering
299  inputs_.push_back(*itIn);
300  // erase the track candidate from the total list of input, so we don't reuse it later
301  allInputs.erase(itIn);
302  // found the candidate track corresponding to the vertex track, so stop the loop
303  break;
304  } // end if match found
305  } // end loop over input tracks
306  // give an info message in case no match is found (can happen if candidates are subset of tracks used for clustering)
307  if (!found) edm::LogInfo("FastjetTrackJetProducer") << "Ignoring a track at vertex which is not in input track collection!";
308  } // end loop over tracks associated to vertex
309  // if all inpt track candidates should be used
310  } else {
311  // loop over input track candidates
312  for (std::vector<edm::Ptr<reco::RecoChargedRefCandidate> >::iterator itIn = allInputs.begin(); itIn != allInputs.end(); ++itIn) {
313  // check if the track is close enough to the vertex
314  float dz = (*itIn)->track()->dz(itVtx->position());
315  float dxy = (*itIn)->track()->dxy(itVtx->position());
316  if (fabs(dz) > dzTrVtxMax_) continue;
317  if (fabs(dxy) > dxyTrVtxMax_) continue;
318  bool closervtx = false;
319  // now loop over the good vertices a second time
320  for (reco::VertexCollection::const_iterator itVtx2 = pvCollection->begin(); itVtx2 != pvCollection->end(); ++itVtx2) {
321  if (itVtx->isFake() || itVtx->ndof() < minVtxNdof_ || fabs(itVtx->z()) > maxVtxZ_) continue;
322  // and check this track is closer to any other vertex (if more than 1 vertex considered)
323  if (!useOnlyOnePV_ &&
324  itVtx != itVtx2 &&
325  fabs((*itIn)->track()->dz(itVtx2->position())) < fabs(dz)) {
326  closervtx = true;
327  break; // 1 closer vertex makes the track already not matched, so break
328  }
329  }
330  // don't add this track if another vertex is found closer
331  if (closervtx) continue;
332  // add this track candidate to the input for clustering
333  inputs_.push_back(*itIn);
334  // erase the track candidate from the total list of input, so we don't reuse it later
335  allInputs.erase(itIn);
336  // take a step back in the loop since we just erased
337  --itIn;
338  }
339  }
340 
341  // convert candidates in inputs_ to fastjet::PseudoJets in fjInputs_
342  fjInputs_.reserve(inputs_.size());
343  inputTowers();
344  LogDebug("FastjetTrackJetProducer") << "Inputted towers\n";
345 
346  // run algorithm, using fjInputs_, modifying fjJets_ and allocating fjClusterSeq_
347  runAlgorithm(iEvent, iSetup);
348  LogDebug("FastjetTrackJetProducer") << "Ran algorithm\n";
349 
350  // convert our jets and add to the overall jet vector
351  for (unsigned int ijet=0;ijet<fjJets_.size();++ijet) {
352  // get the constituents from fastjet
353  std::vector<fastjet::PseudoJet> fjConstituents = sorted_by_pt(fjClusterSeq_->constituents(fjJets_[ijet]));
354  // convert them to CandidatePtr vector
355  std::vector<reco::CandidatePtr> constituents = getConstituents(fjConstituents);
356  // fill the trackjet
358  // write the specifics to the jet (simultaneously sets 4-vector, vertex).
359  writeSpecific( jet,
360  reco::Particle::LorentzVector(fjJets_[ijet].px(), fjJets_[ijet].py(), fjJets_[ijet].pz(), fjJets_[ijet].E()),
361  vertex_, constituents, iSetup);
362  jet.setJetArea(0);
363  jet.setPileup(0);
364  jet.setPrimaryVertex(edm::Ref<reco::VertexCollection>(pvCollection, (int) (itVtx-pvCollection->begin())));
365  jet.setVertex(itVtx->position());
366  jets->push_back(jet);
367  }
368 
369  if (useOnlyOnePV_) break; // stop vertex loop if only one vertex asked for
370  } // end loop over vertices
371 
372  // put the jets in the collection
373  LogDebug("FastjetTrackJetProducer") << "Put " << jets->size() << " jets in the event.\n";
374  iEvent.put(jets);
375 
376  // Clear the work vectors so that memory is free for other modules.
377  // Use the trick of swapping with an empty vector so that the memory
378  // is actually given back rather than silently kept.
379  decltype(fjInputs_)().swap(fjInputs_);
380  decltype(fjJets_)().swap(fjJets_);
381  decltype(inputs_)().swap(inputs_);
382 }
383 
384 
385 //______________________________________________________________________________
387 {
388  // run algorithm
389  /*
390  fjInputs_.clear();
391  double px, py , pz, E;
392  string line;
393  std::ifstream fin("dump3.txt");
394  while (getline(fin, line)){
395  if (line == "#END") break;
396  if (line.substr(0,1) == "#") {continue;}
397  istringstream istr(line);
398  istr >> px >> py >> pz >> E;
399  // create a fastjet::PseudoJet with these components and put it onto
400  // back of the input_particles vector
401  fastjet::PseudoJet j(px,py,pz,E);
402  //if ( fabs(j.rap()) < inputEtaMax )
403  fjInputs_.push_back(fastjet::PseudoJet(px,py,pz,E));
404  }
405  fin.close();
406  */
407 
408  if ( !doAreaFastjet_ && !doRhoFastjet_) {
409  fjClusterSeq_ = ClusterSequencePtr( new fastjet::ClusterSequence( fjInputs_, *fjJetDefinition_ ) );
410  } else if (voronoiRfact_ <= 0) {
411  fjClusterSeq_ = ClusterSequencePtr( new fastjet::ClusterSequenceArea( fjInputs_, *fjJetDefinition_ , *fjAreaDefinition_ ) );
412  } else {
413  fjClusterSeq_ = ClusterSequencePtr( new fastjet::ClusterSequenceVoronoiArea( fjInputs_, *fjJetDefinition_ , fastjet::VoronoiAreaSpec(voronoiRfact_) ) );
414  }
415 
417  fjJets_ = fastjet::sorted_by_pt(fjClusterSeq_->inclusive_jets(jetPtMin_));
418  } else {
419  fjJets_.clear();
420 
421 
422  transformer_coll transformers;
423 
424 
425  std::vector<fastjet::PseudoJet> tempJets = fastjet::sorted_by_pt(fjClusterSeq_->inclusive_jets(jetPtMin_));
426 
427  unique_ptr<fastjet::JetMedianBackgroundEstimator> bge_rho;
429  fastjet::Selector rho_range = fastjet::SelectorAbsRapMax(csRho_EtaMax_);
430  bge_rho = unique_ptr<fastjet::JetMedianBackgroundEstimator> (new fastjet::JetMedianBackgroundEstimator(rho_range, fastjet::JetDefinition(fastjet::kt_algorithm, csRParam_), *fjAreaDefinition_) );
431  bge_rho->set_particles(fjInputs_);
432  fastjet::contrib::ConstituentSubtractor * constituentSubtractor = new fastjet::contrib::ConstituentSubtractor(bge_rho.get());
433  // this sets the same background estimator to be used for deltaMass density, rho_m, as for pt density, rho:
434  constituentSubtractor->use_common_bge_for_rho_and_rhom(true); // for massless input particles it does not make any difference (rho_m is always zero)
435 
436  transformers.push_back( transformer_ptr(constituentSubtractor) );
437  };
438  if ( useMassDropTagger_ ) {
439  fastjet::MassDropTagger * md_tagger = new fastjet::MassDropTagger ( muCut_, yCut_ );
440  transformers.push_back( transformer_ptr(md_tagger) );
441  }
443  fastjet::contrib::CMSBoostedTauSeedingAlgorithm * tau_tagger =
444  new fastjet::contrib::CMSBoostedTauSeedingAlgorithm ( subjetPtMin_, muMin_, muMax_, yMin_, yMax_, dRMin_, dRMax_, maxDepth_, verbosity_ );
445  transformers.push_back( transformer_ptr(tau_tagger ));
446  }
447  if ( useTrimming_ ) {
448  fastjet::Filter * trimmer = new fastjet::Filter(fastjet::JetDefinition(fastjet::kt_algorithm, rFilt_), fastjet::SelectorPtFractionMin(trimPtFracMin_));
449  transformers.push_back( transformer_ptr(trimmer) );
450  }
451  if ( (useFiltering_) && (!useDynamicFiltering_) ) {
452  fastjet::Filter * filter = new fastjet::Filter(fastjet::JetDefinition(fastjet::cambridge_algorithm, rFilt_), fastjet::SelectorNHardest(nFilt_));
453  transformers.push_back( transformer_ptr(filter));
454  }
455 
456  if ( (usePruning_) && (!useKtPruning_) ) {
457  fastjet::Pruner * pruner = new fastjet::Pruner(fastjet::cambridge_algorithm, zCut_, RcutFactor_);
458  transformers.push_back( transformer_ptr(pruner ));
459  }
460 
461  if ( useDynamicFiltering_ ){
462  fastjet::Filter * filter = new fastjet::Filter( fastjet::Filter(&*rFiltDynamic_, fastjet::SelectorNHardest(nFilt_)));
463  transformers.push_back( transformer_ptr(filter));
464  }
465 
466  if ( useKtPruning_ ) {
467  fastjet::Pruner * pruner = new fastjet::Pruner(fastjet::kt_algorithm, zCut_, RcutFactor_);
468  transformers.push_back( transformer_ptr(pruner ));
469  }
470 
471  if ( useSoftDrop_ ) {
472  fastjet::contrib::SoftDrop * sd = new fastjet::contrib::SoftDrop(beta_, zCut_, R0_ );
473  transformers.push_back( transformer_ptr(sd) );
474  }
475 
476 
477  for ( std::vector<fastjet::PseudoJet>::const_iterator ijet = tempJets.begin(),
478  ijetEnd = tempJets.end(); ijet != ijetEnd; ++ijet ) {
479 
480  fastjet::PseudoJet transformedJet = *ijet;
481  bool passed = true;
482  for ( transformer_coll::const_iterator itransf = transformers.begin(),
483  itransfEnd = transformers.end(); itransf != itransfEnd; ++itransf ) {
484  if ( transformedJet != 0 ) {
485  transformedJet = (**itransf)(transformedJet);
486  } else {
487  passed=false;
488  }
489  }
490 
491  if ( passed ) {
492  fjJets_.push_back( transformedJet );
493  }
494  }
495  }
496 
497 }
498 
499 
500 
502 // define as cmssw plugin
504 
506 
#define LogDebug(id)
double muMin_
for CMSBoostedTauSeedingAlgorithm : subjet pt min
JetType::Type jetTypeE
void swap(ora::Record &rh, ora::Record &lh)
Definition: Record.h:70
T getParameter(std::string const &) const
double yMin_
for CMSBoostedTauSeedingAlgorithm : max mass-drop
bool useFiltering_
Mass-drop tagging for boosted Higgs.
int i
Definition: DBlmapReader.cc:9
double rFilt_
for mass-drop tagging, symmetry cut: min(pt1^2,pt2^2) * dR(1,2) / mjet &gt; ycut
tuple Filter
Definition: Filter_cff.py:5
reco::Particle::Point vertex_
double dRMax_
for CMSBoostedTauSeedingAlgorithm : min dR
double subjetPtMin_
for soft drop : R0 (angular distance normalization - should be set to jet radius in most cases) ...
virtual std::vector< reco::CandidatePtr > getConstituents(const std::vector< fastjet::PseudoJet > &fjConstituents)
std::vector< fastjet::PseudoJet > fjJets_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
virtual void setPileup(float fEnergy)
Set pileup energy contribution as calculated by algorithm.
Definition: Jet.h:108
virtual void inputTowers()
virtual void runAlgorithm(edm::Event &iEvent, const edm::EventSetup &iSetup)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool useDynamicFiltering_
Jet filtering technique.
bool exists(std::string const &parameterName) const
checks if a parameter exists
double RcutFactor_
for pruning OR soft drop: constituent minimum pt fraction of parent cluster
bool useSoftDrop_
constituent subtraction technique
double yMax_
for CMSBoostedTauSeedingAlgorithm : min asymmetry
bool useKtPruning_
algorithm for seeding reconstruction of boosted Taus (similar to mass-drop tagging) ...
FastjetJetProducer(const edm::ParameterSet &iConfig)
bool useTrimming_
Use dynamic filtering radius (as in arXiv:0802.2470)
double csRParam_
for constituent subtraction : maximum rapidity for ghosts
bool makeTrackJet(const JetType::Type &fTag)
virtual void setJetArea(float fArea)
set jet area
Definition: Jet.h:103
std::vector< fastjet::PseudoJet > fjInputs_
std::vector< transformer_ptr > transformer_coll
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
double trimPtFracMin_
for filtering, pruning: number of subjets expected
int iEvent
Definition: GenABIO.cc:230
bool usePruning_
Jet trimming technique.
std::vector< edm::Ptr< reco::Candidate > > inputs_
bool useCMSBoostedTauSeedingAlgorithm_
Jet pruning technique.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:113
ClusterSequencePtr fjClusterSeq_
virtual void produceTrackJets(edm::Event &iEvent, const edm::EventSetup &iSetup)
vector< PseudoJet > jets
edm::EDGetTokenT< edm::View< reco::RecoChargedRefCandidate > > input_chrefcand_token_
for CMSBoostedTauSeedingAlgorithm : max depth for descending into clustering sequence ...
double csRho_EtaMax_
for pruning: constituent dR * pt/2m &lt; rcut_factor
double muMax_
for CMSBoostedTauSeedingAlgorithm : min mass-drop
double muCut_
Soft drop.
double rFiltFactor_
for dynamic filtering radius (as in arXiv:0802.2470)
DynamicRfiltPtr rFiltDynamic_
for filtering, trimming: dR scale of sub-clustering
void setPrimaryVertex(const reco::VertexRef &vtx)
set associated primary vertex
Definition: TrackJet.cc:80
double dRMin_
for CMSBoostedTauSeedingAlgorithm : max asymmetry
boost::shared_ptr< DynamicRfilt > DynamicRfiltPtr
double beta_
for constituent subtraction : R parameter for KT alg in jet median background estimator ...
double zCut_
for trimming: constituent minimum pt fraction of full jet
virtual void setVertex(const Point &vertex)
set vertex
Jets made out of tracks.
Definition: TrackJet.h:27
int nFilt_
for dynamic filtering radius (as in arXiv:0802.2470)
int maxDepth_
for CMSBoostedTauSeedingAlgorithm : max dR
double sd
edm::EDGetTokenT< reco::VertexCollection > input_vertex_token_
double R0_
for soft drop : beta (angular exponent)
std::unique_ptr< transformer > transformer_ptr
double yCut_
for mass-drop tagging, m0/mjet (m0 = mass of highest mass subjet)
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector&lt;TrackRef&gt;
Definition: Vertex.h:37
bool useConstituentSubtraction_
Use Kt clustering algorithm for pruning (default is Cambridge/Aachen)
AreaDefinitionPtr fjAreaDefinition_
volatile std::atomic< bool > shutdown_flag false
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
boost::shared_ptr< fastjet::ClusterSequence > ClusterSequencePtr
void writeSpecific(reco::CaloJet &jet, reco::Particle::LorentzVector const &p4, reco::Particle::Point const &point, std::vector< reco::CandidatePtr > const &constituents, edm::EventSetup const &c)
Definition: JetSpecific.cc:41