|
template<typename T > |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
|
template<class TFactory > |
void | registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
| override DataProxyProvider method More...
|
|
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
| deletes all the Proxies in aStream More...
|
|
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &) |
|
CurrentProcessingContext const * | currentContext () const |
|
template<class TProducer , class TMethod > |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
|
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 43 of file edproducer.cc.
Implements edm::EDProducer.
Definition at line 115 of file edproducer.cc.
References DeDxDiscriminatorTools::charge(), metsig::electron, electronTags_, edm::Event::getByLabel(), h, metsig::muon, patZpeak::muons, muonTags_, MyParticleCollection, edm::Event::put(), and dt_dqm_sourceclient_common_cff::reco.
118 @example_myparticle
using namespace reco;
119 @example_myparticle
using namespace std;
147 @example_myparticle
if(
muons->size() == 4 || electrons->size() == 4 || (
muons->size() == 2 && electrons->size() == 2 ) ) {
154 @example_myparticle
for( MuonCollection::const_iterator
muon =
muons->begin();
muon !=
muons->end(); ++
muon ) {
155 @example_myparticle totalP4 +=
muon->p4();
157 @example_myparticle }
159 @example_myparticle
for( PixelMatchGsfElectronCollection::const_iterator
electron = electrons->begin();
electron != electrons->end(); ++
electron ) {
160 @example_myparticle totalP4 +=
electron->p4();
161 @example_myparticle charge +=
electron->charge();
162 @example_myparticle }
166 @example_myparticle h.setP4(totalP4);
167 @example_myparticle h.setCharge(charge);
170 @example_myparticle newParticles->push_back( h );
171 @example_myparticle }
174 @example_myparticle iEvent.
put( newParticles,
"particles" );
int Charge
electric charge type
example_myparticle edm::InputTag electronTags_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
example_myparticle edm::InputTag muonTags_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
example_myparticle example_myparticle typedef std::vector< reco::Particle > MyParticleCollection