git://git.uio.no
/
u
/
mrichter
/
AliRoot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Protection in Physical node
[u/mrichter/AliRoot.git]
/
HMPID
/
AliHMPIDParam.cxx
diff --git
a/HMPID/AliHMPIDParam.cxx
b/HMPID/AliHMPIDParam.cxx
index 4e4eacdeb879bb503afdb42aec791e672e6eb4c1..5ae43cbbb16eb60e592a160a5d37b0a1a569d29a 100644
(file)
--- a/
HMPID/AliHMPIDParam.cxx
+++ b/
HMPID/AliHMPIDParam.cxx
@@
-45,7
+45,11
@@
AliHMPIDParam::AliHMPIDParam():TNamed("HmpidParam","default version")
IdealPosition(i,fM[i]);
} else {
TGeoPhysicalNode *pnode = pne->GetPhysicalNode();
- fM[i]=pnode->GetMatrix();
+ if(pnode) fM[i]=pnode->GetMatrix();
+ else {
+ fM[i]=new TGeoHMatrix;
+ IdealPosition(i,fM[i]);
+ }
}
} else{
fM[i]=new TGeoHMatrix;