CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 PATHeavyIonProducer (const edm::ParameterSet &)
 ~PATHeavyIonProducer ()

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_

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().

{
   //register your products
   produces<pat::HeavyIon>();

   //now do what ever other initialization is needed
   doReco_ = iConfig.getParameter<bool>("doReco");
   if(doReco_){
      centSrc_ = iConfig.getParameter<edm::InputTag>("centrality");
      evtPlaneSrc_ = iConfig.getParameter<edm::InputTag>("evtPlane");
   }

   doMC_ = iConfig.getParameter<bool>("doMC");
   if(doMC_){
      hepmcSrc_ = iConfig.getParameter<std::vector<std::string> >("generators");
   }
  
}
PATHeavyIonProducer::~PATHeavyIonProducer ( )

Definition at line 99 of file PATHeavyIonProducer.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)

}

Member Function Documentation

void PATHeavyIonProducer::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 121 of file PATHeavyIonProducer.cc.

{
}
void PATHeavyIonProducer::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 127 of file PATHeavyIonProducer.cc.

                            {
}
void PATHeavyIonProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDProducer.

Definition at line 114 of file PATHeavyIonProducer.cc.

{

}

Member Data Documentation

Definition at line 62 of file PATHeavyIonProducer.cc.

Definition at line 59 of file PATHeavyIonProducer.cc.

Definition at line 60 of file PATHeavyIonProducer.cc.

Definition at line 63 of file PATHeavyIonProducer.cc.

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

Definition at line 61 of file PATHeavyIonProducer.cc.