CMS 3D CMS Logo

DDG4ProductionCuts.h
Go to the documentation of this file.
1 #ifndef SimG4Core_DDG4ProductionCuts_H
2 #define SimG4Core_DDG4ProductionCuts_H
3 
5 #include <DD4hep/SpecParRegistry.h>
6 #include <DDG4/Geant4GeometryInfo.h>
7 
8 #include <string>
9 #include <vector>
10 
11 class DDLogicalPart;
12 class G4Region;
13 class G4LogicalVolume;
14 
16 public:
17  explicit DDG4ProductionCuts(const G4LogicalVolumeToDDLogicalPartMap*, int, bool);
18 
19  explicit DDG4ProductionCuts(const dd4hep::SpecParRegistry*,
20  const dd4hep::sim::Geant4GeometryMaps::VolumeMap*,
21  int,
22  bool);
23 
24 private:
25  void initialize();
26  void setProdCuts(const DDLogicalPart, G4Region*);
27 
30 
31  // ---------------------------------
32  // DD4hep specific initialization,
33  // methods, and local variables...
34  void dd4hepInitialize();
35  void setProdCuts(const dd4hep::SpecPar*, G4Region*);
36 
37  const dd4hep::sim::Geant4GeometryMaps::VolumeMap* dd4hepMap_ = nullptr;
38  std::vector<std::pair<G4LogicalVolume*, const dd4hep::SpecPar*>> dd4hepVec_;
39  const dd4hep::SpecParRegistry* specPars_;
40  // ... end here.
41  // ---------------------------------
42 
44  const int verbosity_;
45  const bool protonCut_;
46 };
47 
48 #endif
DDG4ProductionCuts::verbosity_
const int verbosity_
Definition: DDG4ProductionCuts.h:44
DDMapper< G4LogicalVolume *, DDLogicalPart >
DDG4ProductionCuts::DDG4ProductionCuts
DDG4ProductionCuts(const G4LogicalVolumeToDDLogicalPartMap *, int, bool)
Definition: DDG4ProductionCuts.cc:53
G4LogicalVolumeToDDLogicalPartMap.h
DDG4ProductionCuts::dd4hepMap_
const dd4hep::sim::Geant4GeometryMaps::VolumeMap * dd4hepMap_
Definition: DDG4ProductionCuts.h:37
DDG4ProductionCuts::protonCut_
const bool protonCut_
Definition: DDG4ProductionCuts.h:45
DDG4ProductionCuts::map_
const G4LogicalVolumeToDDLogicalPartMap * map_
Definition: DDG4ProductionCuts.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDMapper< G4LogicalVolume *, DDLogicalPart >::Vector
std::vector< Pair > Vector
usefull typedef
Definition: DDMapper.h:19
DDG4ProductionCuts::keywordRegion_
const std::string keywordRegion_
Definition: DDG4ProductionCuts.h:43
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDG4ProductionCuts
Definition: DDG4ProductionCuts.h:15
DDG4ProductionCuts::dd4hepVec_
std::vector< std::pair< G4LogicalVolume *, const dd4hep::SpecPar * > > dd4hepVec_
Definition: DDG4ProductionCuts.h:38
DDG4ProductionCuts::specPars_
const dd4hep::SpecParRegistry * specPars_
Definition: DDG4ProductionCuts.h:39
DDG4ProductionCuts::vec_
G4LogicalVolumeToDDLogicalPartMap::Vector vec_
Definition: DDG4ProductionCuts.h:29
DDG4ProductionCuts::initialize
void initialize()
Definition: DDG4ProductionCuts.cc:66
DDG4ProductionCuts::setProdCuts
void setProdCuts(const DDLogicalPart, G4Region *)
Definition: DDG4ProductionCuts.cc:182
DDG4ProductionCuts::dd4hepInitialize
void dd4hepInitialize()
Definition: DDG4ProductionCuts.cc:112