Project
Loading...
Searching...
No Matches
o2::mft::Flex Class Reference

#include <Flex.h>

Public Member Functions

 Flex ()
 
 Flex (LadderSegmentation *ladder)
 
 ~Flex ()
 
TGeoVolumeAssembly * makeFlex (Int_t nbsensors, Double_t length)
 
void makeElectricComponents (TGeoVolumeAssembly *flex, Int_t nbsensors, Double_t length, Double_t zvarnish)
 

Static Public Member Functions

static std::string composeFlexName (Int_t nbsensors)
 
static std::string composeFlexLayerName (const char *layer, Int_t nbsensors, Int_t iflag=-1)
 
static TGeoVolumeAssembly * getFlexVolume (Int_t nbsensors)
 

Detailed Description

Definition at line 31 of file Flex.h.

Constructor & Destructor Documentation

◆ Flex() [1/2]

Flex::Flex ( )

Definition at line 44 of file Flex.cxx.

◆ Flex() [2/2]

Flex::Flex ( LadderSegmentation ladder)

Definition at line 53 of file Flex.cxx.

◆ ~Flex()

Flex::~Flex ( )
default

Member Function Documentation

◆ composeFlexLayerName()

std::string Flex::composeFlexLayerName ( const char layer,
Int_t  nbsensors,
Int_t  iflag = -1 
)
static

Name of one layer inside that flex: "lineslayer", "alulayer", "kaptonlayer" or "varnishlayer". The varnish is placed twice, iflag 0 in front of the cold plate and iflag 1 outside; the other layers take no iflag.

Definition at line 62 of file Flex.cxx.

◆ composeFlexName()

std::string Flex::composeFlexName ( Int_t  nbsensors)
static

Name of the flex shared by every ladder carrying nbsensors sensors.

One flex is built per sensor-count class and placed on all the ladders of that class, so the name is keyed by the sensor count and no longer by half/disk/ladder. The ladder a given placement belongs to is still read from the node path, for example /cave_1/barrel_1/MFT_0/MFT_H_0_0/MFT_D_0_0_0/MFT_L_0_0_5_5/flex_3_1

Definition at line 59 of file Flex.cxx.

◆ getFlexVolume()

TGeoVolumeAssembly * Flex::getFlexVolume ( Int_t  nbsensors)
static

The flex volume of that class in the current geometry, or nullptr if it has none. Resolved by name, so it also answers on a geometry read back from a file. To go from a ladder to its flex, take the sensor count from GeometryTGeo::getNumberOfSensorsPerLadder(half, disk, ladder) and pass it here.

Definition at line 72 of file Flex.cxx.

◆ makeElectricComponents()

void Flex::makeElectricComponents ( TGeoVolumeAssembly *  flex,
Int_t  nbsensors,
Double_t  length,
Double_t  zvarnish 
)

Definition at line 158 of file Flex.cxx.

◆ makeFlex()

TGeoVolumeAssembly * Flex::makeFlex ( Int_t  nbsensors,
Double_t  length 
)

Definition at line 81 of file Flex.cxx.


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