1 |
yilmaz |
1.1 |
#ifndef JetProducers_BaseHiGenJetProducer_h
|
2 |
|
|
#define JetProducers_BaseHiGenJetProducer_h
|
3 |
|
|
|
4 |
|
|
/** \class BaseHiGenJetProducer
|
5 |
|
|
*
|
6 |
|
|
* BaseHiGenJetProducer is a base class for JetProducers.
|
7 |
|
|
* It handles generic manipulations of input and output collections
|
8 |
|
|
*
|
9 |
|
|
* \author Fedor Ratnikov (UMd) Aug. 22, 2006
|
10 |
yilmaz |
1.4 |
* $Id: BaseHiGenJetProducer.h,v 1.3 2009/05/09 00:24:20 yilmaz Exp $
|
11 |
yilmaz |
1.1 |
*
|
12 |
|
|
************************************************************/
|
13 |
|
|
|
14 |
|
|
#include "FWCore/Framework/interface/EDProducer.h"
|
15 |
|
|
#include "DataFormats/Common/interface/EDProductfwd.h"
|
16 |
|
|
#include "RecoJets/JetAlgorithms/interface/JetRecoTypes.h"
|
17 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
18 |
|
|
#include "FWCore/Framework/interface/ESHandle.h"
|
19 |
|
|
#include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h"
|
20 |
|
|
|
21 |
|
|
namespace cms
|
22 |
|
|
{
|
23 |
|
|
class BaseHiGenJetProducer : public edm::EDProducer
|
24 |
|
|
{
|
25 |
|
|
public:
|
26 |
|
|
|
27 |
|
|
BaseHiGenJetProducer(const edm::ParameterSet& ps);
|
28 |
|
|
|
29 |
|
|
/**Default destructor*/
|
30 |
|
|
virtual ~BaseHiGenJetProducer();
|
31 |
|
|
/**Produces the EDM products*/
|
32 |
|
|
virtual void beginJob(const edm::EventSetup& c);
|
33 |
|
|
virtual void produce(edm::Event& e, const edm::EventSetup& c);
|
34 |
|
|
/** jet type */
|
35 |
|
|
std::string jetType () const {return mJetType;}
|
36 |
|
|
|
37 |
|
|
// abstract method to be set up in actual implementations
|
38 |
|
|
/** run algorithm itself */
|
39 |
|
|
virtual bool runAlgorithm (const JetReco::InputCollection& fInput, JetReco::OutputCollection* fOutput) = 0;
|
40 |
|
|
|
41 |
|
|
private:
|
42 |
|
|
edm::InputTag mSrc;
|
43 |
yilmaz |
1.3 |
edm::InputTag mapSrc;
|
44 |
yilmaz |
1.1 |
std::string mJetType;
|
45 |
|
|
bool mVerbose;
|
46 |
|
|
double mEtInputCut;
|
47 |
|
|
double mEInputCut;
|
48 |
|
|
double mJetPtMin;
|
49 |
yilmaz |
1.2 |
double nHydro_;
|
50 |
yilmaz |
1.4 |
bool ignoreHydro_;
|
51 |
yilmaz |
1.1 |
edm::ESHandle < ParticleDataTable > mPdt;
|
52 |
|
|
|
53 |
|
|
};
|
54 |
|
|
}
|
55 |
|
|
|
56 |
|
|
#endif
|