]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
all defined commands moved to base AliModulesCompositionMessenger; not needed
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Nov 2000 21:33:14 +0000 (21:33 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Nov 2000 21:33:14 +0000 (21:33 +0000)
AliGeant4/AliDetConstructionMessenger.cxx [deleted file]
AliGeant4/AliDetConstructionMessenger.h [deleted file]

diff --git a/AliGeant4/AliDetConstructionMessenger.cxx b/AliGeant4/AliDetConstructionMessenger.cxx
deleted file mode 100644 (file)
index dd0bf20..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-// $Id$
-// Category: geometry
-//
-// See the class description in the header file.
-
-#include "AliDetConstructionMessenger.h"
-#include "AliDetConstruction.h"
-#include "AliGlobals.h"
-
-#include <G4UIcmdWithABool.hh>
-
-AliDetConstructionMessenger::AliDetConstructionMessenger(
-                                AliDetConstruction* detConstruction)
-  : fDetConstruction(detConstruction)
-{
-//
-  fSetAllSensitiveCmd
-    = new G4UIcmdWithABool("/aliDet/setAllSensitive", this);
-  fSetAllSensitiveCmd 
-    ->SetGuidance("If true: set all logical volumes sensitive.");
-  fSetAllSensitiveCmd 
-    ->SetGuidance("         (Each logical is volume associated with a sensitive");
-  fSetAllSensitiveCmd 
-    ->SetGuidance("          detector.)");
-  fSetAllSensitiveCmd 
-    ->SetGuidance("If false: only volumes defined with a sensitive tracking");
-  fSetAllSensitiveCmd 
-    ->SetGuidance("          medium are associated with a sensitive detector.");
-  fSetAllSensitiveCmd->SetParameterName("sensitivity", false);
-  fSetAllSensitiveCmd->AvailableForStates(PreInit);  
-
-  fSetReadGeometryCmd 
-    = new G4UIcmdWithABool("/aliDet/readGeometry", this);
-  fSetReadGeometryCmd->SetGuidance("Read geometry from g3calls.dat files");
-  fSetReadGeometryCmd->SetParameterName("readGeometry", false);
-  fSetReadGeometryCmd->AvailableForStates(PreInit);  
-  fSetWriteGeometryCmd 
-    = new G4UIcmdWithABool("/aliDet/writeGeometry", this);
-  fSetWriteGeometryCmd->SetGuidance("Write geometry to g3calls.dat file");
-  fSetWriteGeometryCmd->SetParameterName("writeGeometry", false);
-  fSetWriteGeometryCmd->AvailableForStates(PreInit);   
-}
-
-AliDetConstructionMessenger::AliDetConstructionMessenger() {
-//
-}
-
-AliDetConstructionMessenger::AliDetConstructionMessenger(
-                                const AliDetConstructionMessenger& right)
-{
-//
-  AliGlobals::Exception(
-    "AliDetConstructionMessenger is protected from copying.");
-}
-
-AliDetConstructionMessenger::~AliDetConstructionMessenger() {
-//
-  delete fSetAllSensitiveCmd;
-  delete fSetReadGeometryCmd;
-  delete fSetWriteGeometryCmd;
-}
-
-// operators
-
-AliDetConstructionMessenger& 
-AliDetConstructionMessenger::operator=(const AliDetConstructionMessenger& right)
-{
-  // check assignement to self
-  if (this == &right) return *this;
-
-  AliGlobals::Exception(
-     "AliDetConstructionMessenger is protected from assigning.");
-    
-  return *this;  
-}    
-          
-// public methods
-  
-void AliDetConstructionMessenger::SetNewValue(G4UIcommand* command, G4String newValues)
-{
-// Applies command to the associated object.
-// ---
-
-  if (command == fSetAllSensitiveCmd) {
-    fDetConstruction->SetAllLVSensitive(
-                         fSetAllSensitiveCmd->GetNewBoolValue(newValues));
-  }
-  else if (command == fSetReadGeometryCmd) {
-    fDetConstruction->SetReadGeometry(
-                         fSetReadGeometryCmd->GetNewBoolValue(newValues));
-  }  
-  else if (command == fSetWriteGeometryCmd) {
-    fDetConstruction->SetWriteGeometry(
-                         fSetReadGeometryCmd->GetNewBoolValue(newValues));
-  }    
-}
-
diff --git a/AliGeant4/AliDetConstructionMessenger.h b/AliGeant4/AliDetConstructionMessenger.h
deleted file mode 100644 (file)
index f708221..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-// $Id$
-// Category: geometry
-//
-// Messenger class that defines commands for AliDetConstruction.
-
-#ifndef ALI_DET_CONSTRUCTION_MESSENGER_H
-#define ALI_DET_CONSTRUCTION_MESSENGER_H
-
-#include <G4UImessenger.hh>
-#include <globals.hh>
-
-class AliDetConstruction;
-
-class G4UIcommand;
-class G4UIcmdWithABool;
-
-class AliDetConstructionMessenger: public G4UImessenger
-{
-  public:
-    AliDetConstructionMessenger(AliDetConstruction* detConstruction);
-    // --> protected
-    // AliDetConstructionMessenger();  
-    // AliDetConstructionMessenger(const AliDetConstructionMessenger& right);
-    virtual ~AliDetConstructionMessenger();
-
-    // methods
-    virtual void SetNewValue(G4UIcommand* command, G4String newValues);
-
-  protected:
-    AliDetConstructionMessenger();
-    AliDetConstructionMessenger(const AliDetConstructionMessenger& right);
-
-    // operators
-    AliDetConstructionMessenger& operator=(
-                                const AliDetConstructionMessenger& right);
-  
-  private:
-    // data members
-    AliDetConstruction*  fDetConstruction;     //associated class
-    G4UIcmdWithABool*    fSetAllSensitiveCmd;  //command: setAllSensitive   
-    G4UIcmdWithABool*    fSetReadGeometryCmd;  //command: setReadGeometry   
-    G4UIcmdWithABool*    fSetWriteGeometryCmd; //command: setWriteGeometry   
-};
-
-#endif //ALI_DET_CONSTRUCTION_MESSENGER_H
-