#include <LArStraightElectrodes.h>
Definition at line 11 of file LArStraightElectrodes.h.
◆ LArStraightElectrodes()
LArStraightElectrodes::LArStraightElectrodes |
( |
const std::string & |
strDetector = "" | ) |
|
|
private |
Definition at line 19 of file LArStraightElectrodes.cxx.
25 static const std::string
prefix = strDetector.empty() ?
"" : strDetector+
"::";
27 prefix+
"LAr::EMB::Electrode::Straight");
29 for (
int stackid=0; stackid<14; stackid++) {
30 for (
int cellid=0; cellid<1024; cellid++) {
33 const double slant =
SlantEle(pva, stackid, cellid);
34 sincos(slant, &
m_sinu[cellid][stackid], &
m_cosu[cellid][stackid]);
◆ Cosu()
double LArStraightElectrodes::Cosu |
( |
int |
stackid, |
|
|
int |
cellid |
|
) |
| const |
|
inline |
◆ GetInstance()
◆ HalfLength()
double LArStraightElectrodes::HalfLength |
( |
int |
stackid, |
|
|
int |
cellid |
|
) |
| const |
|
inline |
◆ initHalfLength()
Definition at line 83 of file LArStraightElectrodes.cxx.
86 const int id=cellid+stackid*10000;
91 const G4LogicalVolume* lv =
pv->GetLogicalVolume();
92 const G4Trap* trap = (G4Trap*) lv->GetSolid();
95 l = trap->GetYHalfLength1();
97 const G4LogicalVolume* lv2 = pv2->GetLogicalVolume();
98 const G4Trap* trap2 = (G4Trap*) lv2->GetSolid();
99 l = trap->GetYHalfLength1()+trap2->GetYHalfLength1();
◆ initXYCentEle()
Definition at line 40 of file LArStraightElectrodes.cxx.
42 const int id=cellid+stackid*10000;
50 const G4ThreeVector& tv=
pv->GetTranslation();
53 m_xcent[cellid][stackid] = tv.x();
54 m_ycent[cellid][stackid] = tv.y();
57 const G4ThreeVector& tv2=pv2->GetTranslation();
58 const G4LogicalVolume* lv =
pv->GetLogicalVolume();
59 const G4Trap* trap = (G4Trap*) lv->GetSolid();
60 const G4LogicalVolume* lv2 = pv2->GetLogicalVolume();
61 const G4Trap* trap2 = (G4Trap*) lv2->GetSolid();
62 double xl1=trap->GetYHalfLength1();
63 double xl2=trap2->GetYHalfLength1();
64 m_xcent[cellid][stackid] = (tv.x()*xl1+tv2.x()*xl2)/(xl1+xl2);
65 m_ycent[cellid][stackid] = (tv.y()*xl1+tv2.y()*xl2)/(xl1+xl2);
◆ Sinu()
double LArStraightElectrodes::Sinu |
( |
int |
stackid, |
|
|
int |
cellid |
|
) |
| const |
|
inline |
◆ SlantEle()
Definition at line 70 of file LArStraightElectrodes.cxx.
72 const int id=cellid+stackid*10000;
75 const G4RotationMatrix *rm=
pv->GetRotation();
78 if((stackid%2 == (1-
m_parity)) && (rm->phiY() < 0)) Slant = - Slant;
◆ XCentEle()
double LArStraightElectrodes::XCentEle |
( |
int |
stackid, |
|
|
int |
cellid |
|
) |
| const |
|
inline |
◆ YCentEle()
double LArStraightElectrodes::YCentEle |
( |
int |
stackid, |
|
|
int |
cellid |
|
) |
| const |
|
inline |
◆ m_cosu
double LArStraightElectrodes::m_cosu[1024][14] {} |
|
private |
◆ m_halflength
double LArStraightElectrodes::m_halflength[1024][14] {} |
|
private |
◆ m_parity
int LArStraightElectrodes::m_parity |
|
private |
◆ m_sinu
double LArStraightElectrodes::m_sinu[1024][14] {} |
|
private |
◆ m_xcent
double LArStraightElectrodes::m_xcent[1024][14] {} |
|
private |
◆ m_ycent
double LArStraightElectrodes::m_ycent[1024][14] {} |
|
private |
The documentation for this class was generated from the following files: