Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Detectors/Passive/include/DetectorsPassive/Pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "Rtypes.h" // for Pipe::Class, ClassDef, Pipe::Streamer

class TGeoPcon;
class TGeoMedium;

namespace o2
{
Expand Down Expand Up @@ -47,7 +48,7 @@ class Pipe : public PassiveBase
Int_t nz = -1);
TGeoPcon* MakeInsulationFromTemplate(TGeoPcon* shape);
TGeoVolume* MakeBellow(const char* ext, Int_t nc, Float_t rMin, Float_t rMax, Float_t dU, Float_t rPlie,
Float_t dPlie);
Float_t dPlie, const TGeoMedium* medVac = nullptr, const TGeoMedium* medSteel = nullptr);
TGeoVolume* MakeBellowCside(const char* ext, Int_t nc, Float_t rMin, Float_t rMax, Float_t rPlie, Float_t dPlie);

float mBePipeRmax = 0.; // outer diameter of the Be section
Expand Down
3 changes: 2 additions & 1 deletion Detectors/Passive/include/DetectorsPassive/PipeRun4.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "Rtypes.h" // for PipeRun4::Class, ClassDef, PipeRun4::Streamer

class TGeoPcon;
class TGeoMedium;

namespace o2
{
Expand Down Expand Up @@ -47,7 +48,7 @@ class PipeRun4 : public PassiveBase
int nz = -1);
TGeoPcon* makeInsulationFromTemplate(TGeoPcon* shape);
TGeoVolume* makeBellow(const char* ext, int nc, float rMin, float rMax, float rPlie,
float dPlie);
float dPlie, const TGeoMedium* medVac = nullptr, const TGeoMedium* medSteel = nullptr);
TGeoVolume* makeBellowCside(const char* ext, int nc, float rMin, float rMax, float rPlie, float dPlie);

TGeoVolume* makeSupportBar(const char* tag, float Rin, float Rout, float length, float skinLength);
Expand Down
11 changes: 7 additions & 4 deletions Detectors/Passive/src/Pipe.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,9 @@ void Pipe::ConstructGeometry()
///
//
// Bellow Section
// field-free like its mothers RB24B1BellowM and RB24VMABBEBellowM
TGeoVolume* voRB24B1Bellow = MakeBellow("RB24B1", kRB24B1NumberOfPlies, kRB24B1BellowRi, kRB24B1BellowRo,
kRB24B1BellowUndL, kRB24B1PlieRadius, kRB24B1PlieThickness);
kRB24B1BellowUndL, kRB24B1PlieRadius, kRB24B1PlieThickness, kMedVacNF, kMedSteelNF);
voRB24B1Bellow->SetVisibility(0);
Float_t newRB24B1BellowUndL = 2 * (static_cast<TGeoTube*>(voRB24B1Bellow->GetShape()))->GetDz();

Expand Down Expand Up @@ -3000,17 +3001,19 @@ TGeoPcon* Pipe::MakeInsulationFromTemplate(TGeoPcon* shape)
}

TGeoVolume* Pipe::MakeBellow(const char* ext, Int_t nc, Float_t rMin, Float_t rMax, Float_t dU, Float_t rPlie,
Float_t dPlie)
Float_t dPlie, const TGeoMedium* medVac, const TGeoMedium* medSteel)
{
// nc Number of convolution
// rMin Inner radius of the bellow
// rMax Outer radius of the bellow
// dU Undulation length
// rPlie Plie radius
// dPlie Plie thickness
// medVac Medium of the bellow vacuum, default PIPE_VACUUM
// medSteel Medium of the plies, default PIPE_INOX
auto& matmgr = o2::base::MaterialManager::Instance();
const TGeoMedium* kMedVac = matmgr.getTGeoMedium("PIPE_VACUUM");
const TGeoMedium* kMedSteel = matmgr.getTGeoMedium("PIPE_INOX");
const TGeoMedium* kMedVac = medVac ? medVac : matmgr.getTGeoMedium("PIPE_VACUUM");
const TGeoMedium* kMedSteel = medSteel ? medSteel : matmgr.getTGeoMedium("PIPE_INOX");
//
// Upper part of the undulation
//
Expand Down
12 changes: 8 additions & 4 deletions Detectors/Passive/src/PipeRun4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,9 @@ void PipeRun4::ConstructGeometry()
///
//
// Bellow Section
// field-free like its mothers RB24B1BellowM and RB24VMABBEBellowM
TGeoVolume* voRB24B1Bellow = makeBellow("RB24B1", kRB24B1NumberOfPlies, kRB24B1BellowRi, kRB24B1BellowRo,
kRB24B1PlieRadius, kRB24B1PlieThickness);
kRB24B1PlieRadius, kRB24B1PlieThickness, kMedVacNF, kMedSteelNF);
voRB24B1Bellow->SetVisibility(0);
float newRB24B1BellowUndL = 2 * (static_cast<TGeoTube*>(voRB24B1Bellow->GetShape()))->GetDz();

Expand Down Expand Up @@ -2838,16 +2839,19 @@ TGeoPcon* PipeRun4::makeInsulationFromTemplate(TGeoPcon* shape)
return insu;
}

TGeoVolume* PipeRun4::makeBellow(const char* ext, int nc, float rMin, float rMax, float rPlie, float dPlie)
TGeoVolume* PipeRun4::makeBellow(const char* ext, int nc, float rMin, float rMax, float rPlie, float dPlie,
const TGeoMedium* medVac, const TGeoMedium* medSteel)
{
// nc Number of convolution
// rMin Inner radius of the bellow
// rMax Outer radius of the bellow
// rPlie Plie radius
// dPlie Plie thickness
// medVac Medium of the bellow vacuum, default PIPE_VACUUM
// medSteel Medium of the plies, default PIPE_INOX
auto& matmgr = o2::base::MaterialManager::Instance();
const TGeoMedium* kMedVac = matmgr.getTGeoMedium("PIPE_VACUUM");
const TGeoMedium* kMedSteel = matmgr.getTGeoMedium("PIPE_INOX");
const TGeoMedium* kMedVac = medVac ? medVac : matmgr.getTGeoMedium("PIPE_VACUUM");
const TGeoMedium* kMedSteel = medSteel ? medSteel : matmgr.getTGeoMedium("PIPE_INOX");
//
// Upper part of the undulation
//
Expand Down