CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotosInterface.h
Go to the documentation of this file.
1 #ifndef gen_PhotosInterface_PhotosInterface_h
2 #define gen_PhotosInterface_PhotosInterface_h
3 
4 // #include "HepPDT/ParticleDataTable.hh"
5 
9 
10 #include "HepMC/SimpleVector.h"
12 
13 
14 namespace HepMC
15 {
16 class GenEvent;
17 class GenVertex;
18 }
19 
20 namespace gen {
22  public:
23 
24  // ctor & dtor
25  PhotosInterface();
28 
29  void init();
30  const std::vector<std::string>& specialSettings() { return fSpecialSettings; }
31  HepMC::GenEvent* apply( HepMC::GenEvent* );
32  void configureOnlyFor( int );
34  bool isTauLeptonicDecay( HepMC::GenVertex* );
35  void setRandomEngine(CLHEP::HepRandomEngine* decayRandomEngine);
36  static double flat();
37 
38  private:
39 
40  int fOnlyPDG;
42  std::vector<int> fBarcodes;
43  std::vector<int> fSecVtxStore;
45 
46  void applyToVertex( HepMC::GenEvent*, int );
47  void applyToBranch( HepMC::GenEvent*, int );
48  void attachParticles( HepMC::GenEvent*, HepMC::GenVertex*, int );
49 
50  static CLHEP::HepRandomEngine* fRandomEngine;
51 
52  };
53 }
54 
55 #endif
void attachParticles(HepMC::GenEvent *, HepMC::GenVertex *, int)
CLHEP::HepRandomEngine * decayRandomEngine
const std::vector< std::string > & specialSettings()
std::vector< int > fBarcodes
void setRandomEngine(CLHEP::HepRandomEngine *decayRandomEngine)
static CLHEP::HepRandomEngine * fRandomEngine
void applyToBranch(HepMC::GenEvent *, int)
std::vector< int > fSecVtxStore
void applyToVertex(HepMC::GenEvent *, int)
bool isTauLeptonicDecay(HepMC::GenVertex *)
static double flat()
HepMC::GenEvent * apply(HepMC::GenEvent *)
std::vector< std::string > fSpecialSettings