CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
PATHeavyIonProducer Class Reference

#include <yetkin/PATHeavyIonProducer/src/PATHeavyIonProducer.cc>

Inheritance diagram for PATHeavyIonProducer:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

 PATHeavyIonProducer (const edm::ParameterSet &)
 
 ~PATHeavyIonProducer ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Member Functions

virtual void beginJob ()
 
virtual void endJob ()
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 

Private Attributes

edm::InputTag centSrc_
 
bool doMC_
 
bool doReco_
 
edm::InputTag evtPlaneSrc_
 
std::vector< std::string > hepmcSrc_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 47 of file PATHeavyIonProducer.cc.

Constructor & Destructor Documentation

PATHeavyIonProducer::PATHeavyIonProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 79 of file PATHeavyIonProducer.cc.

References edm::ParameterSet::getParameter().

80 {
81  //register your products
82  produces<pat::HeavyIon>();
83 
84  //now do what ever other initialization is needed
85  doReco_ = iConfig.getParameter<bool>("doReco");
86  if(doReco_){
87  centSrc_ = iConfig.getParameter<edm::InputTag>("centrality");
88  evtPlaneSrc_ = iConfig.getParameter<edm::InputTag>("evtPlane");
89  }
90 
91  doMC_ = iConfig.getParameter<bool>("doMC");
92  if(doMC_){
93  hepmcSrc_ = iConfig.getParameter<std::vector<std::string> >("generators");
94  }
95 
96 }
T getParameter(std::string const &) const
std::vector< std::string > hepmcSrc_
PATHeavyIonProducer::~PATHeavyIonProducer ( )

Definition at line 99 of file PATHeavyIonProducer.cc.

100 {
101 
102  // do anything here that needs to be done at desctruction time
103  // (e.g. close files, deallocate resources etc.)
104 
105 }

Member Function Documentation

void PATHeavyIonProducer::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 121 of file PATHeavyIonProducer.cc.

122 {
123 }
void PATHeavyIonProducer::endJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 127 of file PATHeavyIonProducer.cc.

127  {
128 }
void PATHeavyIonProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDProducer.

Definition at line 114 of file PATHeavyIonProducer.cc.

115 {
116 
117 }

Member Data Documentation

edm::InputTag PATHeavyIonProducer::centSrc_
private

Definition at line 62 of file PATHeavyIonProducer.cc.

bool PATHeavyIonProducer::doMC_
private

Definition at line 59 of file PATHeavyIonProducer.cc.

bool PATHeavyIonProducer::doReco_
private

Definition at line 60 of file PATHeavyIonProducer.cc.

edm::InputTag PATHeavyIonProducer::evtPlaneSrc_
private

Definition at line 63 of file PATHeavyIonProducer.cc.

std::vector<std::string> PATHeavyIonProducer::hepmcSrc_
private

Definition at line 61 of file PATHeavyIonProducer.cc.