56 Int_t thisLevel = level;
57 if (!thisLevel) thisLevel =
fDepth;
97 curNode = curPosition->
GetNode();
98 curPositionId = curPosition->
GetId();
100 Error(
"UpdateTempMatrix",
"No position has been defined");
107 Double_t oldTranslation[] = { 0, 0, 0 };
110 oldTranslation[0] = oldPosition->
GetX();
111 oldTranslation[1] = oldPosition->
GetY();
112 oldTranslation[2] = oldPosition->
GetZ();
124 ,curPosition->
GetX(),curPosition->
GetY(),curPosition->
GetZ()
126 ,newTranslation,newMatrix);
129 snprintf(anum,100,
"%d",num+1);
131 ,newTranslation[0],newTranslation[1],newTranslation[2]
135 newTranslation[0] = oldTranslation[0] + curPosition->
GetX();
136 newTranslation[1] = oldTranslation[1] + curPosition->
GetY();
137 newTranslation[2] = oldTranslation[2] + curPosition->
GetZ();
138 newPosition =
SetPositionAt(curNode,newTranslation[0],newTranslation[1],newTranslation[2]);
145 if (newPosition) newPosition->
SetId(curPositionId);
154 Int_t thisLevel = level;
155 if (!thisLevel) thisLevel =
fDepth;
158 *thisPosition = *newPosition;
176 if (position) position->
Reset(node,x,y,z,matrix);
191 if (position) *position = curPosition;
TVolumePosition * UpdateTempMatrix(TVolumePosition *curPosition)
Pick the "old" position by pieces.
THashList * GetListOfMatrices() const
void ResetPosition(Int_t level=0, TVolumePosition *newPosition=0)
to be documented
Bool_t SetMatrixOwner(Bool_t ownerShips=kTRUE)
virtual Double_t GetY() const
virtual TVolume * GetNode() const
~TVolumeViewIter()
to be documented
virtual void Delete(Option_t *option="")
Remove all objects from the array AND delete all heap based objects.
virtual UInt_t GetId() const
virtual Double_t GetZ() const
virtual void Reset(TDataSet *l=0, Int_t depth=0)
to be documented
virtual Bool_t Notify()
This method must be overridden to handle object notification.
const TRotMatrix * GetMatrix() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Reset(TDataSet *l=0, Int_t depth=0)
TDataSet *l != 0 means the new start pointer depth != 0 means the new value for the depth otherwise t...
Manages a detector rotation matrix.
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
ClassImp(TVolumeViewIter) TVolumeViewIter
to be documented
virtual Double_t GetX(Int_t indx=0) const
virtual TVolumePosition * Reset(TVolume *node=0, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Reset this position *-*-*-*-*-*-*-*-*-*-* *-* =================== *-* x...
virtual const TVolumePosition * GetPosition(Int_t level=0) const
to be documented
virtual void SetId(UInt_t id)
virtual Int_t GetSize() const
virtual TDataSet * operator[](const Char_t *path)
operator [] returns the pointer to the TDataSet if it does contain any data (TTable for example) ...
virtual void UpdateTempMatrix(Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
Update temp matrix.
virtual TVolumePosition * GetPosition() const
TObject * At(Int_t idx) const
R__EXTERN TGeometry * gGeometry
virtual TVolumePosition * SetPositionAt(TVolume *node, Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
to be documented