CMS 3D CMS Logo

PATHeavyIonProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PATHeavyIonProducer
4 // Class: PATHeavyIonProducer
5 //
13 //
14 // Original Author: Yetkin Yilmaz
15 // Created: Thu Aug 13 08:39:51 EDT 2009
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include <string>
23 #include <iostream>
24 
25 // user include files
28 
31 
34 
37 
38 #include "HepMC/HeavyIon.h"
39 
40 using namespace std;
41 
42 //
43 // class decleration
44 //
45 
47 public:
48  explicit PATHeavyIonProducer(const edm::ParameterSet&);
49  ~PATHeavyIonProducer() override;
50 
51 private:
52  void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
53  // ----------member data ---------------------------
54 
55  const bool doMC_;
56  const bool doReco_;
57  const std::vector<std::string> hepmcSrc_;
60 
61 };
62 
63 //
64 // constants, enums and typedefs
65 //
66 
67 
68 //
69 // static data member definitions
70 //
71 
72 //
73 // constructors and destructor
74 //
76  doMC_(iConfig.getParameter<bool>("doMC")),
77  doReco_(iConfig.getParameter<bool>("doReco")),
78  hepmcSrc_( doMC_ ? iConfig.getParameter<std::vector<std::string> >("generators") : std::vector<std::string>() ),
79  centSrc_( doReco_ ? iConfig.getParameter<edm::InputTag>("centrality") : edm::InputTag() ),
80  evtPlaneSrc_(doReco_ ? iConfig.getParameter<edm::InputTag>("evtPlane") : edm::InputTag() )
81 {
82  //register your products
83  produces<pat::HeavyIon>();
84 }
85 
86 
88 {
89 
90  // do anything here that needs to be done at desctruction time
91  // (e.g. close files, deallocate resources etc.)
92 
93 }
94 
95 
96 //
97 // member functions
98 //
99 
100 // ------------ method called to produce the data ------------
101 void
103 
104 }
105 
106 //define this as a plug-in
const edm::InputTag centSrc_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
int iEvent
Definition: GenABIO.cc:230
PATHeavyIonProducer(const edm::ParameterSet &)
const std::vector< std::string > hepmcSrc_
HLT enums.
const edm::InputTag evtPlaneSrc_