SND@LHC Software
Loading...
Searching...
No Matches
ShipChamber Class Reference

#include <ShipChamber.h>

Inheritance diagram for ShipChamber:
Collaboration diagram for ShipChamber:

Public Member Functions

 ShipChamber (const char *name, const char *Title="ShipChamber")
 
 ShipChamber ()
 
virtual ~ShipChamber ()
 
void ConstructGeometry ()
 
 ClassDef (ShipChamber, 1) Int_t InitMedium(const char *name)
 

Detailed Description

Definition at line 10 of file ShipChamber.h.

Constructor & Destructor Documentation

◆ ShipChamber() [1/2]

ShipChamber::ShipChamber ( const char *  name,
const char *  Title = "ShipChamber" 
)

Definition at line 30 of file ShipChamber.cxx.

31 : FairModule(name ,Title)
32{
33}

◆ ShipChamber() [2/2]

ShipChamber::ShipChamber ( )

Definition at line 25 of file ShipChamber.cxx.

26 : FairModule("ShipChamber", "")
27{
28}

◆ ~ShipChamber()

ShipChamber::~ShipChamber ( )
virtual

Definition at line 22 of file ShipChamber.cxx.

23{
24}

Member Function Documentation

◆ ClassDef()

ShipChamber::ClassDef ( ShipChamber  ,
 
) const

◆ ConstructGeometry()

void ShipChamber::ConstructGeometry ( )

Definition at line 54 of file ShipChamber.cxx.

55{
56
57 TGeoVolume *top=gGeoManager->GetTopVolume();
58 InitMedium("Aluminum");
59 TGeoMedium *Al =gGeoManager->GetMedium("Aluminum");
60 // first part of vacuum chamber up to veto station
61 TGeoVolume *tub1 = gGeoManager->MakeTube("tub1", Al, 245, 250, 50);
62 tub1->SetLineColor(18); // silver/gray
63 top->AddNode(tub1, 1, new TGeoTranslation(0, 0, -2450));
64
65
66 // second part of vacuum chamber up to first tracking station
67 TGeoVolume *tub2 = gGeoManager->MakeTube("tub2", Al, 245, 250, 3880/2); // 1890
68 tub2->SetLineColor(18);
69 top->AddNode(tub2, 1, new TGeoTranslation(0, 0, -440));
70
71
72 // third part of vacuum chamber up to second tracking station
73 TGeoVolume *tub3 = gGeoManager->MakeTube("tub3", Al, 245, 250, 80);
74 tub3->SetLineColor(18);
75 top->AddNode(tub3, 1, new TGeoTranslation(0, 0, 1620));
76
77 // fourth part of vacuum chamber up to third tracking station and being covered by magnet
78 TGeoVolume *tub4 = gGeoManager->MakeTube("tub4", Al, 245, 250, 200);
79 tub4->SetLineColor(18);
80 top->AddNode(tub4, 1, new TGeoTranslation(0, 0, 1940));
81
82 // fifth part of vacuum chamber up to fourth tracking station
83 TGeoVolume *tub5 = gGeoManager->MakeTube("tub5", Al, 245, 250, 90);
84 tub5->SetLineColor(18);
85 top->AddNode(tub5, 1, new TGeoTranslation(0, 0, 2270));
86
87 // sixth part of vacuum chamber up to muon detector
88 TGeoVolume *tub6 = gGeoManager->MakeTube("tub6", Al, 245, 250, 20);
89 tub6->SetLineColor(18);
90 top->AddNode(tub6, 1, new TGeoTranslation(0, 0, 2540));
91
92
93
94}

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