36 for (
Int_t i=0; i<20; i++) fParams[i] = 0.;
50 for (
Int_t i=0;i<10;i++) {
51 if (params)
fParams[i] = params[i];
70 if (mat->GetUniqueID() == (
UInt_t)imat)
break;
72 if (!mat || (mat->GetUniqueID() != (
UInt_t)imat)) {
74 Error(
"TGeoMedium",
"%s, material number %d does not exist",name,imat);
95 fMaterial(gm.fMaterial)
128 return (
char*)name.
Data();
138 out <<
"// Medium: " <<
GetName() << std::endl;
139 out <<
" numed = " <<
fId <<
"; // medium number" << std::endl;
140 out <<
" par[0] = " <<
fParams[0] <<
"; // isvol" << std::endl;
141 out <<
" par[1] = " <<
fParams[1] <<
"; // ifield" << std::endl;
142 out <<
" par[2] = " <<
fParams[2] <<
"; // fieldm" << std::endl;
143 out <<
" par[3] = " <<
fParams[3] <<
"; // tmaxfd" << std::endl;
144 out <<
" par[4] = " <<
fParams[4] <<
"; // stemax" << std::endl;
145 out <<
" par[5] = " <<
fParams[5] <<
"; // deemax" << std::endl;
146 out <<
" par[6] = " <<
fParams[6] <<
"; // epsil" << std::endl;
147 out <<
" par[7] = " <<
fParams[7] <<
"; // stmin" << std::endl;
TList * GetListOfMaterials() const
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * Data() 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.
TList * GetListOfMedia() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
char * GetPointerName() const
Provide a pointer name containing uid.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
char * GetPointerName() const
Provide a pointer name containing uid.
ClassImp(TGeoMedium) TGeoMedium
Default constructor.
Bool_t TestBit(UInt_t f) const
virtual const char * GetName() const
Returns name of object.
TSubString Strip(EStripType s=kTrailing, char c= ' ') const
Return a substring of self stripped at beginning and/or end.
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".
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual void Add(TObject *obj)
TGeoMedium & operator=(const TGeoMedium &)
assignment operator