Commit in lcdd/include on MAIN | |||
G4Segmentation.hh | +16 | 1.13 -> 1.14 |
diff -u -r1.13 -r1.14 --- G4Segmentation.hh 5 Sep 2006 23:25:19 -0000 1.13 +++ G4Segmentation.hh 18 Dec 2006 21:18:54 -0000 1.14 @@ -43,6 +43,22 @@
EType getType();
+ const G4String& getTypeString() + { + static G4String typestr; + if ( m_type == eProjective ) { + typestr = "Projective"; + } + else if ( m_type == eNonprojective ) { + typestr = "Nonprojective"; + } + else { + typestr = "Unknown"; + } + + return typestr; + } +
int getBin(int idx) { return m_bins.at( idx );