Changeset 104 for MEMPHYS


Ignore:
Timestamp:
Jan 25, 2006, 11:46:28 AM (18 years ago)
Author:
campagne
Message:

remove static variables/functions (JEC)

Location:
MEMPHYS/HEAD/MEMPHYS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MEMPHYS/HEAD/MEMPHYS/DetectorConstruction.hh

    r70 r104  
    4040}
    4141
    42 
    43 //JEC 10/1/06 introduce MEMPHYS
    4442namespace MEMPHYS {
    4543
     
    4947class Analysis;
    5048
    51 enum cyl_location {endcap1,wall,endcap2};
     49
     50enum cyl_location {endcap1,wall,endcap2}; //geographical position of the PMTs
    5251
    5352
     
    6362  void Set20inchPMTGeometry(); //JEC is obsolete according to M.F but code is still valid(?)
    6463  void Set8inchPMTGeometry();
     64  //  void Set12inchPMTGoemetry(); //JEC 25/1/06
    6565  void SetRockGeometry();
    6666  void UpdateGeometry();
     
    7373
    7474  // Related to the WC tube IDs
    75   static G4int GetTubeID(std::string tubeTag){return tubeLocationMap[tubeTag];}
    76   static G4Transform3D GetTubeTransform(int tubeNo){return tubeIDMap[tubeNo];}
     75  //JEC 25/1/06 no more static functions
     76  G4int GetTubeID(std::string tubeTag){return tubeLocationMap[tubeTag];}
     77  G4Transform3D GetTubeTransform(int tubeNo){return tubeIDMap[tubeNo];}
    7778
    7879private:
     
    172173
    173174  // Tube map information
    174   static std::map<int, G4Transform3D> tubeIDMap;
    175   static std::map<int, cyl_location> tubeCylLocation;
    176175  //JEC FIXME: why it works wo using std::hash_map and std::hash?
    177   static hash_map<std::string, int, hash<std::string> >  tubeLocationMap;
     176  //JEC 25/1/06 no more static variables
     177  std::map<int, G4Transform3D> tubeIDMap;
     178  std::map<int, cyl_location> tubeCylLocation;
     179  hash_map<std::string, int, hash<std::string> >  tubeLocationMap;
    178180
    179181  // Variable related to the rock
  • MEMPHYS/HEAD/MEMPHYS/WCSD.hh

    r70 r104  
    1111class G4HCofThisEvent;
    1212
    13 //JEC 10/1/06 introduce MEMPHYS
    1413namespace MEMPHYS {
     14
     15class DetectorConstruction; //JEC 25/1/06
     16
    1517
    1618class WCSD : public G4VSensitiveDetector {
    1719 public:
    18   WCSD(G4String);
     20  WCSD(G4String, DetectorConstruction*); //JEC 25/1/06
    1921  virtual ~WCSD();
    2022 
     
    3032  G4int HCID;
    3133
     34 
     35  DetectorConstruction* MEMPHYSDetConstruction; //JEC 25/1/06
     36
    3237};
    3338
Note: See TracChangeset for help on using the changeset viewer.