Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:12:34

0001 #ifndef __PHPY6GENTRIGGER_H__
0002 #define __PHPY6GENTRIGGER_H__
0003 
0004 #include <iostream>
0005 #include <string>
0006 #include <sstream>
0007 #include <vector>
0008 
0009 #include <HepMC/GenEvent.h>
0010 
0011 namespace HepMC
0012 {
0013   class GenEvent;
0014 };
0015 
0016 class PHPy6GenTrigger {
0017 
0018  protected:  
0019   //! constructor
0020   PHPy6GenTrigger(const std::string &name = "PHPy6GenTrigger");
0021 
0022  public:
0023   virtual ~PHPy6GenTrigger();
0024 
0025   #ifndef __CINT__
0026   virtual bool Apply(const HepMC::GenEvent* evt) {
0027     std::cout << "PHPy8GenTrigger::Apply - in virtual function" << std::endl;
0028     return false;
0029   }
0030   #endif
0031 
0032   virtual std::string GetName() { return _name; }
0033   
0034   std::vector<int> convertToInts(std::string s);
0035 
0036   void Verbosity(int v) { _verbosity = v; }
0037 
0038 protected:
0039   int _verbosity;  
0040   
0041 private:
0042   std::string _name;
0043 };
0044 
0045 #endif  
0046