ATLAS Offline Software
Loading...
Searching...
No Matches
LArCoudes Class Reference

#include <LArCoudes.h>

Collaboration diagram for LArCoudes:

Public Member Functions

 LArCoudes (const std::string &strDetector="")
double XCentCoude (int stackid, int cellid) const
double YCentCoude (int stackid, int cellid) const

Static Private Member Functions

static const PhysicalVolumeAccessortheCoudes (const std::string &strDetector="")

Detailed Description

Definition at line 10 of file LArCoudes.h.

Constructor & Destructor Documentation

◆ LArCoudes()

LArCoudes::LArCoudes ( const std::string & strDetector = "")

Definition at line 22 of file LArCoudes.cxx.

23{
24 // initialize singleton
25 theCoudes(strDetector);
26}
static const PhysicalVolumeAccessor & theCoudes(const std::string &strDetector="")
Definition LArCoudes.cxx:8

Member Function Documentation

◆ theCoudes()

const PhysicalVolumeAccessor & LArCoudes::theCoudes ( const std::string & strDetector = "")
staticprivate

Definition at line 8 of file LArCoudes.cxx.

9{
10 static const PhysicalVolumeAccessor pva = [&]() {
11 const std::string prefix = strDetector.empty() ? "" : strDetector+"::";
12 PhysicalVolumeAccessor pva(prefix+"LAr::EMB::STAC",
13 prefix+"LAr::EMB::Electrode::CornerDownFold");
14 pva.SetPhysicalVolumeList(prefix+"LAr::EMB::Electrode::CornerUpFold");
15 return pva;
16 }();
17
18 return pva;
19}
void SetPhysicalVolumeList(const std::string &)

◆ XCentCoude()

double LArCoudes::XCentCoude ( int stackid,
int cellid ) const

Definition at line 28 of file LArCoudes.cxx.

29{
30 const int id=cellid+stackid*10000;
31 const G4VPhysicalVolume *pv=theCoudes().GetPhysicalVolume(id);
32 if (!pv) std::abort();
33 const G4ThreeVector& tv=pv->GetTranslation();
34 return tv.x();
35}
const G4VPhysicalVolume * GetPhysicalVolume(int) const

◆ YCentCoude()

double LArCoudes::YCentCoude ( int stackid,
int cellid ) const

Definition at line 36 of file LArCoudes.cxx.

37{
38 const int id=cellid+stackid*10000;
39 const G4VPhysicalVolume *pv=theCoudes().GetPhysicalVolume(id);
40 if (!pv) std::abort();
41 const G4ThreeVector& tv=pv->GetTranslation();
42 return tv.y();
43}

The documentation for this class was generated from the following files: