Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_distortion_map.C File Reference
#include "AnnularFieldSim.h"
#include "TTree.h"
#include "TCanvas.h"
+ Include dependency graph for generate_distortion_map.C:

Go to the source code of this file.

Functions

AnnularFieldSimSetupDefaultSphenixTpc (bool twinMe=false, bool useSpacecharge=true)
 
AnnularFieldSimSetupDigitalCurrentSphenixTpc (bool twinMe=false, bool useSpacecharge=true)
 
void TestSpotDistortion (AnnularFieldSim *t)
 
void SurveyFiles (TFileCollection *filelist)
 
void generate_distortion_map (const char *inputname, const char *gainName, const char *outputname, const char *ibfName, const char *primName, bool hasSpacecharge=true, bool isAdc=false, int nSteps=500, bool scanSteps=false)
 
void generate_distortion_map (const char *inputpattern="./evgeny_apr/Smooth*.root", const char *outputfilebase="./apr07_maps/apr07", bool hasSpacecharge=true, bool isDigitalCurrent=false, int nSteps=500)
 

Variables

char field_string [200]
 
char lookup_string [200]
 

Function Documentation

void generate_distortion_map ( const char *  inputname,
const char *  gainName,
const char *  outputname,
const char *  ibfName,
const char *  primName,
bool  hasSpacecharge = true,
bool  isAdc = false,
int  nSteps = 500,
bool  scanSteps = false 
)

Definition at line 19 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 19 of file generate_distortion_map.C

References Data, AnnularFieldSim::GenerateSeparateDistortionMaps(), AnnularFieldSim::GetInnerEdge(), AnnularFieldSim::GetOuterEdge(), i, infile, AnnularFieldSim::load_digital_current(), AnnularFieldSim::load_spacecharge(), AnnularFieldSim::PlotFieldSlices(), AnnularFieldSim::populate_fieldmap(), Acts::Test::pos, printf(), SetupDefaultSphenixTpc(), and AnnularFieldSim::twin.

+ Here is the call graph for this function:

void generate_distortion_map ( const char *  inputpattern = "./evgeny_apr/Smooth*.root",
const char *  outputfilebase = "./apr07_maps/apr07",
bool  hasSpacecharge = true,
bool  isDigitalCurrent = false,
int  nSteps = 500 
)

Definition at line 104 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 104 of file generate_distortion_map.C

References field_string, i, infile, j, lookup_string, Acts::Test::pos, printf(), and SetupDefaultSphenixTpc().

+ Here is the call graph for this function:

AnnularFieldSim * SetupDefaultSphenixTpc ( bool  twinMe = false,
bool  useSpacecharge = true 
)

Definition at line 238 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 238 of file generate_distortion_map.C

References AnnularFieldSim::borrow_epartial_from(), AnnularFieldSim::borrow_rossegger(), field_string, AnnularFieldSim::FromFile, AnnularFieldSim::green, AnnularFieldSim::load3dBfield(), AnnularFieldSim::load_phislice_lookup(), AnnularFieldSim::load_rossegger(), AnnularFieldSim::loadEfield(), lookup_string, AnnularFieldSim::NoSpacecharge, nphi, nz, AnnularFieldSim::PhiSlice, AnnularFieldSim::populate_lookup(), printf(), AnnularFieldSim::save_phislice_lookup(), AnnularFieldSim::set_twin(), AnnularFieldSim::setFlatFields(), and AnnularFieldSim::UpdateEveryN().

Referenced by generate_distortion_map().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SurveyFiles ( TFileCollection *  filelist)

Definition at line 520 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 520 of file generate_distortion_map.C

References i, infile, integral(), j, and printf().

+ Here is the call graph for this function:

void TestSpotDistortion ( AnnularFieldSim t)

Definition at line 229 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 229 of file generate_distortion_map.C

References dummy, AnnularFieldSim::GetStepDistortion(), and AnnularFieldSim::twin.

+ Here is the call graph for this function:

Variable Documentation

char field_string[200]

Definition at line 10 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 10 of file generate_distortion_map.C

Referenced by generate_distortion_map(), SetupDefaultSphenixTpc(), and SetupDigitalCurrentSphenixTpc().

char lookup_string[200]

Definition at line 11 of file generate_distortion_map.C.

View newest version in sPHENIX GitHub at line 11 of file generate_distortion_map.C

Referenced by generate_distortion_map(), SetupDefaultSphenixTpc(), and SetupDigitalCurrentSphenixTpc().