Changeset 70


Ignore:
Timestamp:
Jan 12, 2006, 3:58:03 PM (18 years ago)
Author:
campagne
Message:

simplification of the names

Location:
MEMPHYS/HEAD
Files:
21 added
21 deleted
2 edited

Legend:

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

    r68 r70  
    55
    66//MEMPHYS:
    7 #include "MEMPHYS/MEMPHYSAnalysis.hh"
    8 #include "MEMPHYS/MEMPHYSDetectorConstruction.hh"
    9 #include "MEMPHYS/MEMPHYSPhysicsList.hh"
    10 #include "MEMPHYS/MEMPHYSPhysicsMessenger.hh"
    11 #include "MEMPHYS/MEMPHYSPrimaryGeneratorAction.hh"
    12 #include "MEMPHYS/MEMPHYSEventAction.hh"
    13 #include "MEMPHYS/MEMPHYSRunAction.hh"
    14 #include "MEMPHYS/MEMPHYSStackingAction.hh"
    15 #include "MEMPHYS/MEMPHYSTrackingAction.hh"
    16 #include "MEMPHYS/MEMPHYSSteppingAction.hh"
     7#include "MEMPHYS/Analysis.hh"
     8#include "MEMPHYS/DetectorConstruction.hh"
     9#include "MEMPHYS/PhysicsList.hh"
     10#include "MEMPHYS/PhysicsMessenger.hh"
     11#include "MEMPHYS/PrimaryGeneratorAction.hh"
     12#include "MEMPHYS/EventAction.hh"
     13#include "MEMPHYS/RunAction.hh"
     14#include "MEMPHYS/StackingAction.hh"
     15#include "MEMPHYS/TrackingAction.hh"
     16#include "MEMPHYS/SteppingAction.hh"
    1717
    1818
     
    4040  }
    4141  //Book all the histo, tuple
    42   MEMPHYS::MEMPHYSAnalysis* analysis = new MEMPHYS::MEMPHYSAnalysis(*aida);
     42  MEMPHYS::Analysis* analysis = new MEMPHYS::Analysis(*aida);
    4343
    4444
     
    5151
    5252  //JEC 18/11/05 give the "analysis" to fill geometry ITuple
    53   MEMPHYS::MEMPHYSDetectorConstruction* MEMPHYSdetector =
    54     new MEMPHYS::MEMPHYSDetectorConstruction(*analysis);
     53  MEMPHYS::DetectorConstruction* MEMPHYSdetector =
     54    new MEMPHYS::DetectorConstruction(*analysis);
    5555
    5656  runManager->SetUserInitialization(MEMPHYSdetector);
    5757
    58   runManager->SetUserInitialization(new MEMPHYS::MEMPHYSPhysicsList);
     58  runManager->SetUserInitialization(new MEMPHYS::PhysicsList);
    5959
    6060  G4UImanager* UI = G4UImanager::GetUIpointer();
     
    6868
    6969  // Set user action classes
    70   MEMPHYS::MEMPHYSPrimaryGeneratorAction* myGeneratorAction = new MEMPHYS::MEMPHYSPrimaryGeneratorAction(MEMPHYSdetector);
     70  MEMPHYS::PrimaryGeneratorAction* myGeneratorAction = new MEMPHYS::PrimaryGeneratorAction(MEMPHYSdetector);
    7171  runManager->SetUserAction(myGeneratorAction);
    7272
    73   MEMPHYS::MEMPHYSRunAction* myRunAction = new MEMPHYS::MEMPHYSRunAction();
     73  MEMPHYS::RunAction* myRunAction = new MEMPHYS::RunAction();
    7474
    7575  runManager->SetUserAction(myRunAction);
    7676
    7777
    78   runManager->SetUserAction(new MEMPHYS::MEMPHYSEventAction(*analysis,
     78  runManager->SetUserAction(new MEMPHYS::EventAction(*analysis,
    7979                                                   myRunAction,
    8080                                                   MEMPHYSdetector,
    8181                                                   myGeneratorAction));
    82   runManager->SetUserAction(new MEMPHYS::MEMPHYSTrackingAction);
     82  runManager->SetUserAction(new MEMPHYS::TrackingAction);
    8383
    84   runManager->SetUserAction(new MEMPHYS::MEMPHYSStackingAction);
    85   runManager->SetUserAction(new MEMPHYS::MEMPHYSSteppingAction); //JEC 15/12/05 Add user SteppingAction
     84  runManager->SetUserAction(new MEMPHYS::StackingAction);
     85  runManager->SetUserAction(new MEMPHYS::SteppingAction); //JEC 15/12/05 Add user SteppingAction
    8686
    8787  // Initialize G4 kernel
  • MEMPHYS/HEAD/applications/MEMPHYS_session.cxx

    r68 r70  
    2323
    2424//MEMPHYS:
    25 #include "MEMPHYS/MEMPHYSAnalysis.hh"
    26 #include "MEMPHYS/MEMPHYSDetectorConstruction.hh"
    27 #include "MEMPHYS/MEMPHYSPhysicsList.hh"
    28 #include "MEMPHYS/MEMPHYSPhysicsMessenger.hh"
    29 #include "MEMPHYS/MEMPHYSPrimaryGeneratorAction.hh"
    30 #include "MEMPHYS/MEMPHYSEventAction.hh"
    31 #include "MEMPHYS/MEMPHYSRunAction.hh"
    32 #include "MEMPHYS/MEMPHYSStackingAction.hh"
    33 #include "MEMPHYS/MEMPHYSTrackingAction.hh"
    34 #include "MEMPHYS/MEMPHYSSteppingAction.hh"
    35 #include "MEMPHYS/MEMPHYSWCDigi.hh"
     25#include "MEMPHYS/Analysis.hh"
     26#include "MEMPHYS/DetectorConstruction.hh"
     27#include "MEMPHYS/PhysicsList.hh"
     28#include "MEMPHYS/PhysicsMessenger.hh"
     29#include "MEMPHYS/PrimaryGeneratorAction.hh"
     30#include "MEMPHYS/EventAction.hh"
     31#include "MEMPHYS/RunAction.hh"
     32#include "MEMPHYS/StackingAction.hh"
     33#include "MEMPHYS/TrackingAction.hh"
     34#include "MEMPHYS/SteppingAction.hh"
     35#include "MEMPHYS/WCDigi.hh"
    3636
    3737// Create a manager to access the MEMPHYSAnalysis from the callbacks :
     
    3939//JEC 10/1/06 introduce MEMPHYS namespace
    4040namespace MEMPHYS {
    41 class MEMPHYSAnalysisManager
     41
     42class AnalysisManager
    4243  :public virtual IManager
    43   ,public MEMPHYSAnalysis  {
     44  ,public Analysis  {
    4445 public: //IManager
    4546  virtual const std::string& name() const { return fName;}
    4647  virtual void* cast(const std::string& aTo) const {
    47     if(aTo=="MEMPHYS::MEMPHYSAnalysisManager") {
    48       return Lib_SCast(MEMPHYS::MEMPHYSAnalysisManager);
    49     } else if(aTo=="MEMPHYS::MEMPHYSIAnalysis") {
    50       return Lib_SCast(MEMPHYS::MEMPHYSIAnalysis);
    51     } else if(aTo=="MEMPHYS::MEMPHYSAnalysis") {
    52       return Lib_SCast(MEMPHYS::MEMPHYSAnalysis);
     48    if(aTo=="MEMPHYS::AnalysisManager") {
     49      return Lib_SCast(MEMPHYS::AnalysisManager);
     50    } else if(aTo=="MEMPHYS::IAnalysis") {
     51      return Lib_SCast(MEMPHYS::IAnalysis);
     52    } else if(aTo=="MEMPHYS::Analysis") {
     53      return Lib_SCast(MEMPHYS::Analysis);
    5354    } else if(aTo=="IManager") {
    5455      return Lib_SCast(IManager);
     
    5859  }
    5960 public:
    60   MEMPHYSAnalysisManager(AIDA::IAnalysisFactory& aAIDA,bool aBatch)
    61     :MEMPHYSAnalysis(aAIDA,aBatch),fName("MEMPHYS::MEMPHYSAnalysisManager") {}
    62   virtual ~MEMPHYSAnalysisManager(){}
     61  AnalysisManager(AIDA::IAnalysisFactory& aAIDA,bool aBatch)
     62    :Analysis(aAIDA,aBatch),fName("MEMPHYS::AnalysisManager") {}
     63  virtual ~AnalysisManager(){}
    6364 private:
    6465  std::string fName;
     
    8283  G4Lab::UIOnX* session = new G4Lab::UIOnX(*runManager,gui,aArgc,aArgv);
    8384
    84   MEMPHYS::MEMPHYSAnalysisManager* analysisManager = 0;
     85  MEMPHYS::AnalysisManager* analysisManager = 0;
    8586
    8687  AIDA::IAnalysisFactory* aida = G4Lab::UIOnX_aida(*session);
     
    8889    std::cout << "MEMPHYS_session : AIDA not found." << std::endl;
    8990  } else {
    90     analysisManager = new MEMPHYS::MEMPHYSAnalysisManager(*aida,false);
     91    analysisManager = new MEMPHYS::AnalysisManager(*aida,false);
    9192    session->addManager(analysisManager);
    9293  }
     
    9697    //FIXME : From G4VDigiCollection, we can't loop on G4VDigi !
    9798    session->addType
    98       (new G4Lab::DigitsCollectionType<MEMPHYS::MEMPHYSWCDigi>
     99      (new G4Lab::DigitsCollectionType<MEMPHYS::WCDigi>
    99100        (*(session->session()),"WCDigitizedCollection"));
    100101  }
     
    109110 
    110111  //JEC 18/11/05 give the "analysis" to fill geometry ITuple
    111   MEMPHYS::MEMPHYSDetectorConstruction* MEMPHYSdetector =
    112     new MEMPHYS::MEMPHYSDetectorConstruction(*analysisManager);
     112  MEMPHYS::DetectorConstruction* MEMPHYSdetector =
     113    new MEMPHYS::DetectorConstruction(*analysisManager);
    113114
    114115  runManager->SetUserInitialization(MEMPHYSdetector);
    115116
    116   runManager->SetUserInitialization(new MEMPHYS::MEMPHYSPhysicsList);
     117  runManager->SetUserInitialization(new MEMPHYS::PhysicsList);
    117118
    118119  // Set user action classes
    119   MEMPHYS::MEMPHYSPrimaryGeneratorAction* myGeneratorAction =
    120     new MEMPHYS::MEMPHYSPrimaryGeneratorAction(MEMPHYSdetector);
     120  MEMPHYS::PrimaryGeneratorAction* myGeneratorAction =
     121    new MEMPHYS::PrimaryGeneratorAction(MEMPHYSdetector);
    121122  runManager->SetUserAction(myGeneratorAction);
    122123
    123   MEMPHYS::MEMPHYSRunAction* myRunAction = new MEMPHYS::MEMPHYSRunAction();
     124  MEMPHYS::RunAction* myRunAction = new MEMPHYS::RunAction();
    124125
    125126  runManager->SetUserAction(myRunAction);
    126127
    127128
    128   runManager->SetUserAction(new MEMPHYS::MEMPHYSEventAction(*analysisManager,
     129  runManager->SetUserAction(new MEMPHYS::EventAction(*analysisManager,
    129130                                                   myRunAction,
    130131                                                   MEMPHYSdetector,
    131132                                                   myGeneratorAction));
    132   runManager->SetUserAction(new MEMPHYS::MEMPHYSTrackingAction);
     133  runManager->SetUserAction(new MEMPHYS::TrackingAction);
    133134
    134   runManager->SetUserAction(new MEMPHYS::MEMPHYSStackingAction);
     135  runManager->SetUserAction(new MEMPHYS::StackingAction);
    135136
    136   runManager->SetUserAction(new MEMPHYS::MEMPHYSSteppingAction); //JEC 15/12/05 Add user SteppingAction
     137  runManager->SetUserAction(new MEMPHYS::SteppingAction); //JEC 15/12/05 Add user SteppingAction
    137138
    138139  // Initialize G4 kernel
Note: See TracChangeset for help on using the changeset viewer.