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  struct Scaling {
40  HepMC::ThreeVector weights;
41  int flag;
42  Scaling( const HepMC::ThreeVector& vec, int flg )
43  : weights(HepMC::ThreeVector(1.,1.,1)), flag(1) { weights=vec; flag=flg; }
44  };
45 
46  int fOnlyPDG;
48  std::vector<int> fBarcodes;
49  std::vector<int> fSecVtxStore;
51 
52  void applyToVertex( HepMC::GenEvent*, int );
53  void applyToBranch( HepMC::GenEvent*, int );
54  void attachParticles( HepMC::GenEvent*, HepMC::GenVertex*, int );
55 
56  static CLHEP::HepRandomEngine* fRandomEngine;
57 
58  };
59 }
60 
61 #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)
Scaling(const HepMC::ThreeVector &vec, int flg)
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