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 ()
 
ModuleDescription const & moduleDescription () const
 
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 ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void beginJob () override
 
virtual void endJob () override
 
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
 
- 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::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 46 of file PATHeavyIonProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 78 of file PATHeavyIonProducer.cc.

References edm::ParameterSet::getParameter().

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

Definition at line 98 of file PATHeavyIonProducer.cc.

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

Member Function Documentation

void PATHeavyIonProducer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDProducer.

Definition at line 120 of file PATHeavyIonProducer.cc.

121 {
122 }
void PATHeavyIonProducer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDProducer.

Definition at line 126 of file PATHeavyIonProducer.cc.

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

Implements edm::EDProducer.

Definition at line 113 of file PATHeavyIonProducer.cc.

114 {
115 
116 }

Member Data Documentation

edm::InputTag PATHeavyIonProducer::centSrc_
private

Definition at line 61 of file PATHeavyIonProducer.cc.

bool PATHeavyIonProducer::doMC_
private

Definition at line 58 of file PATHeavyIonProducer.cc.

bool PATHeavyIonProducer::doReco_
private

Definition at line 59 of file PATHeavyIonProducer.cc.

edm::InputTag PATHeavyIonProducer::evtPlaneSrc_
private

Definition at line 62 of file PATHeavyIonProducer.cc.

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

Definition at line 60 of file PATHeavyIonProducer.cc.