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::EDConsumerBase 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 &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

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

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)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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 
)
overrideprivatevirtual

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.