|
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
virtual void | beginJob () override |
|
virtual void | beginRun (const edm::Run &, const EventSetup &) override |
|
| FlatEGunASCIIWriter (const edm::ParameterSet &) |
|
virtual | ~FlatEGunASCIIWriter () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 34 of file FlatEGunASCIIWriter.h.
Definition at line 81 of file FlatEGunASCIIWriter.cc.
References funct::abs(), funct::cos(), stringResolutionProvider_cfi::eta, JetChargeProducer_cfi::exp, fCurrentEvent, fEvt, fMaxE, fMaxEta, fMaxPhi, fMinE, fMinEta, fMinPhi, fOutStream, fPartIDs, fPDGTable, GenParticle::GenParticle, ResonanceBuilder::mass, NULL, AlCaHLTBitMon_ParallelJobs::p, source_particleGun_cfi::ParticleID, reco::return(), funct::sin(), mathSSE::sqrt(), and theta().
90 fEvt =
new HepMC::GenEvent() ;
95 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.) );
99 for (
unsigned int ip=0; ip<
fPartIDs.size(); ip++ )
101 double energy = CLHEP::RandFlat::shoot(
fMinE,
fMaxE ) ;
106 double mass = PData->mass().value() ;
107 double mom2 = energy*energy - mass*
mass ;
109 if ( mom2 > 0. ) mom =
sqrt(mom2) ;
111 double px = mom*
sin(theta)*
cos(phi) ;
112 double py = mom*
sin(theta)*
sin(phi) ;
113 double pz = mom*
cos(theta) ;
117 HepMC::FourVector
p(px,py,pz,energy);
120 Vtx->add_particle_out(Part);
122 fEvt->add_vertex( Vtx ) ;
124 fEvt->set_signal_process_id(20) ;
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
std::vector< int > fPartIDs
ESHandle< HepPDT::ParticleDataTable > fPDGTable
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
HepPDT::ParticleData ParticleData
HepMC::IO_GenEvent * fOutStream
return(e1-e2)*(e1-e2)+dp *dp