CMS 3D CMS Logo

CompoundJetProducer.h
Go to the documentation of this file.
1 #ifndef RecoJets_JetProducers_CompoundJetProducer_h
2 #define RecoJets_JetProducers_CompoundJetProducer_h
3 
4 /* *********************************************************
5  \class CompoundJetProducer
6 
7  \brief Jet producer to produce compound jets (i.e. jets of jets)
8 
9  \author Salvatore Rappoccio
10  \version
11 
12  Notes on implementation:
13 
14  Because the BaseJetProducer only allows the user to produce
15  one jet collection at a time, this algorithm cannot
16  fit into that paradigm.
17 
18  All of the "hard" jets are of type BasicJet, since
19  they are "jets of jets". The subjets will be either
20  CaloJets, GenJets, etc.
21 
22  In order to avoid a templatization of the entire
23  EDProducer itself, we only use a templated method
24  to write out the subjets to the event record,
25  and to use that information to write out the
26  hard jets to the event record.
27 
28 Modifications:
29  25Feb09: Updated to use anomalous cells, also
30  included corrected CaloTowers for the PV.
31 
32  ************************************************************/
33 
34 
36 
38 
39 namespace cms
40 {
42  {
43  public:
44 
46 
47  ~CompoundJetProducer() override {}
48 
49  protected:
50  std::vector<CompoundPseudoJet> fjCompoundJets_;
51 
52  protected:
53 
54  // overridden inputTowers method. Resets fjCompoundJets_ and
55  // calls VirtualJetProducer::inputTowers
56  void inputTowers() override;
57 
60  void output( edm::Event & iEvent, edm::EventSetup const& iSetup ) override;
61  template< typename T >
62  void writeCompoundJets( edm::Event & iEvent, edm::EventSetup const& iSetup);
63 
64 
65  };
66 
67 
68 
69 
70 }
71 
72 
73 #endif
void writeCompoundJets(edm::Event &iEvent, edm::EventSetup const &iSetup)
function template to write out the outputs
void output(edm::Event &iEvent, edm::EventSetup const &iSetup) override
CompoundJetProducer(const edm::ParameterSet &ps)
int iEvent
Definition: GenABIO.cc:230
void inputTowers() override
compound fastjet::PseudoJets
std::vector< CompoundPseudoJet > fjCompoundJets_