11#include <geometry/CreatorBase.h>
13#include <framework/gearbox/GearDir.h>
14#include <framework/logging/Logger.h>
15#include <framework/database/DBObjPtr.h>
16#include <framework/database/IntervalOfValidity.h>
17#include <framework/database/DBImportObjPtr.h>
19#include <cdc/simulation/CDCSensitiveDetector.h>
20#include <cdc/dbobjects/CDCGeometry.h>
23class G4VPhysicalVolume;
33 class BkgSensitiveDetector;
70 B2FATAL(
"No configuration for " << name <<
" found.");
119 void createCone(
const double rmin1,
const double rmax1,
120 const double rmin2,
const double rmax2,
121 const double thick,
const double posz,
122 const int id, G4Material* med,
const std::string& name);
126 void createBox(
const double length,
const double height,
127 const double thick,
const double x,
128 const double y,
const double z,
129 const int id, G4Material* med,
130 const std::string& name);
134 void createTube(
const double rmin,
const double rmax,
135 const double thick,
const double posZ,
136 const int id, G4Material* med,
137 const std::string& name);
141 void createTorus(
const double rmin1,
const double rmax1,
142 const double thick,
const double posZ,
143 const int id, G4Material* med,
144 const std::string& name);
149 void createTube2(
const double rmin,
const double rmax,
150 const double phis,
const double phie,
151 const double thick,
const double posZ,
152 const int id, G4Material* med,
153 const std::string& name);
164 cdcGeometry.
read(param);
The Class for BeamBackground Sensitive Detector.
The Class for CDC geometry.
void read(const GearDir &)
Get geometry parameters from Gearbox.
The Class for CDC Sensitive Detector.
void createBox(const double length, const double height, const double thick, const double x, const double y, const double z, const int id, G4Material *med, const std::string &name)
Create G4Box.
virtual void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Create payloads.
CDCGeometry createConfiguration(const GearDir ¶m)
Create DB object of CDC geometry from gearbox.
~GeoCDCCreator()
The destructor of the GeoCDCCreator class.
std::vector< G4VisAttributes * > m_VisAttributes
Vector of pointers to G4VisAttributes.
std::vector< G4UserLimits * > m_userLimits
Vector of pointers to G4UserLimits.
BkgSensitiveDetector * m_bkgsensitive
Sensitive detector for background studies.
void createGeometry(const CDCGeometry ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
Create G4 geometry of CDC.
virtual void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creates the ROOT Objects for the CDC geometry.
void createTube2(const double rmin, const double rmax, const double phis, const double phie, const double thick, const double posZ, const int id, G4Material *med, const std::string &name)
Create G4Tube2.
void createTube(const double rmin, const double rmax, const double thick, const double posZ, const int id, G4Material *med, const std::string &name)
Create G4Tube.
GeoCDCCreator()
Constructor of the GeoCDCCreator class.
void createNeutronShields(const GearDir &content)
Create neutron shield from gearbox.
G4VPhysicalVolume * m_physicalCDC
CDC G4 physical volume.
void createTorus(const double rmin1, const double rmax1, const double thick, const double posZ, const int id, G4Material *med, const std::string &name)
Create G4Torus.
std::vector< BkgSensitiveDetector * > m_BkgSensitiveRib4
Sensitive detectors for background studies (rib4).
void createCone(const double rmin1, const double rmax1, const double rmin2, const double rmax2, const double thick, const double posz, const int id, G4Material *med, const std::string &name)
Create G4Cone.
virtual void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Create geometry from DB.
void createCover2s(const GearDir &content)
Create CDC cover2s from gear box.
void createMapper(G4LogicalVolume &topVolume)
Create the B-field mapper geometry (tentative function)
G4LogicalVolume * m_logicalCDC
CDC G4 logical volume.
void createCovers(const GearDir &content)
Create CDC covers from gear box.
CDCSensitiveDetector * m_sensitive
Sensitive detector.
bool import(const IntervalOfValidity &iov)
Import the object to database.
Class for importing a single object to the database.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
Class for accessing objects in the database.
GearDir is the basic class used for accessing the parameter store.
A class that describes the interval of experiments/runs for which an object in the database is valid.
Pure virtual base class for all geometry creators.
GeometryTypes
Flag indiciating the type of geometry to be used.
Abstract base class for different kinds of events.