10namespace eventdisplay {
13 hcal_ =
new TEveElementList(
"HCAL");
14 sidehcal_ =
new TEveElementList(
"Side HCAL");
15 ecal_ =
new TEveElementList(
"ECAL");
16 recoilTracker_ =
new TEveElementList(
"Recoil Tracker");
17 detector_ =
new TEveElementList(
"LDMX Detector");
25 for (
int col = 0; col < 7; ++col) {
27 colName.Form(
"Tower %d", col);
32 ecal_->AddElement(hexCol);
35 detector_->AddElement(ecal_);
41 ldmx::HcalID::HcalSection::BACK),
42 0, 0, 0, kCyan, 90,
"Back HCal");
43 hcal_->AddElement(backHcal);
47 ldmx::HcalID::HcalSection::TOP),
48 0, 0, 0, kCyan, 90,
"Module 1");
50 sidehcal_->AddElement(sideTopHcal);
54 ldmx::HcalID::HcalSection::BOTTOM),
55 0, 0, 0, kCyan, 90,
"Module 4");
57 sidehcal_->AddElement(sideBottomHcal);
61 ldmx::HcalID::HcalSection::LEFT),
62 0, 0, 0, kCyan, 90,
"Module 2");
64 sidehcal_->AddElement(sideLeftHcal);
68 ldmx::HcalID::HcalSection::RIGHT),
69 0, 0, 0, kCyan, 90,
"Module 3");
71 sidehcal_->AddElement(sideRightHcal);
72 hcal_->AddElement(sidehcal_);
74 detector_->AddElement(hcal_);
78 for (
int layerID = 1; layerID < 9; layerID++) {
80 name.Form(
"Stereo_%d", layerID);
87 recoilTracker_->AddElement(layer);
90 for (
int layerID = 9; layerID < 11; layerID++) {
91 for (
int moduleID = 0; moduleID < 10; moduleID++) {
93 name.Form(
"Mono_%d_%d", layerID, moduleID);
100 kRed - 10, 90, name);
102 recoilTracker_->AddElement(layer);
106 detector_->AddElement(recoilTracker_);
Header file for EveDetectorGeometry Class.
static const DetectorGeometry & getInstance()
Get the single instance of this class.
EveDetectorGeometry()
Constructor Builds and draws all of the detector elements.
void drawRecoilTracker()
Draw the elements of the Recoil Tracker.
void drawECAL()
Draw the elements of the ECAL.
void drawHCAL()
Draw the elements of the HCAL.
TEveGeoShape * drawRectPrism(Double_t xPos, Double_t yPos, Double_t zPos, Double_t dX, Double_t dY, Double_t dZ, Double_t xRot, Double_t yRot, Double_t zRot, Int_t color, Int_t transparency, TString name)
Draw a rectangular prism.
TEveGeoShape * drawHexPrism(Double_t xPos, Double_t yPos, Double_t zPos, Double_t xRot, Double_t yRot, Double_t zRot, Double_t h, Double_t r, Int_t color, Int_t transparency, TString name)
Draw a hexagonal prism.
static EveShapeDrawer & getInstance()
Get Instance of Drawer.