CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
GenParticleProducer Class Reference
Inheritance diagram for GenParticleProducer:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

int chargeTimesThree (int) const
 
bool convertParticle (reco::GenParticle &cand, const HepMC::GenParticle *part)
 
bool fillDaughters (reco::GenParticleCollection &cand, const HepMC::GenParticle *part, size_t index)
 
bool fillIndices (const HepMC::GenEvent *mc, std::vector< const HepMC::GenParticle * > &particles, std::vector< int > &barCodeVector, int offset)
 
 GenParticleProducer (const edm::ParameterSet &)
 constructor More...
 
virtual void produce (edm::Event &e, const edm::EventSetup &) override
 process one event More...
 
 ~GenParticleProducer ()
 destructor More...
 
- 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 ()
 

Public Attributes

std::map< int, size_t > barcodes_
 
reco::GenParticleRefProd ref_
 

Private Attributes

bool abortOnUnknownPDGCode_
 unknown code treatment flag More...
 
std::vector< int > chargeM_
 
std::map< int, int > chargeMap_
 
std::vector< int > chargeP_
 charge indices More...
 
bool doSubEvent_
 input & output modes More...
 
bool firstEvent_
 whether the first event was looked at More...
 
edm::EDGetTokenT
< CrossingFrame
< edm::HepMCProduct > > 
mixToken_
 
bool saveBarCodes_
 save bar-codes More...
 
edm::EDGetTokenT
< edm::HepMCProduct
srcToken_
 source collection name More...
 
bool useCF_
 
std::vector< edm::EDGetTokenT
< edm::HepMCProduct > > 
vectorSrcTokens_
 

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

Definition at line 25 of file GenParticleProducer.cc.

Constructor & Destructor Documentation

GenParticleProducer::GenParticleProducer ( const edm::ParameterSet cfg)

constructor

Definition at line 86 of file GenParticleProducer.cc.

References doSubEvent_, edm::ParameterSet::getParameter(), diffTwoXMLs::label, saveBarCodes_, AlCaHLTBitMon_QueryRunRegistry::string, edm::vector_transform(), and vectorSrcTokens_.

86  :
87  firstEvent_(true),
88  abortOnUnknownPDGCode_( cfg.getUntrackedParameter<bool>( "abortOnUnknownPDGCode", true ) ),
89  saveBarCodes_( cfg.getUntrackedParameter<bool>( "saveBarCodes", false ) ),
91  doSubEvent_(cfg.getUntrackedParameter<bool>( "doSubEvent", false )),
92  useCF_(cfg.getUntrackedParameter<bool>( "useCrossingFrame", false ))
93 {
94  produces<GenParticleCollection>();
95  if( saveBarCodes_ ) {
96  std::string alias( cfg.getParameter<std::string>( "@module_label" ) );
97  produces<vector<int> >().setBranchAlias( alias + "BarCodes" );
98  }
99 
100  if(doSubEvent_){
101  vectorSrcTokens_ = vector_transform(cfg.getParameter<std::vector<std::string> >( "srcVector" ), [this](std::string const & label){return mayConsume<HepMCProduct>(InputTag(label));});
102  // produces<SubEventMap>();
103  }else if(useCF_) {
104  mixToken_ = mayConsume<CrossingFrame<HepMCProduct> >(InputTag(cfg.getParameter<std::string>( "mix" ),"generator"));
105  srcToken_ = mayConsume<HepMCProduct>(cfg.getUntrackedParameter<InputTag>( "src" , InputTag(cfg.getParameter<std::string>( "mix" ),"generator")));
106  } else srcToken_ = mayConsume<HepMCProduct>(cfg.getParameter<InputTag>( "src" ));
107 }
T getParameter(std::string const &) const
bool abortOnUnknownPDGCode_
unknown code treatment flag
T getUntrackedParameter(std::string const &, T const &) const
std::vector< int > chargeP_
charge indices
std::vector< edm::EDGetTokenT< edm::HepMCProduct > > vectorSrcTokens_
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > mixToken_
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
Definition: transform.h:11
edm::EDGetTokenT< edm::HepMCProduct > srcToken_
source collection name
bool firstEvent_
whether the first event was looked at
bool doSubEvent_
input &amp; output modes
std::vector< int > chargeM_
bool saveBarCodes_
save bar-codes
static const int PDGCacheMax
GenParticleProducer::~GenParticleProducer ( )

destructor

Definition at line 109 of file GenParticleProducer.cc.

109  {
110 }

Member Function Documentation

int GenParticleProducer::chargeTimesThree ( int  id) const

Definition at line 112 of file GenParticleProducer.cc.

References abortOnUnknownPDGCode_, funct::abs(), chargeM_, chargeMap_, chargeP_, edm::hlt::Exception, f, edm::errors::LogicError, RecoTau_DiTaus_pt_20-420_cfg::ParticleID, and PDGCacheMax.

Referenced by convertParticle().

112  {
113  if( std::abs( id ) < PDGCacheMax )
114  return id > 0 ? chargeP_[ id ] : chargeM_[ - id ];
115  map<int, int>::const_iterator f = chargeMap_.find( id );
116  if ( f == chargeMap_.end() ) {
119  << "invalid PDG id: " << id << endl;
120  else
121  return HepPDT::ParticleID(id).threeCharge();
122  }
123  return f->second;
124 }
bool abortOnUnknownPDGCode_
unknown code treatment flag
std::vector< int > chargeP_
charge indices
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
std::map< int, int > chargeMap_
std::vector< int > chargeM_
static const int PDGCacheMax
bool GenParticleProducer::convertParticle ( reco::GenParticle cand,
const HepMC::GenParticle *  part 
)

Definition at line 276 of file GenParticleProducer.cc.

References chargeTimesThree(), mmToCm, p4, benchmark_cfg::pdgId, reco::GenParticle::setCollisionId(), reco::LeafCandidate::setP4(), reco::LeafCandidate::setPdgId(), reco::LeafCandidate::setStatus(), reco::LeafCandidate::setThreeCharge(), reco::LeafCandidate::setVertex(), and findQualityFiles::v.

Referenced by produce().

276  {
277  Candidate::LorentzVector p4( part->momentum() );
278  int pdgId = part->pdg_id();
279  cand.setThreeCharge( chargeTimesThree( pdgId ) );
280  cand.setPdgId( pdgId );
281  cand.setStatus( part->status() );
282  cand.setP4( p4 );
283  cand.setCollisionId(0);
284  const GenVertex * v = part->production_vertex();
285  if ( v != 0 ) {
286  ThreeVector vtx = v->point3d();
287  Candidate::Point vertex( vtx.x() * mmToCm, vtx.y() * mmToCm, vtx.z() * mmToCm );
288  cand.setVertex( vertex );
289  } else {
290  cand.setVertex( Candidate::Point( 0, 0, 0 ) );
291  }
292  return true;
293 }
void setCollisionId(int s)
Definition: GenParticle.h:37
int chargeTimesThree(int) const
virtual void setStatus(int status) GCC11_FINAL
set status word
double p4[4]
Definition: TauolaWrapper.h:92
virtual void setVertex(const Point &vertex)
set vertex
virtual void setThreeCharge(Charge qx3) GCC11_FINAL
set electric charge
static const double mmToCm
part
Definition: HCALResponse.h:20
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:41
virtual void setP4(const LorentzVector &p4) GCC11_FINAL
set 4-momentum
math::XYZPoint Point
point in the space
Definition: Candidate.h:45
virtual void setPdgId(int pdgId) GCC11_FINAL
bool GenParticleProducer::fillDaughters ( reco::GenParticleCollection cand,
const HepMC::GenParticle *  part,
size_t  index 
)

Definition at line 295 of file GenParticleProducer.cc.

References barcodes_, configurableAnalysis::GenParticle, cmsHarvester::index, m, ref_, and edm::second().

Referenced by produce().

295  {
296 
297  const GenVertex * productionVertex = part->production_vertex();
298  size_t numberOfMothers = productionVertex->particles_in_size();
299  if ( numberOfMothers > 0 ) {
300  GenVertex::particles_in_const_iterator motherIt = productionVertex->particles_in_const_begin();
301  for( ; motherIt != productionVertex->particles_in_const_end(); motherIt++) {
302  const HepMC::GenParticle * mother = * motherIt;
303  size_t m = barcodes_.find( mother->barcode() )->second;
304  cands[ m ].addDaughter( GenParticleRef( ref_, index ) );
305  cands[ index ].addMother( GenParticleRef( ref_, m ) );
306  }
307  }
308 
309  return true;
310 }
std::map< int, size_t > barcodes_
edm::Ref< GenParticleCollection > GenParticleRef
persistent reference to a GenParticle
U second(std::pair< T, U > const &p)
reco::GenParticleRefProd ref_
part
Definition: HCALResponse.h:20
bool GenParticleProducer::fillIndices ( const HepMC::GenEvent *  mc,
std::vector< const HepMC::GenParticle * > &  particles,
std::vector< int > &  barCodeVector,
int  offset 
)

Definition at line 312 of file GenParticleProducer.cc.

References barcodes_, begin, end, configurableAnalysis::GenParticle, customizeTrackingMonitorSeedNumber::idx, evf::evtn::offset(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by produce().

312  {
313  size_t idx = offset;
314  HepMC::GenEvent::particle_const_iterator begin = mc->particles_begin(), end = mc->particles_end();
315  for( HepMC::GenEvent::particle_const_iterator p = begin; p != end; ++ p ) {
316  const HepMC::GenParticle * particle = * p;
317  size_t barCode_this_event = particle->barcode();
318  size_t barCode = barCode_this_event + offset;
319  if( barcodes_.find(barCode) != barcodes_.end() )
320  throw cms::Exception( "WrongReference" )
321  << "barcodes are duplicated! " << endl;
322  particles[idx] = particle;
323  barCodeVector[idx] = barCode;
324  barcodes_.insert( make_pair(barCode_this_event, idx ++) );
325  }
326  return true;
327 }
std::map< int, size_t > barcodes_
#define end
Definition: vmac.h:37
unsigned int offset(bool)
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
#define begin
Definition: vmac.h:30
void GenParticleProducer::produce ( edm::Event e,
const edm::EventSetup es 
)
overridevirtual

process one event

fill indices

Implements edm::EDProducer.

Definition at line 126 of file GenParticleProducer.cc.

References funct::abs(), barcodes_, chargeM_, chargeMap_, chargeP_, convertParticle(), doSubEvent_, edm::hlt::Exception, fillDaughters(), fillIndices(), firstEvent_, configurableAnalysis::GenParticle, edm::Event::getByToken(), edm::EventSetup::getData(), edm::HepMCProduct::GetEvent(), MixCollection< T >::getObject(), edm::Event::getRefBeforePut(), patZpeak::handle, i, edm::RefProd< T >::id(), edm::errors::InvalidReference, LogDebug, mixToken_, evf::evtn::offset(), AlCaHLTBitMon_ParallelJobs::p, RecoTau_DiTaus_pt_20-420_cfg::ParticleID, PDGCacheMax, benchmark_cfg::pdgId, edm::Handle< T >::product(), edm::Event::put(), ref_, reco::CompositeRefCandidateT< D >::resetDaughters(), saveBarCodes_, MixCollection< T >::size(), findQualityFiles::size, srcToken_, useCF_, and vectorSrcTokens_.

126  {
127 
128  if (firstEvent_) {
130  es.getData( pdt );
131  for( HepPDT::ParticleDataTable::const_iterator p = pdt->begin(); p != pdt->end(); ++ p ) {
132  const HepPDT::ParticleID & id = p->first;
133  int pdgId = id.pid(), apdgId = std::abs( pdgId );
134  int q3 = id.threeCharge();
135  if ( apdgId < PDGCacheMax && pdgId > 0 ) {
136  chargeP_[ apdgId ] = q3;
137  chargeM_[ apdgId ] = -q3;
138  } else if ( apdgId < PDGCacheMax ) {
139  chargeP_[ apdgId ] = -q3;
140  chargeM_[ apdgId ] = q3;
141  } else {
142  chargeMap_[ pdgId ] = q3;
143  chargeMap_[ -pdgId ] = -q3;
144  }
145  }
146  firstEvent_ = false;
147  }
148 
149  barcodes_.clear();
150 
151  size_t totalSize = 0;
152  const GenEvent * mc = 0;
153  std::vector<Handle<HepMCProduct> > heps;
154  MixCollection<HepMCProduct>* cfhepmcprod = 0;
155  size_t npiles = vectorSrcTokens_.size();
156 
157  if(useCF_){
159  evt.getByToken(mixToken_,cf);
160  cfhepmcprod = new MixCollection<HepMCProduct>(cf.product());
161  npiles = cfhepmcprod->size();
162  for(unsigned int icf = 0; icf < npiles; ++icf){
163  totalSize += cfhepmcprod->getObject(icf).GetEvent()->particles_size();
164  }
165  }else if (doSubEvent_){
166  for(size_t i = 0; i < npiles; ++i){
168  heps.push_back(handle);
169  evt.getByToken( vectorSrcTokens_[i], heps[i] );
170  totalSize += heps[i]->GetEvent()->particles_size();
171  }
172  }else{
174  evt.getByToken( srcToken_, mcp );
175  mc = mcp->GetEvent();
176  if( mc == 0 )
178  << "HepMC has null pointer to GenEvent" << endl;
179  totalSize = mc->particles_size();
180  }
181 
182  // initialise containers
183  const size_t size = totalSize;
184  vector<const HepMC::GenParticle *> particles( size );
185  auto_ptr<GenParticleCollection> candsPtr( new GenParticleCollection( size ) );
186  // auto_ptr<SubEventMap> subsPtr( new SubEventMap() );
187  auto_ptr<vector<int> > barCodeVector( new vector<int>( size ) );
188  ref_ = evt.getRefBeforePut<GenParticleCollection>();
189  GenParticleCollection & cands = * candsPtr;
190  // SubEventMap & subs = *subsPtr;
191  size_t offset = 0;
192  size_t suboffset = 0;
193 
195  if(doSubEvent_ || useCF_){
196  for(size_t i = 0; i < npiles; ++i){
197  barcodes_.clear();
198  if(useCF_) mc = cfhepmcprod->getObject(i).GetEvent();
199  else mc = heps[i]->GetEvent();
200 
201  //Look whether heavy ion/signal event
202  bool isHI = false;
203  const HepMC::HeavyIon * hi = mc->heavy_ion();
204  if(hi && hi->Ncoll_hard() > 1) isHI = true;
205  size_t num_particles = mc->particles_size();
206  fillIndices(mc, particles, *barCodeVector, offset);
207  // fill output collection and save association
208  for( size_t i = offset; i < offset + num_particles; ++ i ) {
209 
210  const HepMC::GenParticle * part = particles[ i ];
211  reco::GenParticle & cand = cands[ i ];
212  // convert HepMC::GenParticle to new reco::GenParticle
213  convertParticle(cand, part);
214  cand.resetDaughters( ref_.id() );
215  }
216 
217  for( size_t d = offset; d < offset + num_particles; ++ d ) {
218  const HepMC::GenParticle * part = particles[ d ];
219  const GenVertex * productionVertex = part->production_vertex();
220  int sub_id = 0;
221  if ( productionVertex != 0 ) {
222  sub_id = productionVertex->id();
223  if(!isHI) sub_id = 0;
224  // search barcode map and attach daughters
225  fillDaughters(cands,part,d);
226  }else{
227  const GenVertex * endVertex = part->end_vertex();
228  if(endVertex != 0) sub_id = endVertex->id();
229  else throw cms::Exception( "SubEventID" )<<"SubEvent not determined. Particle has no production and no end vertex!"<<endl;
230  }
231  if(sub_id < 0) sub_id = 0;
232  int new_id = sub_id + suboffset;
233  GenParticleRef dref( ref_, d );
234  // subs.insert(dref,new_id); // For SubEventMap
235  cands[d].setCollisionId(new_id); // For new GenParticle
236  LogDebug("VertexId")<<"SubEvent offset 3 : "<<suboffset;
237  }
238  int nsub = -2;
239  if(isHI){
240  nsub = hi->Ncoll_hard()+1;
241  suboffset += nsub;
242  }else{
243  suboffset += 1;
244  }
245  offset += num_particles;
246  }
247  }else{
248  fillIndices(mc, particles, *barCodeVector, 0);
249 
250  // fill output collection and save association
251  for( size_t i = 0; i < particles.size(); ++ i ) {
252  const HepMC::GenParticle * part = particles[ i ];
253  reco::GenParticle & cand = cands[ i ];
254  // convert HepMC::GenParticle to new reco::GenParticle
255  convertParticle(cand, part);
256  cand.resetDaughters( ref_.id() );
257  }
258 
259  // fill references to daughters
260  for( size_t d = 0; d < cands.size(); ++ d ) {
261  const HepMC::GenParticle * part = particles[ d ];
262  const GenVertex * productionVertex = part->production_vertex();
263  // search barcode map and attach daughters
264  if ( productionVertex != 0 ) fillDaughters(cands,part,d);
265  cands[d].setCollisionId(0);
266  }
267  }
268 
269  evt.put( candsPtr );
270  if(saveBarCodes_) evt.put( barCodeVector );
271  // if(doSubEvent_) evt.put(subsPtr); // For SubEventMap
272  if(cfhepmcprod) delete cfhepmcprod;
273 
274 }
#define LogDebug(id)
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
int i
Definition: DBlmapReader.cc:9
bool fillDaughters(reco::GenParticleCollection &cand, const HepMC::GenParticle *part, size_t index)
std::vector< int > chargeP_
charge indices
std::map< int, size_t > barcodes_
std::vector< edm::EDGetTokenT< edm::HepMCProduct > > vectorSrcTokens_
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > mixToken_
edm::EDGetTokenT< edm::HepMCProduct > srcToken_
source collection name
int size() const
Definition: MixCollection.h:23
void getData(T &iHolder) const
Definition: EventSetup.h:67
reco::GenParticleRefProd ref_
void resetDaughters(const edm::ProductID &id)
set daughters product ID
bool firstEvent_
whether the first event was looked at
tuple handle
Definition: patZpeak.py:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
unsigned int offset(bool)
bool fillIndices(const HepMC::GenEvent *mc, std::vector< const HepMC::GenParticle * > &particles, std::vector< int > &barCodeVector, int offset)
bool convertParticle(reco::GenParticle &cand, const HepMC::GenParticle *part)
const T & getObject(unsigned int ip) const
Definition: MixCollection.h:30
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:35
part
Definition: HCALResponse.h:20
std::map< int, int > chargeMap_
T const * product() const
Definition: Handle.h:81
bool doSubEvent_
input &amp; output modes
std::vector< int > chargeM_
ProductID id() const
Accessor for product ID.
Definition: RefProd.h:140
bool saveBarCodes_
save bar-codes
tuple size
Write out results.
static const int PDGCacheMax

Member Data Documentation

bool GenParticleProducer::abortOnUnknownPDGCode_
private

unknown code treatment flag

Definition at line 50 of file GenParticleProducer.cc.

Referenced by chargeTimesThree().

std::map<int, size_t> GenParticleProducer::barcodes_

Definition at line 38 of file GenParticleProducer.cc.

Referenced by fillDaughters(), fillIndices(), and produce().

std::vector<int> GenParticleProducer::chargeM_
private

Definition at line 54 of file GenParticleProducer.cc.

Referenced by chargeTimesThree(), and produce().

std::map<int, int> GenParticleProducer::chargeMap_
private

Definition at line 55 of file GenParticleProducer.cc.

Referenced by chargeTimesThree(), and produce().

std::vector<int> GenParticleProducer::chargeP_
private

charge indices

Definition at line 54 of file GenParticleProducer.cc.

Referenced by chargeTimesThree(), and produce().

bool GenParticleProducer::doSubEvent_
private

input & output modes

Definition at line 58 of file GenParticleProducer.cc.

Referenced by GenParticleProducer(), and produce().

bool GenParticleProducer::firstEvent_
private

whether the first event was looked at

Definition at line 48 of file GenParticleProducer.cc.

Referenced by produce().

edm::EDGetTokenT<CrossingFrame<edm::HepMCProduct> > GenParticleProducer::mixToken_
private

Definition at line 45 of file GenParticleProducer.cc.

Referenced by produce().

reco::GenParticleRefProd GenParticleProducer::ref_

Definition at line 39 of file GenParticleProducer.cc.

Referenced by fillDaughters(), and produce().

bool GenParticleProducer::saveBarCodes_
private

save bar-codes

Definition at line 52 of file GenParticleProducer.cc.

Referenced by GenParticleProducer(), and produce().

edm::EDGetTokenT<edm::HepMCProduct> GenParticleProducer::srcToken_
private

source collection name

Definition at line 43 of file GenParticleProducer.cc.

Referenced by produce().

bool GenParticleProducer::useCF_
private

Definition at line 59 of file GenParticleProducer.cc.

Referenced by produce().

std::vector<edm::EDGetTokenT<edm::HepMCProduct> > GenParticleProducer::vectorSrcTokens_
private

Definition at line 44 of file GenParticleProducer.cc.

Referenced by GenParticleProducer(), and produce().