Changeset 57 for MEMPHYS


Ignore:
Timestamp:
Dec 8, 2005, 11:35:25 AM (19 years ago)
Author:
barrand
Message:

G.Barrand : handle digits in visualization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MEMPHYS/HEAD/applications/MEMPHYS_session.cxx

    r54 r57  
    2020#include <G4Lab/TrackingAction.h>
    2121#include <G4Lab/Helpers.h>
     22#include <G4Lab/DigitsCollectionType.h>
    2223
    2324//MEMPHYS:
     
    3132#include "MEMPHYS/MEMPHYSStackingAction.hh"
    3233#include "MEMPHYS/MEMPHYSTrackingAction.hh"
    33 
    34 
     34#include "MEMPHYS/MEMPHYSWCDigi.hh"
    3535
    3636// Create a manager to access the MEMPHYSAnalysis from the callbacks :
     
    8888    session->addManager(analysisManager);
    8989  }
     90  if(session->session()) {
     91    //GB 07/12/2005 : declare DigitsCollections types.
     92    //FIXME : Why can't we be generic as for hits collection ?
     93    //FIXME : From G4VDigiCollection, we can't loop on G4VDigi !
     94    session->addType
     95      (new G4Lab::DigitsCollectionType<MEMPHYSWCDigi>
     96        (*(session->session()),"WCDigitizedCollection"));
     97  }
    9098
    9199  G4UImanager* UI = G4UImanager::GetUIpointer();
     
    133141  }
    134142
     143
    135144  // Main UI loop :
    136145  session->SessionStart();
Note: See TracChangeset for help on using the changeset viewer.