CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Generator Class Reference

#include <Generator.h>

Public Member Functions

virtual const double eventWeight () const
 
 Generator (const edm::ParameterSet &p)
 
virtual const HepMC::GenEvent * genEvent () const
 
virtual const
math::XYZTLorentzVector
genVertex () const
 
void HepMC2G4 (const HepMC::GenEvent *g, G4Event *e)
 
void nonBeamEvent2G4 (const HepMC::GenEvent *g, G4Event *e)
 
void setGenEvent (const HepMC::GenEvent *inpevt)
 
virtual ~Generator ()
 

Private Member Functions

void particleAssignDaughters (G4PrimaryParticle *p, HepMC::GenParticle *hp, double length)
 
bool particlePassesPrimaryCuts (const G4ThreeVector &p) const
 
void setGenId (G4PrimaryParticle *p, int id) const
 

Private Attributes

HepMC::GenEvent * evt_
 
bool fEtaCuts
 
LumiMonitorFilterfLumiFilter
 
bool fPCuts
 
bool fPDGFilter
 
bool fPhiCuts
 
bool fPtransCut
 
std::vector< int > pdgFilter
 
bool pdgFilterSel
 
double theDecLenCut
 
double theDecRCut2
 
double theEtaCutForHector
 
double theMaxEtaCut
 
double theMaxPCut
 
double theMaxPhiCut
 
double theMinEtaCut
 
double theMinPCut
 
double theMinPhiCut
 
double theMinPtCut2
 
int verbose
 
math::XYZTLorentzVectorvtx_
 
double weight_
 
double Z_hector
 
double Z_lmax
 
double Z_lmin
 

Detailed Description

Definition at line 19 of file Generator.h.

Constructor & Destructor Documentation

Generator::Generator ( const edm::ParameterSet p)

Definition at line 22 of file Generator.cc.

Generator::~Generator ( )
virtual

Definition at line 95 of file Generator.cc.

Member Function Documentation

virtual const double Generator::eventWeight ( ) const
inlinevirtual

Definition at line 31 of file Generator.h.

References weight_.

31 { return weight_; }
double weight_
Definition: Generator.h:60
virtual const HepMC::GenEvent* Generator::genEvent ( ) const
inlinevirtual

Definition at line 29 of file Generator.h.

References evt_.

29 { return evt_; }
HepMC::GenEvent * evt_
Definition: Generator.h:58
virtual const math::XYZTLorentzVector* Generator::genVertex ( ) const
inlinevirtual

Definition at line 30 of file Generator.h.

References vtx_.

30 { return vtx_; }
math::XYZTLorentzVector * vtx_
Definition: Generator.h:59
void Generator::HepMC2G4 ( const HepMC::GenEvent *  g,
G4Event *  e 
)

Definition at line 100 of file Generator.cc.

void Generator::nonBeamEvent2G4 ( const HepMC::GenEvent *  g,
G4Event *  e 
)

Definition at line 500 of file Generator.cc.

void Generator::particleAssignDaughters ( G4PrimaryParticle *  p,
HepMC::GenParticle *  hp,
double  length 
)
private

Definition at line 389 of file Generator.cc.

bool Generator::particlePassesPrimaryCuts ( const G4ThreeVector &  p) const
private

Definition at line 467 of file Generator.cc.

void Generator::setGenEvent ( const HepMC::GenEvent *  inpevt)
inline

Definition at line 25 of file Generator.h.

References evt_, and reco::return().

26  { evt_ = (HepMC::GenEvent*)inpevt; return ; }
HepMC::GenEvent * evt_
Definition: Generator.h:58
return(e1-e2)*(e1-e2)+dp *dp
void Generator::setGenId ( G4PrimaryParticle *  p,
int  id 
) const
inlineprivate

Definition at line 38 of file Generator.h.

39  { p->SetUserInformation(new GenParticleInfo(id));}

Member Data Documentation

HepMC::GenEvent* Generator::evt_
private

Definition at line 58 of file Generator.h.

Referenced by genEvent(), and setGenEvent().

bool Generator::fEtaCuts
private

Definition at line 44 of file Generator.h.

LumiMonitorFilter* Generator::fLumiFilter
private

Definition at line 57 of file Generator.h.

bool Generator::fPCuts
private

Definition at line 42 of file Generator.h.

bool Generator::fPDGFilter
private

Definition at line 64 of file Generator.h.

bool Generator::fPhiCuts
private

Definition at line 45 of file Generator.h.

bool Generator::fPtransCut
private

Definition at line 43 of file Generator.h.

std::vector<int> Generator::pdgFilter
private

Definition at line 62 of file Generator.h.

bool Generator::pdgFilterSel
private

Definition at line 63 of file Generator.h.

double Generator::theDecLenCut
private

Definition at line 55 of file Generator.h.

double Generator::theDecRCut2
private

Definition at line 53 of file Generator.h.

double Generator::theEtaCutForHector
private

Definition at line 54 of file Generator.h.

double Generator::theMaxEtaCut
private

Definition at line 49 of file Generator.h.

double Generator::theMaxPCut
private

Definition at line 52 of file Generator.h.

double Generator::theMaxPhiCut
private

Definition at line 47 of file Generator.h.

double Generator::theMinEtaCut
private

Definition at line 48 of file Generator.h.

double Generator::theMinPCut
private

Definition at line 50 of file Generator.h.

double Generator::theMinPhiCut
private

Definition at line 46 of file Generator.h.

double Generator::theMinPtCut2
private

Definition at line 51 of file Generator.h.

int Generator::verbose
private

Definition at line 56 of file Generator.h.

math::XYZTLorentzVector* Generator::vtx_
private

Definition at line 59 of file Generator.h.

Referenced by genVertex().

double Generator::weight_
private

Definition at line 60 of file Generator.h.

Referenced by eventWeight().

double Generator::Z_hector
private

Definition at line 61 of file Generator.h.

double Generator::Z_lmax
private

Definition at line 61 of file Generator.h.

double Generator::Z_lmin
private

Definition at line 61 of file Generator.h.