Skip to content

Commit 2737f85

Browse files
mfasDasawenzel
authored andcommitted
[O2-1079, EMCAL-637] Fix overlaps between EMCAL and PHOS/CPV
As the EMCAL mother volume XEN overlaps with PHOS/CPV it needs to be removed and the supermodules have to be put directly into cave. Cave and XEN have the same coordinate system.
1 parent 4c5476b commit 2737f85

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

Detectors/EMCAL/simulation/include/EMCALSimulation/Detector.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,15 @@ class Detector : public o2::base::DetImpl<Detector>
186186
Double_t mBirkC1; ///< Birk parameter C1
187187
Double_t mBirkC2; ///< Birk parameter C2
188188

189-
std::vector<std::string> mSensitive; //!<! List of sensitive volumes
190-
std::unordered_map<int, EMCALSMType> mSMVolumeID; //!<! map of EMCAL supermodule volume IDs
189+
std::vector<std::string> mSensitive; //!<! List of sensitive volumes
190+
std::unordered_map<int, EMCALSMType> mSMVolumeID; //!<! map of EMCAL supermodule volume IDs
191191
std::unordered_map<std::string, EMCALSMType> mSMVolNames; //!<! map of EMCAL supermodule names
192-
Int_t mVolumeIDScintillator; //!<! Volume ID of the scintillator volume
193-
std::vector<Hit>* mHits; //!<! Collection of EMCAL hits
194-
Geometry* mGeometry; //!<! Geometry pointer
195-
std::unordered_map<int, int> mSuperParentsIndices; //!<! Super parent indices (track index - superparent index)
196-
std::unordered_map<int, Parent> mSuperParents; //!<! Super parent kine info (superparent index - superparent object)
197-
Parent* mCurrentSuperparent; //!<! Pointer to the current superparent
192+
Int_t mVolumeIDScintillator; //!<! Volume ID of the scintillator volume
193+
std::vector<Hit>* mHits; //!<! Collection of EMCAL hits
194+
Geometry* mGeometry; //!<! Geometry pointer
195+
std::unordered_map<int, int> mSuperParentsIndices; //!<! Super parent indices (track index - superparent index)
196+
std::unordered_map<int, Parent> mSuperParents; //!<! Super parent kine info (superparent index - superparent object)
197+
Parent* mCurrentSuperparent; //!<! Pointer to the current superparent
198198

199199
// Worker variables during hit creation
200200
Int_t mCurrentTrack; //!<! Current track

Detectors/EMCAL/simulation/src/Detector.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void Detector::ConstructGeometry()
150150
SpaceFrame emcalframe;
151151
emcalframe.CreateGeometry();
152152

153-
CreateEmcalEnvelope();
153+
//CreateEmcalEnvelope();
154154

155155
// COMPACT, TRD1
156156
LOG(DEBUG2) << "Shish-Kebab geometry : " << GetTitle();
@@ -448,8 +448,14 @@ void Detector::CreateShiskebabGeometry()
448448
// idAL = 1602;
449449
Double_t par[10], xpos = 0., ypos = 0., zpos = 0.;
450450

451-
LOG(DEBUG2) << "Name of mother volume: " << g->GetNameOfEMCALEnvelope();
452-
CreateSupermoduleGeometry(g->GetNameOfEMCALEnvelope());
451+
std::string mothervolume;
452+
if (contains(g->GetName(), "WSUC")) {
453+
mothervolume = "WSUC";
454+
} else {
455+
mothervolume = "cave";
456+
}
457+
LOG(DEBUG2) << "Name of mother volume: " << mothervolume;
458+
CreateSupermoduleGeometry(mothervolume);
453459

454460
auto SMTypeList = g->GetEMCSystem();
455461
auto tmpType = NOT_EXISTENT;

0 commit comments

Comments
 (0)