ATLAS Offline Software
Public Member Functions | Static Private Member Functions | List of all members
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 }

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 }

◆ 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 }

◆ 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:
PhysicalVolumeAccessor
Definition: PhysicalVolumeAccessor.h:18
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
PhysicalVolumeAccessor::SetPhysicalVolumeList
void SetPhysicalVolumeList(const std::string &)
Definition: PhysicalVolumeAccessor.cxx:53
PhysicalVolumeAccessor::GetPhysicalVolume
const G4VPhysicalVolume * GetPhysicalVolume(int) const
Definition: PhysicalVolumeAccessor.cxx:42
python.changerun.pv
pv
Definition: changerun.py:81
LArCoudes::theCoudes
static const PhysicalVolumeAccessor & theCoudes(const std::string &strDetector="")
Definition: LArCoudes.cxx:8