39 for (
Int_t i=0; i<20; i++) fParams[i] = 0.;
53 for (
Int_t i=0;i<10;i++) {
54 if (params)
fParams[i] = params[i];
73 if (mat->GetUniqueID() == (
UInt_t)imat)
break;
75 if (!mat || (mat->GetUniqueID() != (
UInt_t)imat)) {
77 Error(
"TGeoMedium",
"%s, material number %d does not exist",name,imat);
131 return (
char*)name.
Data();
141 out <<
"// Medium: " <<
GetName() << std::endl;
142 out <<
" numed = " <<
fId <<
"; // medium number" << std::endl;
143 out <<
" par[0] = " <<
fParams[0] <<
"; // isvol" << std::endl;
144 out <<
" par[1] = " <<
fParams[1] <<
"; // ifield" << std::endl;
145 out <<
" par[2] = " <<
fParams[2] <<
"; // fieldm" << std::endl;
146 out <<
" par[3] = " <<
fParams[3] <<
"; // tmaxfd" << std::endl;
147 out <<
" par[4] = " <<
fParams[4] <<
"; // stemax" << std::endl;
148 out <<
" par[5] = " <<
fParams[5] <<
"; // deemax" << std::endl;
149 out <<
" par[6] = " <<
fParams[6] <<
"; // epsil" << std::endl;
150 out <<
" par[7] = " <<
fParams[7] <<
"; // stmin" << std::endl;
virtual const char * GetName() const
Returns name of object.
virtual UInt_t GetUniqueID() const
Return the unique object id.
Bool_t TestBit(UInt_t f) const
Base class describing materials.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
TList * GetListOfMaterials() const
TList * GetListOfMedia() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
The TNamed class is the base class for all named ROOT classes.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
char * GetPointerName() const
Provide a pointer name containing uid.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
TGeoMedium()
Default constructor.
R__EXTERN TGeoManager * gGeoManager
virtual ~TGeoMedium()
Destructor.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
Media are used to store properties related to tracking and which are useful only when using geometry ...
char * GetPointerName() const
Provide a pointer name containing uid.
virtual void Add(TObject *obj)
TGeoMedium & operator=(const TGeoMedium &)
assignment operator
const char * Data() const