#include <LArCoudeElectrodes.h>
|
| double | XCentCoude (int stackid, int cellid) const |
| double | YCentCoude (int stackid, int cellid) const |
| double | PhiRot (int stackid, int cellid) const |
Definition at line 10 of file LArCoudeElectrodes.h.
◆ LArCoudeElectrodes()
| LArCoudeElectrodes::LArCoudeElectrodes |
( |
const std::string & | strDetector = "" | ) |
|
|
private |
Definition at line 16 of file LArCoudeElectrodes.cxx.
17{
18 static const PhysicalVolumeAccessor theCoudes = [&]() {
19 const std::string
prefix = strDetector.empty() ?
"" : strDetector+
"::";
20 PhysicalVolumeAccessor pva(prefix+"LAr::EMB::STAC",
21 prefix+"LAr::EMB::Electrode::CornerDownFold");
22 pva.SetPhysicalVolumeList(prefix+"LAr::EMB::Electrode::CornerUpFold");
23 return pva;
24 }();
25
26 for (int stackid=0; stackid<15; stackid++) {
27 for (int cellid=0; cellid<1024; cellid++) {
28 const int id=cellid+stackid*10000;
30 if (pv) {
31 const G4ThreeVector& tv=
pv->GetTranslation();
32 m_xcent[cellid][stackid] = tv.x();
33 m_ycent[cellid][stackid] = tv.y();
34
35
36 const G4RotationMatrix *rm=
pv->GetRotation();
39 else alpha = rm->phiX();
40
41 if (
pv->GetName().find(
"DownFold") != std::string::npos)
alpha=
alpha-3.14159;
42
44 }
45 }
46 }
47}
double m_phirot[1024][15]
const G4VPhysicalVolume * GetPhysicalVolume(int) const
◆ GetInstance()
| const LArCoudeElectrodes * LArCoudeElectrodes::GetInstance |
( |
const std::string & | strDetector = "" | ) |
|
|
static |
◆ PhiRot()
| double LArCoudeElectrodes::PhiRot |
( |
int | stackid, |
|
|
int | cellid ) const |
|
inline |
◆ XCentCoude()
| double LArCoudeElectrodes::XCentCoude |
( |
int | stackid, |
|
|
int | cellid ) const |
|
inline |
◆ YCentCoude()
| double LArCoudeElectrodes::YCentCoude |
( |
int | stackid, |
|
|
int | cellid ) const |
|
inline |
◆ m_phirot
| double LArCoudeElectrodes::m_phirot[1024][15] {} |
|
private |
◆ m_xcent
| double LArCoudeElectrodes::m_xcent[1024][15] {} |
|
private |
◆ m_ycent
| double LArCoudeElectrodes::m_ycent[1024][15] {} |
|
private |
The documentation for this class was generated from the following files: