FairRoot/PandaRoot
|
#include <iostream>
#include <iomanip>
#include <fstream>
#include <math.h>
#include <string>
#include <sstream>
#include <vector>
Go to the source code of this file.
Macros | |
#define | outerDiam 84.4000 |
#define | innerDiam 30.0000 |
#define | tubeInnerDiam 1.0000 |
#define | tubeOuterDiam 1.0060 |
#define | wireDiam 0.0020 |
#define | tubeLength 119.6000 |
#define | endcapInnerDiam 0.9000 |
#define | endcapOuterDiam 0.9950 |
#define | endcapLength 0.7200 |
#define | topcapInnerDiam 0.1000 |
#define | topcapLength 0.0800 |
#define | crimppinLength 1.2000 |
#define | beltInnerDiam 0.3100 |
#define | beltLength 0.0800 |
#define | beltDistance 0.2000 |
#define | gassupplyInnerDiam 0.0500 |
#define | gassupplyOuterDiam 0.0800 |
#define | gassupplyLength 3.0000 |
#define | gassupplyTransY 0.4000 |
#define | ringInnerDiam 0.9500 |
#define | ringLength 0.0250 |
#define | springInnerDiam 0.5000 |
#define | springOuterDiam 0.5500 |
#define | springLength 0.1000 |
#define | noseOuterDiam 0.3000 |
#define | noseLength 0.5000 |
#define | safety 0.2000 |
#define | sttCenterX 0. |
#define | sttCenterY 0. |
#define | sttCenterZ 20. |
#define | innerCoverThickness 1.0000 |
#define | outerCoverThickness 1.2000 |
#define | panelthickness 0.1000 |
#define | pipeDiam 4.0800 |
#define | noSupport 0 |
#define | skewangle 3. |
#define | pi 3.141592653589793238512808959406186204433 |
#define | cave "cave" |
#define | sttassembly "stt01assembly" |
#define | innerCylinder "stt01innerCylinder" |
#define | outerCylinder "stt01outerCylinder" |
#define | panel1 "stt01box#1" |
#define | panel2 "stt01box#2" |
#define | panel3 "stt01box#3" |
#define | panel4 "stt01box#4" |
#define | air "air" |
#define | AlBe "carbon" |
#define | mylar "mylar" |
#define | GasMixture "argon" |
#define | W "tungsten" |
#define | ABS "carbon" |
#define | PVC "carbon" |
#define | Cu "copper" |
#define | CuBe "copper" |
#define | GFK "carbon" |
Functions | |
void | writename (char const *name, bool support=false, bool leftside=false) |
void | writemother (char const *name, bool original=true, bool support=false, bool firsttube=false) |
void | writemedium (char *name) |
void | writetube (double inner, double outer, double length) |
void | writehalftube (double inner, double outer, double length) |
void | writepanel (char const *name, bool firstone, double xthick, double ythick, double length, int side) |
void | writetrans (double x, double y, double z) |
void | writerot (double x00, double x01, double x02, double x10, double x11, double x12, double x20, double x21, double x22) |
bool | putStraw (double posX, double posY, double posZ) |
void | plotrotright (double x, double y, double z) |
void | plotrotleft (double x, double y, double z) |
bool | putStrawRotatedShortLeft (double posX, double posY, double posZ, double xvector, double yvector, double zvector, double length) |
bool | putStrawRotatedShortRight (double posX, double posY, double posZ, double xvector, double yvector, double zvector, double length) |
bool | putStrawRotatedLeft (double posX, double posY, double posZ, double xvector, double yvector, double zvector, double length) |
bool | putStrawRotatedRight (double posX, double posY, double posZ, double xvector, double yvector, double zvector, double length) |
void | placeSingleLayerStraightExact (double ringteller) |
void | placeSingleLayerSkewedRight (double ringposition) |
void | placeSingleLayerSkewedLeft (double ringposition) |
void | makeDoubleLayerStraightExact (double &startRadius) |
void | makeSingleLayerStraightExact (double &startRadius) |
void | makeDoubleLayerSkewedRight (double startRadius) |
void | makeDoubleLayerSkewedLeft (double startRadius) |
int | main () |
Variables | |
static int | counter1 |
static int | counter2 |
static int | counter3 |
static int | counter4 |
static int | counter5 |
static int | counter6 |
bool | passive |
double | tubeSeperation = tubeOuterDiam |
static int | tubeteller |
static int | axialtubeteller |
static int | skewedtubeteller |
static int | shortskewedtubeteller |
static double | maximumradius = 0 |
static double | minimumradius = 100000 |
#define ABS "carbon" |
Definition at line 98 of file createSTTwithPassive.C.
Referenced by geom(), and putStraw().
#define air "air" |
Definition at line 93 of file createSTTwithPassive.C.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define AlBe "carbon" |
Definition at line 94 of file createSTTwithPassive.C.
Referenced by main(), and writepanel().
#define beltDistance 0.2000 |
Definition at line 52 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define beltInnerDiam 0.3100 |
Definition at line 50 of file createSTTwithPassive.C.
Referenced by putStraw().
#define beltLength 0.0800 |
Definition at line 51 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define cave "cave" |
Definition at line 83 of file createSTTwithPassive.C.
Referenced by main().
#define crimppinLength 1.2000 |
Definition at line 49 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define Cu "copper" |
Definition at line 100 of file createSTTwithPassive.C.
Referenced by hypGeGeoCOSYsetup2014(), hypGeGeoCOSYsetup2014Actives(), hypGeGeoCOSYsetup2014Passives(), hypGeGeoCOSYTarget(), putStraw(), PndSttSingleStraw::STUrban(), and PndFtsSingleStraw::STUrban().
#define CuBe "copper" |
Definition at line 101 of file createSTTwithPassive.C.
Referenced by putStraw().
#define endcapInnerDiam 0.9000 |
Definition at line 44 of file createSTTwithPassive.C.
Referenced by putStraw().
#define endcapLength 0.7200 |
Definition at line 46 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define endcapOuterDiam 0.9950 |
Definition at line 45 of file createSTTwithPassive.C.
Referenced by putStraw().
#define GasMixture "argon" |
Definition at line 96 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define gassupplyInnerDiam 0.0500 |
Definition at line 53 of file createSTTwithPassive.C.
Referenced by putStraw().
#define gassupplyLength 3.0000 |
Definition at line 55 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define gassupplyOuterDiam 0.0800 |
Definition at line 54 of file createSTTwithPassive.C.
Referenced by putStraw().
#define gassupplyTransY 0.4000 |
Definition at line 56 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define GFK "carbon" |
Definition at line 102 of file createSTTwithPassive.C.
Referenced by putStraw().
#define innerCoverThickness 1.0000 |
Definition at line 72 of file createSTTwithPassive.C.
Referenced by main(), makeSingleLayerStraightExact(), and putStraw().
#define innerCylinder "stt01innerCylinder" |
Definition at line 85 of file createSTTwithPassive.C.
Referenced by main().
#define innerDiam 30.0000 |
Definition at line 32 of file createSTTwithPassive.C.
Referenced by main(), and putStraw().
#define mylar "mylar" |
Definition at line 95 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define noseLength 0.5000 |
Definition at line 63 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define noseOuterDiam 0.3000 |
Definition at line 62 of file createSTTwithPassive.C.
Referenced by putStraw().
#define noSupport 0 |
Definition at line 77 of file createSTTwithPassive.C.
Referenced by main().
#define outerCoverThickness 1.2000 |
Definition at line 73 of file createSTTwithPassive.C.
Referenced by main(), and putStraw().
#define outerCylinder "stt01outerCylinder" |
Definition at line 86 of file createSTTwithPassive.C.
Referenced by main().
#define outerDiam 84.4000 |
Definition at line 31 of file createSTTwithPassive.C.
Referenced by main(), and putStraw().
#define panel1 "stt01box#1" |
Definition at line 87 of file createSTTwithPassive.C.
Referenced by main().
#define panel2 "stt01box#2" |
Definition at line 88 of file createSTTwithPassive.C.
Referenced by main().
#define panel3 "stt01box#3" |
Definition at line 89 of file createSTTwithPassive.C.
Referenced by main().
#define panel4 "stt01box#4" |
Definition at line 90 of file createSTTwithPassive.C.
Referenced by main().
#define panelthickness 0.1000 |
Definition at line 75 of file createSTTwithPassive.C.
Referenced by main(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), and putStraw().
#define pi 3.141592653589793238512808959406186204433 |
Definition at line 81 of file createSTTwithPassive.C.
#define pipeDiam 4.0800 |
Definition at line 76 of file createSTTwithPassive.C.
Referenced by main(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), putStraw(), and writehalftube().
#define PVC "carbon" |
Definition at line 99 of file createSTTwithPassive.C.
Referenced by hypGeGeoCOSYInBeamStuff(), and putStraw().
#define ringInnerDiam 0.9500 |
Definition at line 57 of file createSTTwithPassive.C.
Referenced by putStraw().
#define ringLength 0.0250 |
Definition at line 58 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define safety 0.2000 |
Definition at line 65 of file createSTTwithPassive.C.
Referenced by placeSingleLayerSkewedLeft(), and placeSingleLayerSkewedRight().
#define skewangle 3. |
Definition at line 79 of file createSTTwithPassive.C.
Referenced by placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), plotrotleft(), plotrotright(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define springInnerDiam 0.5000 |
Definition at line 59 of file createSTTwithPassive.C.
Referenced by putStraw(), and putStrawRotatedRight().
#define springLength 0.1000 |
Definition at line 61 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define springOuterDiam 0.5500 |
Definition at line 60 of file createSTTwithPassive.C.
Referenced by putStraw(), and putStrawRotatedRight().
#define sttassembly "stt01assembly" |
Definition at line 84 of file createSTTwithPassive.C.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), putStrawRotatedShortRight(), and writepanel().
#define sttCenterX 0. |
Definition at line 67 of file createSTTwithPassive.C.
#define sttCenterY 0. |
Definition at line 68 of file createSTTwithPassive.C.
#define sttCenterZ 20. |
Definition at line 70 of file createSTTwithPassive.C.
Referenced by main().
#define topcapInnerDiam 0.1000 |
Definition at line 47 of file createSTTwithPassive.C.
Referenced by putStraw().
#define topcapLength 0.0800 |
Definition at line 48 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define tubeInnerDiam 1.0000 |
Definition at line 33 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define tubeLength 119.6000 |
Definition at line 38 of file createSTTwithPassive.C.
Referenced by main(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), and putStraw().
#define tubeOuterDiam 1.0060 |
Definition at line 34 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define W "tungsten" |
Definition at line 97 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define wireDiam 0.0020 |
Definition at line 37 of file createSTTwithPassive.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
int main | ( | void | ) |
Definition at line 2032 of file createSTTwithPassive.C.
References air, AlBe, axialtubeteller, cave, counter1, counter2, counter3, counter4, counter5, counter6, innerCoverThickness, innerCylinder, innerDiam, makeDoubleLayerSkewedLeft(), makeDoubleLayerSkewedRight(), makeDoubleLayerStraightExact(), maximumradius, minimumradius, noSupport, outerCoverThickness, outerCylinder, outerDiam, panel1, panel2, panel3, panel4, panelthickness, passive, pipeDiam, shortskewedtubeteller, skewedtubeteller, sqrt(), sttassembly, sttCenterZ, tubeLength, tubeSeperation, tubeteller, writehalftube(), writemedium(), writemother(), writename(), writepanel(), writerot(), and writetrans().
void makeDoubleLayerSkewedLeft | ( | double | startRadius | ) |
Definition at line 2022 of file createSTTwithPassive.C.
References placeSingleLayerSkewedLeft(), sqrt(), and tubeSeperation.
void makeDoubleLayerSkewedRight | ( | double | startRadius | ) |
Definition at line 2015 of file createSTTwithPassive.C.
References placeSingleLayerSkewedRight(), sqrt(), and tubeSeperation.
void makeDoubleLayerStraightExact | ( | double & | startRadius | ) |
Definition at line 1959 of file createSTTwithPassive.C.
References placeSingleLayerStraightExact(), sqrt(), and tubeSeperation.
void makeSingleLayerStraightExact | ( | double & | startRadius | ) |
Definition at line 1992 of file createSTTwithPassive.C.
References innerCoverThickness, placeSingleLayerStraightExact(), sqrt(), and tubeSeperation.
void placeSingleLayerSkewedLeft | ( | double | ringposition | ) |
Definition at line 1547 of file createSTTwithPassive.C.
References cos(), fabs(), i, limit, panelthickness, pi, pipeDiam, putStrawRotatedLeft(), putStrawRotatedShortLeft(), safety, sin(), skewangle, sqrt(), tubeLength, tubeSeperation, and zpos.
void placeSingleLayerSkewedRight | ( | double | ringposition | ) |
Definition at line 1159 of file createSTTwithPassive.C.
References cos(), fabs(), i, limit, panelthickness, pi, pipeDiam, putStrawRotatedRight(), putStrawRotatedShortRight(), safety, sin(), skewangle, sqrt(), tubeLength, tubeSeperation, and zpos.
void placeSingleLayerStraightExact | ( | double | ringteller | ) |
Definition at line 1108 of file createSTTwithPassive.C.
References i, putStraw(), sqrt(), tubeSeperation, and zpos.
void plotrotleft | ( | double | x, |
double | y, | ||
double | z | ||
) |
void plotrotright | ( | double | x, |
double | y, | ||
double | z | ||
) |
bool putStraw | ( | double | posX, |
double | posY, | ||
double | posZ | ||
) |
Definition at line 199 of file createSTTwithPassive.C.
References ABS, air, axialtubeteller, beltDistance, beltInnerDiam, beltLength, crimppinLength, Cu, CuBe, endcapInnerDiam, endcapLength, endcapOuterDiam, GasMixture, gassupplyInnerDiam, gassupplyLength, gassupplyOuterDiam, gassupplyTransY, GFK, innerCoverThickness, innerDiam, maximumradius, minimumradius, mylar, noseLength, noseOuterDiam, outerCoverThickness, outerDiam, panelthickness, passive, pipeDiam, PVC, ringInnerDiam, ringLength, springInnerDiam, springLength, springOuterDiam, sqrt(), sttassembly, topcapInnerDiam, topcapLength, tubeInnerDiam, tubeLength, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
bool putStrawRotatedLeft | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 766 of file createSTTwithPassive.C.
References air, beltDistance, beltLength, crimppinLength, endcapLength, GasMixture, gassupplyLength, gassupplyTransY, mylar, noseLength, passive, plotrotleft(), ringLength, sin(), skewangle, skewedtubeteller, springLength, sttassembly, topcapLength, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
bool putStrawRotatedRight | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 936 of file createSTTwithPassive.C.
References air, beltDistance, beltLength, crimppinLength, endcapLength, GasMixture, gassupplyLength, gassupplyTransY, mylar, noseLength, passive, plotrotright(), ringLength, sin(), skewangle, skewedtubeteller, springInnerDiam, springLength, springOuterDiam, sttassembly, topcapLength, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
bool putStrawRotatedShortLeft | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 443 of file createSTTwithPassive.C.
References air, beltDistance, beltLength, crimppinLength, endcapLength, GasMixture, gassupplyLength, gassupplyTransY, mylar, noseLength, passive, plotrotleft(), ringLength, shortskewedtubeteller, sin(), skewangle, springLength, sttassembly, topcapLength, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
bool putStrawRotatedShortRight | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 604 of file createSTTwithPassive.C.
References air, beltDistance, beltLength, crimppinLength, endcapLength, GasMixture, gassupplyLength, gassupplyTransY, mylar, noseLength, passive, plotrotright(), ringLength, shortskewedtubeteller, sin(), skewangle, springLength, sttassembly, topcapLength, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
void writehalftube | ( | double | inner, |
double | outer, | ||
double | length | ||
) |
void writemedium | ( | char * | name | ) |
void writemother | ( | char const * | name, |
bool | original = true , |
||
bool | support = false , |
||
bool | firsttube = false |
||
) |
void writename | ( | char const * | name, |
bool | support = false , |
||
bool | leftside = false |
||
) |
void writepanel | ( | char const * | name, |
bool | firstone, | ||
double | xthick, | ||
double | ythick, | ||
double | length, | ||
int | side | ||
) |
void writerot | ( | double | x00, |
double | x01, | ||
double | x02, | ||
double | x10, | ||
double | x11, | ||
double | x12, | ||
double | x20, | ||
double | x21, | ||
double | x22 | ||
) |
void writetrans | ( | double | x, |
double | y, | ||
double | z | ||
) |
void writetube | ( | double | inner, |
double | outer, | ||
double | length | ||
) |
|
static |
Definition at line 105 of file createSTTwithPassive.C.
Referenced by main(), and putStraw().
|
static |
Definition at line 21 of file createSTTwithPassive.C.
Referenced by main(), and writename().
|
static |
Definition at line 22 of file createSTTwithPassive.C.
Referenced by main(), and writemother().
|
static |
Definition at line 23 of file createSTTwithPassive.C.
Referenced by main(), and writemedium().
|
static |
Definition at line 24 of file createSTTwithPassive.C.
Referenced by main(), writehalftube(), and writetube().
|
static |
Definition at line 25 of file createSTTwithPassive.C.
Referenced by main(), and writetrans().
|
static |
Definition at line 26 of file createSTTwithPassive.C.
Referenced by main(), plotrotleft(), plotrotright(), and writerot().
|
static |
Definition at line 108 of file createSTTwithPassive.C.
Referenced by main(), and putStraw().
|
static |
Definition at line 109 of file createSTTwithPassive.C.
Referenced by main(), and putStraw().
bool passive |
Definition at line 28 of file createSTTwithPassive.C.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
|
static |
Definition at line 107 of file createSTTwithPassive.C.
Referenced by main(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
|
static |
Definition at line 106 of file createSTTwithPassive.C.
Referenced by main(), putStrawRotatedLeft(), and putStrawRotatedRight().
double tubeSeperation = tubeOuterDiam |
Definition at line 36 of file createSTTwithPassive.C.
|
static |
Definition at line 104 of file createSTTwithPassive.C.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().