Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PHG4GDMLConfig.hh
Go to the documentation of this file.
1 // $Id: $
2 
11 #ifndef SIMULATION_CORESOFTWARE_SIMULATION_G4SIMULATION_G4GDML_PHG4GDMLCONFIG_HH_
12 #define SIMULATION_CORESOFTWARE_SIMULATION_G4SIMULATION_G4GDML_PHG4GDMLCONFIG_HH_
13 
14 #include <phool/PHObject.h>
15 
16 #include <set>
17 
18 class G4VPhysicalVolume;
19 class G4LogicalVolume;
20 
24 class PHG4GDMLConfig : public PHObject
25 {
26  public:
28  virtual ~PHG4GDMLConfig();
29 
30  virtual void Reset()
31  {
32  excluded_physical_vol.clear();
33  excluded_logical_vol.clear();
34  }
35  virtual int isValid() const { return 1; }
36  virtual void identify(std::ostream &os = std::cout) const
37  {
38  std::cout << "PHG4GDMLConfig with " << excluded_physical_vol.size() << "excluded physical volume and "
39  << excluded_logical_vol.size() << " excluded logical volume" << std::endl;
40  }
41 
42  void exclude_physical_vol(const G4VPhysicalVolume *vol) { excluded_physical_vol.insert(vol); }
43  void exclude_logical_vol(const G4LogicalVolume *vol) { excluded_logical_vol.insert(vol); }
44  const std::set<const G4VPhysicalVolume *> &get_excluded_physical_vol() const { return excluded_physical_vol; }
45  const std::set<const G4LogicalVolume *> &get_excluded_logical_vol() const { return excluded_logical_vol; }
46  private:
47  std::set<const G4VPhysicalVolume *> excluded_physical_vol;
48  std::set<const G4LogicalVolume *> excluded_logical_vol;
49 };
50 
51 #endif /* SIMULATION_CORESOFTWARE_SIMULATION_G4SIMULATION_G4GDML_PHG4GDMLCONFIG_HH_ */
PHG4GDMLConfig.
virtual void Reset()
Clear Event.
void exclude_logical_vol(const G4LogicalVolume *vol)
void exclude_physical_vol(const G4VPhysicalVolume *vol)
virtual ~PHG4GDMLConfig()
const std::set< const G4VPhysicalVolume * > & get_excluded_physical_vol() const
virtual void identify(std::ostream &os=std::cout) const
virtual int isValid() const
isValid returns non zero if object contains vailid data
const std::set< const G4LogicalVolume * > & get_excluded_logical_vol() const