BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
SiliconConfigCalculate_RunSpring2018.C File Reference
#include "Rtypes.h"
#include "TString.h"
#include <fstream>
Include dependency graph for SiliconConfigCalculate_RunSpring2018.C:

Go to the source code of this file.

Enumerations

enum  StripNumberingDirection { LeftToRight , RightToLeft }
enum  ModuleType { RIGHT_ANGLED_MODULE , BEVEL_MODULE , RIGHT_ANGLED_MODULE_HALF , BEVEL_MODULE_HALF }

Functions

void PrintInfo ()
void CalculateParameters (TString xml_file_name)
void SiliconConfigCalculate_RunSpring2018 ()

Variables

Double_t YGapBetweenPartsOfModule = 0.0035
Double_t XModuleSize = 6.3
Double_t YModuleSizeUpperPart = XModuleSize
Double_t YModuleSizeLowerPart = XModuleSize
Double_t YModuleSize = YModuleSizeUpperPart + YModuleSizeLowerPart + YGapBetweenPartsOfModule
Double_t ZModuleSize = 0.03
Double_t XBevelSize = 3.82
Double_t YBevelSize = XBevelSize
Double_t BevelAngleRad = TMath::ATan(XBevelSize / YBevelSize)
Double_t BevelAngleDeg = BevelAngleRad * TMath::RadToDeg()
Double_t XLeftBorder [2] = {0.1145, 0.10995}
Double_t XRightBorder [2] = {0.1118, 0.11005}
Double_t YTopBorder [2] = {0.1143, 0.1143}
Double_t YMiddleBorderUpperPart [2] = {0.1121, 0.1055}
Double_t YMiddleBorderLowerPart [2] = {0.1147, 0.1055}
Double_t YBottomBorder [2] = {0.1148, 0.1055}
Double_t XYBevelBorder [2] = {0.1146, 0.1076}
Double_t XShiftFirstStripUpLayer [2]
Double_t XShiftFirstStripLowLayer [2] = {0.00780, 0.0}
Double_t XShiftLastStripUpLayer [2]
Double_t XShiftLastStripLowLayer [2] = {0.00675, 0.0}
Double_t YShiftFirstStripUpLayer [2] = {0.0, 0.0}
Double_t YShiftFirstStripLowLayer [2] = {0.0, 0.0}
Double_t YShiftLastStripUpLayer [2] = {0.0, 0.0}
Double_t YShiftLastStripLowLayer [2] = {0.0, 0.0}
Double_t XOrigUpLayer [2] = {XModuleSize - XLeftBorder[0], XModuleSize - XLeftBorder[1]}
Double_t XOrigLowLayer [2] = {XModuleSize - XLeftBorder[0], XModuleSize - XLeftBorder[1]}
Double_t YOrigUpLayer [2]
Double_t YOrigLowLayer [2] = {YBottomBorder[0], YBottomBorder[1]}
Double_t XSizeUpLayer [2]
Double_t YSizeUpLayer [2]
Double_t XSizeLowLayer [2]
Double_t YSizeLowLayer [2]
Double_t XLeftBorderUpperlayer [2]
Double_t XLeftBorderLowerlayer [2]
Double_t XRightBorderUpperlayer [2]
Double_t XRightBorderLowerlayer [2]
Double_t YLeftBorderUpperlayer [2]
Double_t YLeftBorderLowerlayer [2]
Double_t YRightBorderUpperlayer [2] = {YOrigUpLayer[0], YOrigUpLayer[1]}
Double_t YRightBorderLowerlayer [2] = {YOrigLowLayer[0], YOrigLowLayer[1]}
StripNumberingDirection StripDirection [2] = {LeftToRight, RightToLeft}
Double_t PitchValue [2] = {0.01029019668, 0.0095}
Double_t StripAngle [2] = {+2.5, +0.0}
Int_t FirstStripNumberUpLayer [2] = {0, 0}
Int_t FirstStripNumberLowLayer [2] = {26, 0}
Double_t x_delta [2] = {XYBevelBorder[0] / TMath::Cos(BevelAngleRad), XYBevelBorder[1] / TMath::Cos(BevelAngleRad)}
Double_t y_delta [2] = {XYBevelBorder[0] / TMath::Sin(BevelAngleRad), XYBevelBorder[1] / TMath::Sin(BevelAngleRad)}
Double_t x_delta_top_BP [2] = {XLeftBorder[0], XLeftBorder[1]}
Double_t y_delta_top_BP [2]
Double_t y_delta_bottom_BP [2] = {YBottomBorder[0], YBottomBorder[1]}
Double_t x_delta_bottom_BP [2]
Double_t XDeadZone [2][3]
Double_t YDeadZone [2][3]
const Int_t NStations = 3
const Int_t NMaxModules = 8
const Int_t NModulesInStations [NStations] = {4, 2, 8}
const Double_t XStationPositions [NStations] = {+0.6295, +0.6295, +0.46525}
const Double_t YStationPositions [NStations] = {-4.53225, -4.53225, -4.67125}
const Double_t ZStationPositions [NStations]
const Double_t XModuleShifts [NStations][NMaxModules]
const Double_t YModuleShifts [NStations][NMaxModules]
const Double_t ZModuleShifts [NStations][NMaxModules]
const ModuleType ModulesTypes [NStations][NMaxModules]
const Bool_t ModulesYRotations [NStations][NMaxModules]
const Bool_t ModulesXRotations [NStations][NMaxModules]

Enumeration Type Documentation

◆ ModuleType

enum ModuleType
Enumerator
RIGHT_ANGLED_MODULE 
BEVEL_MODULE 
RIGHT_ANGLED_MODULE_HALF 
BEVEL_MODULE_HALF 

Definition at line 181 of file SiliconConfigCalculate_RunSpring2018.C.

◆ StripNumberingDirection

Enumerator
LeftToRight 
RightToLeft 

Definition at line 109 of file SiliconConfigCalculate_RunSpring2018.C.

Function Documentation

◆ CalculateParameters()

◆ PrintInfo()

◆ SiliconConfigCalculate_RunSpring2018()

void SiliconConfigCalculate_RunSpring2018 ( )

Definition at line 213 of file SiliconConfigCalculate_RunSpring2018.C.

References CalculateParameters(), and PrintInfo().

Here is the call graph for this function:

Variable Documentation

◆ BevelAngleDeg

Double_t BevelAngleDeg = BevelAngleRad * TMath::RadToDeg()

Definition at line 42 of file SiliconConfigCalculate_RunSpring2018.C.

◆ BevelAngleRad

Definition at line 41 of file SiliconConfigCalculate_RunSpring2018.C.

◆ FirstStripNumberLowLayer

Int_t FirstStripNumberLowLayer[2] = {26, 0}

Definition at line 119 of file SiliconConfigCalculate_RunSpring2018.C.

◆ FirstStripNumberUpLayer

Int_t FirstStripNumberUpLayer[2] = {0, 0}

Definition at line 118 of file SiliconConfigCalculate_RunSpring2018.C.

◆ ModulesTypes

◆ ModulesXRotations

const Bool_t ModulesXRotations[NStations][NMaxModules]
Initial value:
= {{false, false, true, true},
{false, false},
{false, false, false, false, true, true, true, true}}

Definition at line 202 of file SiliconConfigCalculate_RunSpring2018.C.

◆ ModulesYRotations

const Bool_t ModulesYRotations[NStations][NMaxModules]
Initial value:
= {{true, false, true, false},
{true, false},
{true, true, false, false, true, true, false, false}}

Definition at line 197 of file SiliconConfigCalculate_RunSpring2018.C.

◆ NMaxModules

const Int_t NMaxModules = 8

Definition at line 149 of file SiliconConfigCalculate_RunSpring2018.C.

◆ NModulesInStations

const Int_t NModulesInStations[NStations] = {4, 2, 8}

Definition at line 151 of file SiliconConfigCalculate_RunSpring2018.C.

◆ NStations

const Int_t NStations = 3

Definition at line 148 of file SiliconConfigCalculate_RunSpring2018.C.

◆ PitchValue

Double_t PitchValue[2] = {0.01029019668, 0.0095}

Definition at line 116 of file SiliconConfigCalculate_RunSpring2018.C.

◆ StripAngle

Double_t StripAngle[2] = {+2.5, +0.0}

Definition at line 117 of file SiliconConfigCalculate_RunSpring2018.C.

◆ StripDirection

◆ x_delta

◆ x_delta_bottom_BP

Double_t x_delta_bottom_BP[2]
Initial value:
= {
constexpr Double_t PiOver2()
Double_t Tan(Double_t)

Definition at line 134 of file SiliconConfigCalculate_RunSpring2018.C.

◆ x_delta_top_BP

Double_t x_delta_top_BP[2] = {XLeftBorder[0], XLeftBorder[1]}

Definition at line 128 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XBevelSize

Double_t XBevelSize = 3.82

Definition at line 38 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XDeadZone

Double_t XDeadZone[2][3]

◆ XLeftBorder

Double_t XLeftBorder[2] = {0.1145, 0.10995}

Definition at line 45 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XLeftBorderLowerlayer

Double_t XLeftBorderLowerlayer[2]

◆ XLeftBorderUpperlayer

Double_t XLeftBorderUpperlayer[2]

◆ XModuleShifts

const Double_t XModuleShifts[NStations][NMaxModules]
Initial value:
= {
{+6.4, -5.9, +5.9, -6.4},
{+5.9, -6.4},
{+12.15, +6.15, -6.15, -12.15, +12.15, +6.15, -6.15, -12.15}
}

Definition at line 163 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XModuleSize

Double_t XModuleSize = 6.3

Definition at line 32 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XOrigLowLayer

Double_t XOrigLowLayer[2] = {XModuleSize - XLeftBorder[0], XModuleSize - XLeftBorder[1]}

Definition at line 75 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XOrigUpLayer

Double_t XOrigUpLayer[2] = {XModuleSize - XLeftBorder[0], XModuleSize - XLeftBorder[1]}

Definition at line 74 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XRightBorder

Double_t XRightBorder[2] = {0.1118, 0.11005}

Definition at line 46 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XRightBorderLowerlayer

Double_t XRightBorderLowerlayer[2]

◆ XRightBorderUpperlayer

Double_t XRightBorderUpperlayer[2]

◆ XShiftFirstStripLowLayer

Double_t XShiftFirstStripLowLayer[2] = {0.00780, 0.0}

Definition at line 60 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XShiftFirstStripUpLayer

Double_t XShiftFirstStripUpLayer[2]
Initial value:
= {
0.00795, 0.0}

Definition at line 58 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XShiftLastStripLowLayer

Double_t XShiftLastStripLowLayer[2] = {0.00675, 0.0}

Definition at line 64 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XShiftLastStripUpLayer

Double_t XShiftLastStripUpLayer[2]
Initial value:
= {
0.00675, 0.0}

Definition at line 62 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XSizeLowLayer

Double_t XSizeLowLayer[2]
Initial value:

Definition at line 86 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XSizeUpLayer

Double_t XSizeUpLayer[2]
Initial value:

Definition at line 81 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XStationPositions

const Double_t XStationPositions[NStations] = {+0.6295, +0.6295, +0.46525}

Definition at line 154 of file SiliconConfigCalculate_RunSpring2018.C.

◆ XYBevelBorder

Double_t XYBevelBorder[2] = {0.1146, 0.1076}

Definition at line 54 of file SiliconConfigCalculate_RunSpring2018.C.

◆ y_delta

◆ y_delta_bottom_BP

Double_t y_delta_bottom_BP[2] = {YBottomBorder[0], YBottomBorder[1]}

Definition at line 133 of file SiliconConfigCalculate_RunSpring2018.C.

◆ y_delta_top_BP

◆ YBevelSize

Double_t YBevelSize = XBevelSize

Definition at line 39 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YBottomBorder

Double_t YBottomBorder[2] = {0.1148, 0.1055}

Definition at line 52 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YDeadZone

Double_t YDeadZone[2][3]
Initial value:

Definition at line 141 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YGapBetweenPartsOfModule

Double_t YGapBetweenPartsOfModule = 0.0035

Definition at line 30 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YLeftBorderLowerlayer

Double_t YLeftBorderLowerlayer[2]

◆ YLeftBorderUpperlayer

Double_t YLeftBorderUpperlayer[2]

◆ YMiddleBorderLowerPart

Double_t YMiddleBorderLowerPart[2] = {0.1147, 0.1055}

Definition at line 50 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YMiddleBorderUpperPart

Double_t YMiddleBorderUpperPart[2] = {0.1121, 0.1055}

Definition at line 49 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YModuleShifts

const Double_t YModuleShifts[NStations][NMaxModules]
Initial value:
= {
{-0.4, +0.1, -0.1, +0.4},
{-6.22, -6.72},
{-0.15, -0.15, -0.15, -0.15, +0.15, +0.15, +0.15, +0.15}
}

Definition at line 169 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YModuleSize

◆ YModuleSizeLowerPart

Double_t YModuleSizeLowerPart = XModuleSize

Definition at line 34 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YModuleSizeUpperPart

Double_t YModuleSizeUpperPart = XModuleSize

Definition at line 33 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YOrigLowLayer

Double_t YOrigLowLayer[2] = {YBottomBorder[0], YBottomBorder[1]}

Definition at line 79 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YOrigUpLayer

◆ YRightBorderLowerlayer

Double_t YRightBorderLowerlayer[2] = {YOrigLowLayer[0], YOrigLowLayer[1]}

Definition at line 107 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YRightBorderUpperlayer

Double_t YRightBorderUpperlayer[2] = {YOrigUpLayer[0], YOrigUpLayer[1]}

Definition at line 106 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YShiftFirstStripLowLayer

Double_t YShiftFirstStripLowLayer[2] = {0.0, 0.0}

Definition at line 67 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YShiftFirstStripUpLayer

Double_t YShiftFirstStripUpLayer[2] = {0.0, 0.0}

Definition at line 66 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YShiftLastStripLowLayer

Double_t YShiftLastStripLowLayer[2] = {0.0, 0.0}

Definition at line 70 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YShiftLastStripUpLayer

Double_t YShiftLastStripUpLayer[2] = {0.0, 0.0}

Definition at line 69 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YSizeLowLayer

◆ YSizeUpLayer

◆ YStationPositions

const Double_t YStationPositions[NStations] = {-4.53225, -4.53225, -4.67125}

Definition at line 155 of file SiliconConfigCalculate_RunSpring2018.C.

◆ YTopBorder

Double_t YTopBorder[2] = {0.1143, 0.1143}

Definition at line 48 of file SiliconConfigCalculate_RunSpring2018.C.

◆ ZModuleShifts

const Double_t ZModuleShifts[NStations][NMaxModules]
Initial value:
= {
{+1.44, +2.17, +2.17, +1.44},
{+4.71, +5.44},
{3.51 , 1.98 , 3.29 , 1.76 , 2.25 , 3.78 , 2.47 , 4.0 }}

Definition at line 175 of file SiliconConfigCalculate_RunSpring2018.C.

◆ ZModuleSize

Double_t ZModuleSize = 0.03

Definition at line 36 of file SiliconConfigCalculate_RunSpring2018.C.

◆ ZStationPositions

const Double_t ZStationPositions[NStations]
Initial value:
= {+10.524, +10.524,
+21.604}

Definition at line 159 of file SiliconConfigCalculate_RunSpring2018.C.