Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hd_geom_query.cc File Reference
#include <stdlib.h>
#include <dlfcn.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <string>
#include <TGeoManager.h>
#include <TGeoVolume.h>
#include <TGeoMaterial.h>
#include <TGeoMedium.h>
#include <TGeoPcon.h>
#include <TGeoPgon.h>
#include <TGeoMatrix.h>
#include <DANA/DApplication.h>

Go to the source code of this file.

Functions

TGeoManager * hddsroot ()
 
const char * md5geom (void)
 
void Usage (void)
 
void ParseCommandLineArguments (int narg, char *argv[])
 
void init_runtime_xml (void)
 
void MakeSharedObjectFromXML (void)
 
TGeoManager * hddsroot_runtime (void)
 
const char * GetMD5Geom (void)
 
const char * md5geom_runtime (void)
 
const char * md5geom_xml (void)
 
int main (int narg, char *argv[])
 

Variables

bool USE_XML = false
 
bool SHOW_ANCESTORY =true
 
bool SHOW_CCDB = true
 
double X_LAB = 20.0
 
double Y_LAB = 20.0
 
double Z_LAB = 650.0
 
int32_t RUN_NUMBER = 30000
 
static void * dlgeom_handle =NULL
 
string HDDS_XML = "$HDDS_HOME/main_HDDS.xml"
 

Function Documentation

const char * GetMD5Geom ( void  )

Definition at line 368 of file hd_geom_query.cc.

References md5geom(), md5geom_runtime(), and USE_XML.

TGeoManager* hddsroot ( )

Referenced by DRootGeom::InitDRGeom(), and main().

TGeoManager * hddsroot_runtime ( void  )

Definition at line 280 of file hd_geom_query.cc.

References dlgeom_handle, and init_runtime_xml().

Referenced by main().

void init_runtime_xml ( void  )

Definition at line 170 of file hd_geom_query.cc.

References dlgeom_handle, MakeSharedObjectFromXML(), and md5geom_xml().

Referenced by hddsroot_runtime(), and md5geom_runtime().

void MakeSharedObjectFromXML ( void  )

Definition at line 230 of file hd_geom_query.cc.

References HDDS_XML.

Referenced by init_runtime_xml().

const char* md5geom ( void  )

Referenced by GetMD5Geom().

const char * md5geom_runtime ( void  )

Definition at line 316 of file hd_geom_query.cc.

References dlgeom_handle, and init_runtime_xml().

Referenced by GetMD5Geom().

const char * md5geom_xml ( void  )

This will get the checksum from the XML directly by running the hdds-md5 program and parsing the output.

Definition at line 343 of file hd_geom_query.cc.

References HDDS_XML, and str.

Referenced by init_runtime_xml().

void ParseCommandLineArguments ( int  narg,
char *  argv[] 
)
void Usage ( void  )

Variable Documentation

void* dlgeom_handle =NULL
static

Definition at line 37 of file hd_geom_query.cc.

Referenced by hddsroot_runtime(), init_runtime_xml(), and md5geom_runtime().

string HDDS_XML = "$HDDS_HOME/main_HDDS.xml"

Definition at line 38 of file hd_geom_query.cc.

Referenced by MakeSharedObjectFromXML(), and md5geom_xml().

int32_t RUN_NUMBER = 30000

Definition at line 35 of file hd_geom_query.cc.

bool SHOW_ANCESTORY =true

Definition at line 30 of file hd_geom_query.cc.

Referenced by main().

bool SHOW_CCDB = true

Definition at line 31 of file hd_geom_query.cc.

Referenced by main().

bool USE_XML = false

Definition at line 29 of file hd_geom_query.cc.

Referenced by GetMD5Geom(), and main().

double X_LAB = 20.0

Definition at line 32 of file hd_geom_query.cc.

Referenced by main().

double Y_LAB = 20.0

Definition at line 33 of file hd_geom_query.cc.

Referenced by main().

double Z_LAB = 650.0

Definition at line 34 of file hd_geom_query.cc.

Referenced by main().