BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
Mpdshape Class Reference
Inheritance diagram for Mpdshape:
Collaboration diagram for Mpdshape:

Public Member Functions

 Mpdshape ()
 Mpdshape (ofstream *file, std::string volume_name, std::string mother_volume_name, std::string shape, std::string media, std::string points, std::string position="0. 0. 0.", std::string rotation="1. 0. 0. 0. 1. 0. 0. 0. 1.", Int_t segment=0, Int_t mother_segment=0)
 Mpdshape (ofstream *file, std::string volume_name, std::string mother_volume_name, std::string shape, std::string media)
 ~Mpdshape ()
void SetFile (ofstream *file)
void SetVolumeName (std::string name)
void SetMotherVolumeName (std::string name)
void SetShape (std::string shape)
void SetMedia (std::string media)
void SetPoints (std::string points)
void SetPosition (std::string position)
void SetPosition (Double_t x, Double_t y, Double_t z, Int_t precision=6)
void SetPosition (TVector3 vec)
void SetRotation (std::string rotation)
void SetRotation (Double_t p1, Double_t p2, Double_t p3, Double_t p4, Double_t p5, Double_t p6, Double_t p7, Double_t p8, Double_t p9)
void SetRotation (Double_t z, Double_t y1, Double_t z1)
void SetPositionRotation (std::string position, std::string rotation)
void SetSegment (Int_t segment)
void SetMotherSegment (Int_t segment)
void DumpToFile ()
void DumpWithIncrement ()
std::string GetVolumeName () const
Int_t GetSegment () const
void Clear ()
void Fill_TUBE (Double_t length_z, Double_t r_max, Double_t r_min)
void Fill_TUBS (Double_t zmin, Double_t zmax, Double_t rmin, Double_t rmax, Double_t dr_st, Double_t dr_end)
void Fill_TRAP (Double_t x, Double_t X, Double_t yW, Double_t zW, Int_t ra=0)
void Fill_PGON (Double_t zmin, Double_t zmax, Double_t rmin, Double_t rmax, Double_t phi1, Int_t nEdges=12)
void Fill_BOX (Double_t xWidth, Double_t yWidth, Double_t zWidth)
 Mpdshape ()
 Mpdshape (ofstream *file, std::string volume_name, std::string mother_volume_name, std::string shape, std::string media, std::string points, std::string position="0. 0. 0.", std::string rotation="1. 0. 0. 0. 1. 0. 0. 0. 1.", Int_t segment=0, Int_t mother_segment=0)
 Mpdshape (ofstream *file, std::string volume_name, std::string mother_volume_name, std::string shape, std::string media)
 ~Mpdshape ()
void SetFile (ofstream *file)
void SetVolumeName (std::string name)
void SetMotherVolumeName (std::string name)
void SetShape (std::string shape)
void SetMedia (std::string media)
void SetPoints (std::string points)
void SetPosition (std::string position)
void SetPosition (Double_t x, Double_t y, Double_t z, Int_t precision=6)
void SetPosition (TVector3 vec)
void SetRotation (std::string rotation)
void SetRotation (Double_t p1, Double_t p2, Double_t p3, Double_t p4, Double_t p5, Double_t p6, Double_t p7, Double_t p8, Double_t p9)
void SetRotation (Double_t z, Double_t y1, Double_t z1)
void SetPositionRotation (std::string position, std::string rotation)
void SetSegment (Int_t segment)
void SetMotherSegment (Int_t segment)
void DumpToFile ()
void DumpWithIncrement ()
std::string GetVolumeName () const
Int_t GetSegment () const
void Clear ()
void Fill_TUBE (Double_t length_z, Double_t r_max, Double_t r_min)
void Fill_TUBS (Double_t zmin, Double_t zmax, Double_t rmin, Double_t rmax, Double_t dr_st, Double_t dr_end)
void Fill_TRAP (Double_t x, Double_t X, Double_t yW, Double_t zW, Int_t ra=0)
void Fill_PGON (Double_t zmin, Double_t zmax, Double_t rmin, Double_t rmax, Double_t phi1, Int_t nEdges=12)
void Fill_BOX (Double_t xWidth, Double_t yWidth, Double_t zWidth)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Clear (Option_t *="")
virtual TObject * Clone (const char *newname="") const
virtual Int_t Compare (const TObject *obj) const
virtual void Copy (TObject &object) const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual const char * GetName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual const char * GetTitle () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
virtual ULong_t Hash () const
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
virtual TClass * IsA () const
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
virtual Bool_t IsSortable () const
R__ALWAYS_INLINE Bool_t IsZombie () const
virtual void ls (Option_t *option="") const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual void Print (Option_t *option="") const
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Static Public Member Functions

static std::string itoa (Double_t x)
static std::string itoa (Double_t x)
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)

Protected Attributes

ofstream * fFile
std::string fVolumeName
std::string fMotherVolumeName
std::string fShape
std::string fMedia
std::string fPoints
std::string fPosition
std::string fRotation
Int_t fSegment
Int_t fMotherSegment
FairGeoRotation * rot
Protected Attributes inherited from TObject
 kOnlyPrepStep

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)

Detailed Description

Definition at line 10 of file mpdshape.class.C.

Constructor & Destructor Documentation

◆ Mpdshape() [1/6]

Mpdshape::Mpdshape ( )

Definition at line 97 of file mpdshape.class.C.

References rot.

◆ Mpdshape() [2/6]

Mpdshape::Mpdshape ( ofstream * file,
std::string volume_name,
std::string mother_volume_name,
std::string shape,
std::string media,
std::string points,
std::string position = "0. 0. 0.",
std::string rotation = "1. 0. 0. 0. 1. 0. 0. 0. 1.",
Int_t segment = 0,
Int_t mother_segment = 0 )

◆ Mpdshape() [3/6]

Mpdshape::Mpdshape ( ofstream * file,
std::string volume_name,
std::string mother_volume_name,
std::string shape,
std::string media )

Definition at line 138 of file mpdshape.class.C.

References fFile, fMedia, fMotherSegment, fMotherVolumeName, fSegment, fShape, fVolumeName, and rot.

◆ ~Mpdshape() [1/2]

Mpdshape::~Mpdshape ( )

Definition at line 159 of file mpdshape.class.C.

◆ Mpdshape() [4/6]

Mpdshape::Mpdshape ( )

◆ Mpdshape() [5/6]

Mpdshape::Mpdshape ( ofstream * file,
std::string volume_name,
std::string mother_volume_name,
std::string shape,
std::string media,
std::string points,
std::string position = "0. 0. 0.",
std::string rotation = "1. 0. 0. 0. 1. 0. 0. 0. 1.",
Int_t segment = 0,
Int_t mother_segment = 0 )

References rotation.

◆ Mpdshape() [6/6]

Mpdshape::Mpdshape ( ofstream * file,
std::string volume_name,
std::string mother_volume_name,
std::string shape,
std::string media )

◆ ~Mpdshape() [2/2]

Mpdshape::~Mpdshape ( )

Member Function Documentation

◆ Clear() [1/2]

void Mpdshape::Clear ( )

◆ Clear() [2/2]

void Mpdshape::Clear ( )

◆ DumpToFile() [1/2]

void Mpdshape::DumpToFile ( )

Definition at line 161 of file mpdshape.class.C.

References fFile, fMedia, fMotherSegment, fMotherVolumeName, fPoints, fPosition, fRotation, fSegment, fShape, and fVolumeName.

Referenced by DumpWithIncrement().

Here is the caller graph for this function:

◆ DumpToFile() [2/2]

void Mpdshape::DumpToFile ( )

◆ DumpWithIncrement() [1/2]

void Mpdshape::DumpWithIncrement ( )
inline

Definition at line 64 of file mpdshape.class.C.

References DumpToFile(), and fSegment.

Referenced by create_geom_bmnbd(), create_geom_bmnecal(), create_geom_bmnzdc(), and gems_geo_40cm_12st().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpWithIncrement() [2/2]

void Mpdshape::DumpWithIncrement ( )
inline

Definition at line 64 of file mpdshape.class.C.

References DumpToFile(), and fSegment.

Here is the call graph for this function:

◆ Fill_BOX() [1/2]

void Mpdshape::Fill_BOX ( Double_t xWidth,
Double_t yWidth,
Double_t zWidth )

Definition at line 369 of file mpdshape.class.C.

References fPoints.

Referenced by create_geom_bmnbd(), create_geom_bmnecal(), and gems_geo_40cm_12st().

Here is the caller graph for this function:

◆ Fill_BOX() [2/2]

void Mpdshape::Fill_BOX ( Double_t xWidth,
Double_t yWidth,
Double_t zWidth )

◆ Fill_PGON() [1/2]

void Mpdshape::Fill_PGON ( Double_t zmin,
Double_t zmax,
Double_t rmin,
Double_t rmax,
Double_t phi1,
Int_t nEdges = 12 )

Definition at line 300 of file mpdshape.class.C.

References fPoints.

Referenced by gems_geo_40cm_12st().

Here is the caller graph for this function:

◆ Fill_PGON() [2/2]

void Mpdshape::Fill_PGON ( Double_t zmin,
Double_t zmax,
Double_t rmin,
Double_t rmax,
Double_t phi1,
Int_t nEdges = 12 )

◆ Fill_TRAP() [1/2]

void Mpdshape::Fill_TRAP ( Double_t x,
Double_t X,
Double_t yW,
Double_t zW,
Int_t ra = 0 )

Definition at line 316 of file mpdshape.class.C.

References fPoints.

◆ Fill_TRAP() [2/2]

void Mpdshape::Fill_TRAP ( Double_t x,
Double_t X,
Double_t yW,
Double_t zW,
Int_t ra = 0 )

References x.

◆ Fill_TUBE() [1/2]

void Mpdshape::Fill_TUBE ( Double_t length_z,
Double_t r_max,
Double_t r_min )

Definition at line 266 of file mpdshape.class.C.

References fPoints.

Referenced by create_geom_bmnbd().

Here is the caller graph for this function:

◆ Fill_TUBE() [2/2]

void Mpdshape::Fill_TUBE ( Double_t length_z,
Double_t r_max,
Double_t r_min )

◆ Fill_TUBS() [1/2]

void Mpdshape::Fill_TUBS ( Double_t zmin,
Double_t zmax,
Double_t rmin,
Double_t rmax,
Double_t dr_st,
Double_t dr_end )

Definition at line 282 of file mpdshape.class.C.

References fPoints.

◆ Fill_TUBS() [2/2]

void Mpdshape::Fill_TUBS ( Double_t zmin,
Double_t zmax,
Double_t rmin,
Double_t rmax,
Double_t dr_st,
Double_t dr_end )

◆ GetSegment() [1/2]

Int_t Mpdshape::GetSegment ( ) const
inline

Definition at line 72 of file mpdshape.class.C.

References fSegment.

◆ GetSegment() [2/2]

Int_t Mpdshape::GetSegment ( ) const
inline

Definition at line 72 of file mpdshape.class.C.

References fSegment.

◆ GetVolumeName() [1/2]

std::string Mpdshape::GetVolumeName ( ) const
inline

Definition at line 71 of file mpdshape.class.C.

References fVolumeName.

◆ GetVolumeName() [2/2]

std::string Mpdshape::GetVolumeName ( ) const
inline

Definition at line 71 of file mpdshape.class.C.

References fVolumeName.

◆ itoa() [1/2]

std::string Mpdshape::itoa ( Double_t x)
static

Definition at line 182 of file mpdshape.class.C.

References x.

◆ itoa() [2/2]

std::string Mpdshape::itoa ( Double_t x)
static

References x.

◆ SetFile() [1/2]

void Mpdshape::SetFile ( ofstream * file)
inline

Definition at line 32 of file mpdshape.class.C.

References fFile.

◆ SetFile() [2/2]

void Mpdshape::SetFile ( ofstream * file)
inline

Definition at line 32 of file mpdshape.class.C.

References fFile.

◆ SetMedia() [1/2]

void Mpdshape::SetMedia ( std::string media)
inline

Definition at line 36 of file mpdshape.class.C.

References fMedia.

◆ SetMedia() [2/2]

void Mpdshape::SetMedia ( std::string media)
inline

Definition at line 36 of file mpdshape.class.C.

References fMedia.

◆ SetMotherSegment() [1/2]

void Mpdshape::SetMotherSegment ( Int_t segment)
inline

Definition at line 61 of file mpdshape.class.C.

References fMotherSegment.

Referenced by gems_geo_40cm_12st().

Here is the caller graph for this function:

◆ SetMotherSegment() [2/2]

void Mpdshape::SetMotherSegment ( Int_t segment)
inline

Definition at line 61 of file mpdshape.class.C.

References fMotherSegment.

◆ SetMotherVolumeName() [1/2]

void Mpdshape::SetMotherVolumeName ( std::string name)
inline

Definition at line 34 of file mpdshape.class.C.

References fMotherVolumeName.

◆ SetMotherVolumeName() [2/2]

void Mpdshape::SetMotherVolumeName ( std::string name)
inline

Definition at line 34 of file mpdshape.class.C.

References fMotherVolumeName.

◆ SetPoints() [1/2]

void Mpdshape::SetPoints ( std::string points)
inline

Definition at line 37 of file mpdshape.class.C.

References fPoints.

◆ SetPoints() [2/2]

void Mpdshape::SetPoints ( std::string points)
inline

Definition at line 37 of file mpdshape.class.C.

References fPoints.

◆ SetPosition() [1/6]

void Mpdshape::SetPosition ( Double_t x,
Double_t y,
Double_t z,
Int_t precision = 6 )

Definition at line 200 of file mpdshape.class.C.

References fPosition, x, y, and z.

◆ SetPosition() [2/6]

void Mpdshape::SetPosition ( Double_t x,
Double_t y,
Double_t z,
Int_t precision = 6 )

References x, y, and z.

◆ SetPosition() [3/6]

void Mpdshape::SetPosition ( std::string position)
inline

Definition at line 39 of file mpdshape.class.C.

References fPosition.

Referenced by create_geom_bmnbd(), create_geom_bmnecal(), create_geom_bmnzdc(), and gems_geo_40cm_12st().

Here is the caller graph for this function:

◆ SetPosition() [4/6]

void Mpdshape::SetPosition ( std::string position)
inline

Definition at line 39 of file mpdshape.class.C.

References fPosition.

◆ SetPosition() [5/6]

void Mpdshape::SetPosition ( TVector3 vec)

Definition at line 190 of file mpdshape.class.C.

References fPosition.

◆ SetPosition() [6/6]

void Mpdshape::SetPosition ( TVector3 vec)

◆ SetPositionRotation() [1/2]

void Mpdshape::SetPositionRotation ( std::string position,
std::string rotation )
inline

Definition at line 55 of file mpdshape.class.C.

References fPosition, fRotation, and rotation.

◆ SetPositionRotation() [2/2]

void Mpdshape::SetPositionRotation ( std::string position,
std::string rotation )
inline

Definition at line 55 of file mpdshape.class.C.

References fPosition, fRotation, and rotation.

◆ SetRotation() [1/6]

void Mpdshape::SetRotation ( Double_t p1,
Double_t p2,
Double_t p3,
Double_t p4,
Double_t p5,
Double_t p6,
Double_t p7,
Double_t p8,
Double_t p9 )

Definition at line 210 of file mpdshape.class.C.

References fRotation.

◆ SetRotation() [2/6]

void Mpdshape::SetRotation ( Double_t p1,
Double_t p2,
Double_t p3,
Double_t p4,
Double_t p5,
Double_t p6,
Double_t p7,
Double_t p8,
Double_t p9 )

◆ SetRotation() [3/6]

void Mpdshape::SetRotation ( Double_t z,
Double_t y1,
Double_t z1 )

Definition at line 229 of file mpdshape.class.C.

References fRotation, i, rot, and z.

◆ SetRotation() [4/6]

void Mpdshape::SetRotation ( Double_t z,
Double_t y1,
Double_t z1 )

References z.

◆ SetRotation() [5/6]

void Mpdshape::SetRotation ( std::string rotation)
inline

Definition at line 43 of file mpdshape.class.C.

References fRotation, and rotation.

Referenced by create_geom_bmnbd(), create_geom_bmnzdc(), and gems_geo_40cm_12st().

Here is the caller graph for this function:

◆ SetRotation() [6/6]

void Mpdshape::SetRotation ( std::string rotation)
inline

Definition at line 43 of file mpdshape.class.C.

References fRotation, and rotation.

◆ SetSegment() [1/2]

void Mpdshape::SetSegment ( Int_t segment)
inline

Definition at line 60 of file mpdshape.class.C.

References fSegment.

Referenced by create_geom_bmnzdc(), and gems_geo_40cm_12st().

Here is the caller graph for this function:

◆ SetSegment() [2/2]

void Mpdshape::SetSegment ( Int_t segment)
inline

Definition at line 60 of file mpdshape.class.C.

References fSegment.

◆ SetShape() [1/2]

void Mpdshape::SetShape ( std::string shape)
inline

Definition at line 35 of file mpdshape.class.C.

References fShape.

◆ SetShape() [2/2]

void Mpdshape::SetShape ( std::string shape)
inline

Definition at line 35 of file mpdshape.class.C.

References fShape.

◆ SetVolumeName() [1/2]

void Mpdshape::SetVolumeName ( std::string name)
inline

Definition at line 33 of file mpdshape.class.C.

References fVolumeName.

◆ SetVolumeName() [2/2]

void Mpdshape::SetVolumeName ( std::string name)
inline

Definition at line 33 of file mpdshape.class.C.

References fVolumeName.

Member Data Documentation

◆ fFile

ofstream * Mpdshape::fFile
protected

Definition at line 84 of file mpdshape.class.C.

Referenced by Mpdshape(), Mpdshape(), DumpToFile(), Fill_BOX(), and SetFile().

◆ fMedia

std::string Mpdshape::fMedia
protected

Definition at line 88 of file mpdshape.class.C.

Referenced by Mpdshape(), Mpdshape(), Clear(), DumpToFile(), Fill_BOX(), and SetMedia().

◆ fMotherSegment

Int_t Mpdshape::fMotherSegment
protected

Definition at line 93 of file mpdshape.class.C.

Referenced by Mpdshape(), Mpdshape(), Clear(), DumpToFile(), Fill_BOX(), and SetMotherSegment().

◆ fMotherVolumeName

std::string Mpdshape::fMotherVolumeName
protected

Definition at line 86 of file mpdshape.class.C.

Referenced by Mpdshape(), Mpdshape(), Clear(), DumpToFile(), Fill_BOX(), and SetMotherVolumeName().

◆ fPoints

std::string Mpdshape::fPoints
protected

◆ fPosition

std::string Mpdshape::fPosition
protected

◆ fRotation

std::string Mpdshape::fRotation
protected

◆ fSegment

Int_t Mpdshape::fSegment
protected

◆ fShape

std::string Mpdshape::fShape
protected

Definition at line 87 of file mpdshape.class.C.

Referenced by Mpdshape(), Mpdshape(), Clear(), DumpToFile(), Fill_BOX(), and SetShape().

◆ fVolumeName

std::string Mpdshape::fVolumeName
protected

◆ rot

FairGeoRotation * Mpdshape::rot
protected

Definition at line 94 of file mpdshape.class.C.

Referenced by Mpdshape(), Mpdshape(), Mpdshape(), Fill_BOX(), and SetRotation().


The documentation for this class was generated from the following files: