CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/SimG4CMS/Tracker/src/TrackerG4SimHitNumberingScheme.cc

Go to the documentation of this file.
00001 #include "SimG4CMS/Tracker/interface/TrackerG4SimHitNumberingScheme.h"
00002 #include "SimG4CMS/Tracker/interface/TouchableToHistory.h"
00003 
00004 #include "G4VTouchable.hh"
00005 #include "G4TransportationManager.hh"
00006 #include "G4Navigator.hh"
00007 #include "G4TouchableHistory.hh"
00008 
00009 unsigned int TrackerG4SimHitNumberingScheme::g4ToNumberingScheme(const G4VTouchable* pv){
00010   return ts->touchableToInt(pv);
00011 }
00012 TrackerG4SimHitNumberingScheme::TrackerG4SimHitNumberingScheme(const DDCompactView& cpv,
00013    const GeometricDet& det ){
00014    ts = new TouchableToHistory(cpv,det);
00015 }
00016 void TrackerG4SimHitNumberingScheme::clear(){
00017   if (ts) delete ts;
00018 }