CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PFBlockProducer Class Reference

Producer for particle flow blocks. More...

#include <PFBlockProducer.h>

Inheritance diagram for PFBlockProducer:
edm::stream::EDProducer<>

Public Member Functions

void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
 PFBlockProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~PFBlockProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 

Private Attributes

PFBlockAlgo pfBlockAlgo_
 Particle flow block algorithm. More...
 
bool verbose_
 verbose ? More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Producer for particle flow blocks.

This producer makes use of PFBlockAlgo, the particle flow block algorithm. Particle flow itself consists in reconstructing particles from the particle flow blocks This is done at a later stage, see PFProducer and PFAlgo.

Author
Colin Bernet
Date
April 2007

Definition at line 47 of file PFBlockProducer.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file PFBlockProducer.cc.

References coll, edm::ParameterSet::getParameterSetVector(), and edm::ParameterSet::getUntrackedParameter().

22  {
23  verbose_ =
24  iConfig.getUntrackedParameter<bool>("verbose",false);
25 
26  bool debug_ =
27  iConfig.getUntrackedParameter<bool>("debug",false);
28  pfBlockAlgo_.setDebug(debug_);
29 
30  edm::ConsumesCollector coll = consumesCollector();
31  const std::vector<edm::ParameterSet>& importers
32  = iConfig.getParameterSetVector("elementImporters");
33  pfBlockAlgo_.setImporters(importers,coll);
34 
35  const std::vector<edm::ParameterSet>& linkdefs
36  = iConfig.getParameterSetVector("linkDefinitions");
37  pfBlockAlgo_.setLinkers(linkdefs);
38 
39  produces<reco::PFBlockCollection>();
40 }
T getUntrackedParameter(std::string const &, T const &) const
VParameterSet const & getParameterSetVector(std::string const &name) const
PFBlockAlgo pfBlockAlgo_
Particle flow block algorithm.
void setDebug(bool debug)
sets debug printout flag
Definition: PFBlockAlgo.h:125
void setImporters(const std::vector< edm::ParameterSet > &, edm::ConsumesCollector &)
Definition: PFBlockAlgo.cc:133
JetCorrectorParametersCollection coll
Definition: classes.h:10
bool verbose_
verbose ?
void setLinkers(const std::vector< edm::ParameterSet > &)
Definition: PFBlockAlgo.cc:85
PFBlockProducer::~PFBlockProducer ( )
override

Definition at line 44 of file PFBlockProducer.cc.

References beginLuminosityBlock().

44 { }

Member Function Documentation

void PFBlockProducer::beginLuminosityBlock ( edm::LuminosityBlock const &  lb,
edm::EventSetup const &  es 
)
override

Definition at line 48 of file PFBlockProducer.cc.

Referenced by ~PFBlockProducer().

49  {
51 }
PFBlockAlgo pfBlockAlgo_
Particle flow block algorithm.
void updateEventSetup(const edm::EventSetup &)
Definition: PFBlockAlgo.cc:326
void PFBlockProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 54 of file PFBlockProducer.cc.

References eostools::move(), edm::Event::put(), and str.

55  {
56 
58 
60 
61  if(verbose_) {
62  ostringstream str;
63  str<<pfBlockAlgo_<<endl;
64  LogInfo("PFBlockProducer") << str.str()<<endl;
65  }
66 
68 
69 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
PFBlockAlgo pfBlockAlgo_
Particle flow block algorithm.
void findBlocks()
build blocks
Definition: PFBlockAlgo.cc:154
bool verbose_
verbose ?
std::unique_ptr< reco::PFBlockCollection > transferBlocks()
Definition: PFBlockAlgo.h:133
void buildElements(const edm::Event &)
Definition: PFBlockAlgo.cc:335
#define str(s)
def move(src, dest)
Definition: eostools.py:510

Member Data Documentation

PFBlockAlgo PFBlockProducer::pfBlockAlgo_
private

Particle flow block algorithm.

Definition at line 64 of file PFBlockProducer.h.

bool PFBlockProducer::verbose_
private

verbose ?

Definition at line 61 of file PFBlockProducer.h.