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_ExternalDecays_PhotosInterface_h
2 #define gen_ExternalDecays_PhotosInterface_h
3 
4 // #include "HepPDT/ParticleDataTable.hh"
5 
9 
10 #include "HepMC/SimpleVector.h"
11 
12 namespace HepMC
13 {
14 class GenEvent;
15 class GenVertex;
16 }
17 
18 namespace gen {
19 
21  {
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 
36  private:
37 
38  struct Scaling {
39  HepMC::ThreeVector weights;
40  int flag;
41  Scaling( const HepMC::ThreeVector& vec, int flg )
42  : weights(HepMC::ThreeVector(1.,1.,1)), flag(1) { weights=vec; flag=flg; }
43  };
44 
45  int fOnlyPDG;
46  std::vector<std::string> fSpecialSettings;
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  };
57 
58 }
59 
60 #endif
void attachParticles(HepMC::GenEvent *, HepMC::GenVertex *, int)
const std::vector< std::string > & specialSettings()
std::vector< int > fBarcodes
void applyToBranch(HepMC::GenEvent *, int)
std::vector< std::string > fSpecialSettings
Scaling(const HepMC::ThreeVector &vec, int flg)
std::vector< int > fSecVtxStore
void applyToVertex(HepMC::GenEvent *, int)
bool isTauLeptonicDecay(HepMC::GenVertex *)
HepMC::GenEvent * apply(HepMC::GenEvent *)