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 120.0000 |
#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 | HeMixture "argon" |
#define | W "copper" |
Functions | |
void | writename (char const *name, bool support=false, bool leftside=false) |
void | writemother (char const *name, bool original=true, bool support=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 |
double | tubeSeperation = tubeOuterDiam |
static int | tubeteller |
static int | axialtubeteller |
static int | skewedtubeteller |
static int | shortskewedtubeteller |
static double | maximumradius = 0 |
static double | minimumradius = 100000 |
#define air "air" |
Definition at line 72 of file createSTT.C.
Referenced by PndDsk::ConstructGeometry(), createRootGeometry_DIRC_fsEVdroplens_MCPs(), createRootGeometry_DIRC_sepEV_MCPs(), and main().
#define AlBe "carbon" |
Definition at line 73 of file createSTT.C.
Referenced by main(), and writepanel().
#define cave "cave" |
Definition at line 62 of file createSTT.C.
Referenced by PndPipe::ConstructGeometry(), PndDsk::ConstructGeometry(), createRootGeometry_beampipe(), createRootGeometry_DIRC_fsEVdroplens_MCPs(), createRootGeometry_DIRC_sepEV_MCPs(), and main().
#define HeMixture "argon" |
Definition at line 75 of file createSTT.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define innerCoverThickness 1.0000 |
Definition at line 51 of file createSTT.C.
Referenced by main(), makeSingleLayerStraightExact(), and putStraw().
#define innerCylinder "stt01innerCylinder" |
Definition at line 64 of file createSTT.C.
Referenced by main().
#define innerDiam 30.0000 |
Definition at line 36 of file createSTT.C.
Referenced by main(), and putStraw().
#define mylar "mylar" |
Definition at line 74 of file createSTT.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define noSupport 0 |
Definition at line 56 of file createSTT.C.
Referenced by main().
#define outerCoverThickness 1.2000 |
Definition at line 52 of file createSTT.C.
Referenced by main(), and putStraw().
#define outerCylinder "stt01outerCylinder" |
Definition at line 65 of file createSTT.C.
Referenced by main().
#define outerDiam 84.4000 |
Definition at line 35 of file createSTT.C.
Referenced by main(), and putStraw().
#define panel1 "stt01box#1" |
Definition at line 66 of file createSTT.C.
Referenced by main().
#define panel2 "stt01box#2" |
Definition at line 67 of file createSTT.C.
Referenced by main().
#define panel3 "stt01box#3" |
Definition at line 68 of file createSTT.C.
Referenced by main().
#define panel4 "stt01box#4" |
Definition at line 69 of file createSTT.C.
Referenced by main().
#define panelthickness 0.1000 |
Definition at line 54 of file createSTT.C.
Referenced by main(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), and putStraw().
#define pi 3.141592653589793238512808959406186204433 |
Definition at line 60 of file createSTT.C.
Referenced by ana_dsinc(), ana_pid(), PndSttMvdGemTracking::CalculatePhi(), PndSttMvdGemTracking::CompareToPreviousPhi(), PndTrkTrack::ComputePhi(), PndTrkTrack::ComputePhiFrom(), create_half_geo(), create_HypSTxy3Cmic_RootGeo5Lay(), create_HypSTxy3Cmic_RootGeo5LayExt(), create_scit_rootgeo_201505(), create_scit_rootgeo_201508(), create_scit_rootgeo_201601(), create_scit_rootgeo_201601_plot(), create_scit_rootgeo_noGaps(), create_scit_rootgeo_pSuperModule(), createdirc(), createdirc_prism(), createdircPix(), createRootGeometry_DIRC(), createRootGeometry_DIRC_fsEVdroplens_MCPs(), createRootGeometry_DIRC_sepEV_06_2013(), createRootGeometry_DIRC_sepEV_MCPs(), createRootGeometry_DIRC_updated_06_2013(), createRootGeometry_RICH(), PndGiBuuJPsiEE::DecayTrack(), PndHypFullAna::Exec(), PndHypSimpleAna::Exec(), PndHypFullIdealAna::Exec(), PndCATracking::Exec(), getXrange(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), plotrotleft(), plotrotright(), PndCAMCTrack::PndCAMCTrack(), PndFTSCAMCTrack::PndFTSCAMCTrack(), PndFtfDirect::ProcessEvent(), runMCsim(), runSim(), sim(), update(), and writehalftube().
#define pipeDiam 4.0800 |
Definition at line 55 of file createSTT.C.
Referenced by main(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), PndSttTrackFinderIdeal::putStraw(), putStraw(), and writehalftube().
#define safety 0.2000 |
Definition at line 44 of file createSTT.C.
Referenced by CreateAlveoleShapesAndMatricesZ(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), and PndFtfDirect::Setup().
#define skewangle 3. |
Definition at line 58 of file createSTT.C.
Referenced by placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), plotrotleft(), plotrotright(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define sttassembly "stt01assembly" |
Definition at line 63 of file createSTT.C.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), putStrawRotatedShortRight(), and writepanel().
#define sttCenterX 0. |
Definition at line 46 of file createSTT.C.
Referenced by PndSttTrackFinderIdeal::plotAllStraws().
#define sttCenterY 0. |
Definition at line 47 of file createSTT.C.
Referenced by PndSttTrackFinderIdeal::plotAllStraws().
#define sttCenterZ 20. |
Definition at line 49 of file createSTT.C.
Referenced by main().
#define tubeInnerDiam 1.0000 |
Definition at line 37 of file createSTT.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define tubeLength 120.0000 |
Definition at line 42 of file createSTT.C.
Referenced by constructGasManifold(), constructMechanicalFrame(), createstt(), main(), placeSingleLayerSkewedLeft(), placeSingleLayerSkewedRight(), and putStraw().
#define tubeOuterDiam 1.0060 |
Definition at line 38 of file createSTT.C.
Referenced by PndSttTrackFinderIdeal::plotAllStraws(), PndSttTrackFinderIdeal::putStraw(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
#define W "copper" |
Definition at line 76 of file createSTT.C.
Referenced by RhoKalmanVtxFitter::Calculate(), DecayTreeFitter::Projection::chiSquare(), GFMaterialEffects::energyLossBrems(), RKTrackRep::extrapolate(), RKTrackRep::getPosMomCov(), PndMvdRadDamList::PndMvdRadDamList(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), putStrawRotatedShortRight(), and RKTrackRep::RKutta().
#define wireDiam 0.0020 |
Definition at line 41 of file createSTT.C.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
int main | ( | void | ) |
Definition at line 1470 of file createSTT.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, pipeDiam, shortskewedtubeteller, skewedtubeteller, sqrt(), sttassembly, sttCenterZ, tubeLength, tubeSeperation, tubeteller, writehalftube(), writemedium(), writemother(), writename(), writepanel(), writerot(), and writetrans().
void makeDoubleLayerSkewedLeft | ( | double | startRadius | ) |
Definition at line 1460 of file createSTT.C.
References placeSingleLayerSkewedLeft(), sqrt(), and tubeSeperation.
Referenced by main().
void makeDoubleLayerSkewedRight | ( | double | startRadius | ) |
Definition at line 1453 of file createSTT.C.
References placeSingleLayerSkewedRight(), sqrt(), and tubeSeperation.
Referenced by main().
void makeDoubleLayerStraightExact | ( | double & | startRadius | ) |
Definition at line 1397 of file createSTT.C.
References placeSingleLayerStraightExact(), sqrt(), and tubeSeperation.
Referenced by main().
void makeSingleLayerStraightExact | ( | double & | startRadius | ) |
Definition at line 1430 of file createSTT.C.
References innerCoverThickness, placeSingleLayerStraightExact(), sqrt(), and tubeSeperation.
void placeSingleLayerSkewedLeft | ( | double | ringposition | ) |
Definition at line 984 of file createSTT.C.
References cos(), fabs(), i, limit, panelthickness, pi, pipeDiam, putStrawRotatedLeft(), putStrawRotatedShortLeft(), safety, sin(), skewangle, sqrt(), tubeLength, tubeSeperation, and zpos.
Referenced by makeDoubleLayerSkewedLeft().
void placeSingleLayerSkewedRight | ( | double | ringposition | ) |
Definition at line 593 of file createSTT.C.
References cos(), fabs(), i, limit, panelthickness, pi, pipeDiam, putStrawRotatedRight(), putStrawRotatedShortRight(), safety, sin(), skewangle, sqrt(), tubeLength, tubeSeperation, and zpos.
Referenced by makeDoubleLayerSkewedRight().
void placeSingleLayerStraightExact | ( | double | ringteller | ) |
Definition at line 542 of file createSTT.C.
References i, putStraw(), sqrt(), tubeSeperation, and zpos.
Referenced by makeDoubleLayerStraightExact(), and makeSingleLayerStraightExact().
void plotrotleft | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 278 of file createSTT.C.
References cos(), counter6, pi, sin(), and skewangle.
Referenced by putStrawRotatedLeft(), and putStrawRotatedShortLeft().
void plotrotright | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 257 of file createSTT.C.
References cos(), counter6, pi, sin(), and skewangle.
Referenced by putStrawRotatedRight(), and putStrawRotatedShortRight().
bool putStraw | ( | double | posX, |
double | posY, | ||
double | posZ | ||
) |
Definition at line 171 of file createSTT.C.
References axialtubeteller, HeMixture, innerCoverThickness, innerDiam, maximumradius, minimumradius, mylar, outerCoverThickness, outerDiam, panelthickness, pipeDiam, sqrt(), sttassembly, tubeInnerDiam, tubeLength, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
Referenced by placeSingleLayerStraightExact().
bool putStrawRotatedLeft | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 410 of file createSTT.C.
References HeMixture, mylar, plotrotleft(), sin(), skewangle, skewedtubeteller, sttassembly, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
Referenced by placeSingleLayerSkewedLeft().
bool putStrawRotatedRight | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 474 of file createSTT.C.
References HeMixture, mylar, plotrotright(), sin(), skewangle, skewedtubeteller, sttassembly, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
Referenced by placeSingleLayerSkewedRight().
bool putStrawRotatedShortLeft | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 295 of file createSTT.C.
References HeMixture, mylar, plotrotleft(), shortskewedtubeteller, sin(), skewangle, sttassembly, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
Referenced by placeSingleLayerSkewedLeft().
bool putStrawRotatedShortRight | ( | double | posX, |
double | posY, | ||
double | posZ, | ||
double | xvector, | ||
double | yvector, | ||
double | zvector, | ||
double | length | ||
) |
Definition at line 352 of file createSTT.C.
References HeMixture, mylar, plotrotright(), shortskewedtubeteller, sin(), skewangle, sttassembly, tubeInnerDiam, tubeOuterDiam, tubeteller, W, wireDiam, writemedium(), writemother(), writename(), writerot(), writetrans(), and writetube().
Referenced by placeSingleLayerSkewedRight().
void writehalftube | ( | double | inner, |
double | outer, | ||
double | length | ||
) |
void writemedium | ( | char * | name | ) |
Definition at line 104 of file createSTT.C.
References counter3.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
void writemother | ( | char const * | name, |
bool | original = true , |
||
bool | support = false |
||
) |
Definition at line 94 of file createSTT.C.
References counter2.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
void writename | ( | char const * | name, |
bool | support = false , |
||
bool | leftside = false |
||
) |
Definition at line 86 of file createSTT.C.
References counter1.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
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 | ||
) |
Definition at line 161 of file createSTT.C.
References counter6.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
void writetrans | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 155 of file createSTT.C.
References counter5.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
void writetube | ( | double | inner, |
double | outer, | ||
double | length | ||
) |
Definition at line 110 of file createSTT.C.
References counter4.
Referenced by putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
|
static |
Definition at line 79 of file createSTT.C.
Referenced by main(), and putStraw().
|
static |
Definition at line 27 of file createSTT.C.
Referenced by PndSttMvdGemTracking::ConsiderCombinatorialEffect(), PndTrkTrackFinder::CountPossibleTracks(), PndTrkLegendreNew::CountTracksInCluster(), PndTrkCombiLegendreTask::CountTracksInCluster(), PndTrkTrackFinder::CountTracksInCluster(), main(), and writename().
|
static |
Definition at line 28 of file createSTT.C.
Referenced by PndSttMvdGemTracking::ConsiderCombinatorialEffect(), main(), Pic_FEP_Eff_lEE(), and writemother().
|
static |
Definition at line 29 of file createSTT.C.
Referenced by main(), Pic_FEP_Eff_lEE(), and writemedium().
|
static |
Definition at line 30 of file createSTT.C.
Referenced by main(), writehalftube(), and writetube().
|
static |
Definition at line 31 of file createSTT.C.
Referenced by main(), and writetrans().
|
static |
Definition at line 32 of file createSTT.C.
Referenced by main(), plotrotleft(), plotrotright(), and writerot().
|
static |
Definition at line 82 of file createSTT.C.
Referenced by main(), and putStraw().
|
static |
Definition at line 83 of file createSTT.C.
Referenced by main(), and putStraw().
|
static |
Definition at line 81 of file createSTT.C.
Referenced by main(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().
|
static |
Definition at line 80 of file createSTT.C.
Referenced by main(), putStrawRotatedLeft(), and putStrawRotatedRight().
double tubeSeperation = tubeOuterDiam |
Definition at line 40 of file createSTT.C.
|
static |
Definition at line 78 of file createSTT.C.
Referenced by main(), putStraw(), putStrawRotatedLeft(), putStrawRotatedRight(), putStrawRotatedShortLeft(), and putStrawRotatedShortRight().