CMS 3D CMS Logo

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();
27  ~PhotosInterface();
28 
29  void init();
30  const std::vector<std::string>& specialSettings() { return fSpecialSettings; }
31  HepMC::GenEvent* apply( HepMC::GenEvent* );
32  void configureOnlyFor( int );
33  void avoidTauLeptonicDecays() { fAvoidTauLeptonicDecays=true; return; }
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
CLHEP::HepRandomEngine * decayRandomEngine
int init
Definition: HydjetWrapper.h:67
const std::vector< std::string > & specialSettings()
std::vector< int > fBarcodes
static CLHEP::HepRandomEngine * fRandomEngine
std::vector< int > fSecVtxStore
Vec apply(Vec v, F f)
Definition: ExtVec.h:83