Project
Loading...
Searching...
No Matches
Pipe.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef ALICEO2_PASSIVE_PIPE_H
13#define ALICEO2_PASSIVE_PIPE_H
14
15#include "DetectorsPassive/PassiveBase.h"
16#include "Rtypes.h" // for Pipe::Class, ClassDef, Pipe::Streamer
17
18class TGeoPcon;
19
20namespace o2
21{
22namespace passive
23{
24class Pipe : public PassiveBase
25{
26 public:
27 Pipe(const char* name, const char* Title = "Alice Pipe", float rho = 0.f, float thick = 0.f);
28 Pipe();
29
30 ~Pipe() override;
31 void ConstructGeometry() override;
32
34 FairModule* CloneModule() const override;
35
36 float getRmin() const { return mBePipeRmax - mBePipeThick; }
37 float getRmax() const { return mBePipeRmax; }
38 float getWidth() const { return mBePipeThick; }
39 float getDz() const { return mIpHLength; }
40
41 private:
42 void createMaterials();
43 Pipe(const Pipe& orig);
44 Pipe& operator=(const Pipe&);
45
46 TGeoPcon* MakeMotherFromTemplate(const TGeoPcon* shape, Int_t imin = -1, Int_t imax = -1, Float_t r0 = 0.,
47 Int_t nz = -1);
48 TGeoPcon* MakeInsulationFromTemplate(TGeoPcon* shape);
49 TGeoVolume* MakeBellow(const char* ext, Int_t nc, Float_t rMin, Float_t rMax, Float_t dU, Float_t rPlie,
50 Float_t dPlie);
51 TGeoVolume* MakeBellowCside(const char* ext, Int_t nc, Float_t rMin, Float_t rMax, Float_t rPlie, Float_t dPlie);
52
53 float mBePipeRmax = 0.; // outer diameter of the Be section
54 float mBePipeThick = 0.; // Be section thickness
55 float mIpHLength = 0.; // half length of the beampipe around the IP // FixMe: up to now, hardcoded to 57.25cm
56
57 ClassDefOverride(Pipe, 1);
58};
59} // namespace passive
60} // namespace o2
61#endif // PIPE_H
a common base class for passive modules - implementing generic functions
Definition PassiveBase.h:24
float getDz() const
Definition Pipe.h:39
float getWidth() const
Definition Pipe.h:38
float getRmin() const
Definition Pipe.h:36
void ConstructGeometry() override
Definition Pipe.cxx:67
float getRmax() const
Definition Pipe.h:37
~Pipe() override
FairModule * CloneModule() const override
Clone this object (used in MT mode only)
Definition Pipe.cxx:3175
GLuint const GLchar * name
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...