]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix effc++ warnings.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Aug 2006 11:41:40 +0000 (11:41 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Aug 2006 11:41:40 +0000 (11:41 +0000)
59 files changed:
EVE/Alieve/EventAlieve.cxx
EVE/Alieve/EventAlieve.h
EVE/Alieve/ITSDigitsInfo.cxx
EVE/Alieve/ITSDigitsInfo.h
EVE/Alieve/ITSModule.cxx
EVE/Alieve/ITSModule.h
EVE/Alieve/MUONDigitsInfo.cxx
EVE/Alieve/MUONDigitsInfo.h
EVE/Alieve/MUONModule.cxx
EVE/Alieve/MUONModule.h
EVE/Alieve/TPCLoader.cxx
EVE/Alieve/TPCLoader.h
EVE/Alieve/TPCLoaderEditor.cxx
EVE/Alieve/TPCLoaderEditor.h
EVE/Alieve/TPCSector2DEditor.cxx
EVE/Alieve/TPCSector2DEditor.h
EVE/Alieve/TPCSector2DGL.cxx
EVE/Alieve/TPCSector2DGL.h
EVE/Alieve/TPCSector3D.cxx
EVE/Alieve/TPCSector3DEditor.cxx
EVE/Alieve/TPCSector3DEditor.h
EVE/Alieve/TPCSector3DGL.cxx
EVE/Alieve/TPCSector3DGL.h
EVE/Alieve/TPCSectorData.cxx
EVE/Alieve/TPCSectorData.h
EVE/Alieve/TPCSectorViz.h
EVE/Alieve/TPCSectorVizEditor.cxx
EVE/Alieve/TPCSectorVizEditor.h
EVE/Alieve/VSDCreator.cxx
EVE/Alieve/VSDCreator.h
EVE/Reve/GeoNode.h
EVE/Reve/PODs.h
EVE/Reve/PointSet.cxx
EVE/Reve/PointSet.h
EVE/Reve/PointSetArrayEditor.cxx
EVE/Reve/PointSetArrayEditor.h
EVE/Reve/QuadSet.cxx
EVE/Reve/QuadSet.h
EVE/Reve/RGTopFrame.cxx
EVE/Reve/RGTopFrame.h
EVE/Reve/RGValuators.h
EVE/Reve/RGeoNodeEditors.cxx
EVE/Reve/RGeoNodeEditors.h
EVE/Reve/RenderElement.cxx
EVE/Reve/RenderElement.h
EVE/Reve/RenderElementEditor.cxx
EVE/Reve/RenderElementEditor.h
EVE/Reve/Reve.h
EVE/Reve/TTreeTools.h
EVE/Reve/Track.cxx
EVE/Reve/Track.h
EVE/Reve/TrackEditors.cxx
EVE/Reve/TrackEditors.h
EVE/Reve/VSD.cxx
EVE/Reve/VSD.h
EVE/Reve/VSDEvent.cxx
EVE/Reve/VSDEvent.h
EVE/Reve/VSDSelector.cxx
EVE/Reve/VSDSelector.h

index 3d1b17f41b50e2e6b29caea61dd5fcd31b75a8c0..26ca89f17666cc432bfa5c46c9c2d8e8fc211b4f 100644 (file)
@@ -49,28 +49,23 @@ void Event::Initialize(Bool_t use_runloader, Bool_t use_esd)
 
 /**************************************************************************/
 
-void Event::Init()
-{
-  fRunLoader = 0;
-  fESDFile   = 0;
-  fESDTree   = 0;
-  fESD       = 0;
-  fESDfriendFile = 0;
-  fESDfriendTree = 0;
-  fESDfriend     = 0;
-}
-
 Event::Event() :
-  EventBase(), fEventId(0)
-{
-  Init();
-}
+  EventBase(),
+
+  fPath (), fEventId   (0),
+  fRunLoader (0),
+  fESDFile       (0), fESDTree       (0), fESD       (0),
+  fESDfriendFile (0), fESDfriendTree (0), fESDfriend (0)
+{}
 
 Event::Event(TString path, Int_t ev) :
   EventBase("AliEVE Event"),
-  fPath(path), fEventId(ev)
+
+  fPath (path), fEventId(ev),
+  fRunLoader (0),
+  fESDFile       (0), fESDTree       (0), fESD       (0),
+  fESDfriendFile (0), fESDfriendTree (0), fESDfriend (0)
 {
-  Init();
   Open();
 }
 
index 0508af03381ba6df929e345e95a313753e173705..e91aa5153d527f10fb463a3c31ddf98fdcebffe2 100644 (file)
@@ -17,7 +17,8 @@ namespace Alieve {
 class Event : public Reve::EventBase
 {
 private:
-  void Init();
+  Event(const Event&);            // Not implemented
+  Event& operator=(const Event&); // Not implemented
 
 protected:
   TString       fPath;
index 349aa8344c9a1ca42eefb950dd354ffce57f1ecd..d76b991e4cf9c82f07c520aab170ac075de75265 100644 (file)
@@ -21,14 +21,14 @@ ClassImp(ITSDigitsInfo)
 
 /**************************************************************************/
 
-void ITSDigitsInfo::Init()
-{
-  fTree = 0;
-  fGeom = 0;
-  fSegSPD = 0;
-  fSegSDD = 0;
-  fSegSSD = 0;
-}
+ITSDigitsInfo::ITSDigitsInfo() :
+  TObject(),
+  fRefCount(0),
+  fSPDmap(), fSDDmap(), fSSDmap(),
+  fTree (0),
+  fGeom (0),
+  fSegSPD(0), fSegSDD(0), fSegSSD(0)
+{}
 
 /**************************************************************************/
 
index a3816e58e6929eb81601edc2200a7ec19fb764b3..8a4fb5f5c8c5aa636cd57ad4c4b8ad2383344544 100644 (file)
@@ -23,8 +23,10 @@ namespace Alieve {
 
 class ITSDigitsInfo : public TObject
 {
+  ITSDigitsInfo(const ITSDigitsInfo&);            // Not implemented
+  ITSDigitsInfo& operator=(const ITSDigitsInfo&); // Not implemented
+
 private:
-  void Init();
   Float_t fSPDZCoord[192];
 
 protected:
@@ -49,10 +51,7 @@ public:
   Int_t        fSDDScaleZ[NSCALE];
   Int_t        fSSDScale[NSCALE];
     
-  ITSDigitsInfo(const Text_t* /*n*/="ITSDigitsInfo", const Text_t* /*t*/=0) :
-    TObject()
-  { Init(); } 
+  ITSDigitsInfo();
   virtual ~ITSDigitsInfo();
 
   void SetTree(TTree* tree);
@@ -61,7 +60,6 @@ public:
 
   void GetSPDLocalZ(Int_t j, Float_t& z);
 
-
   void IncRefCount() { ++fRefCount; }
   void DecRefCount() { --fRefCount; if(fRefCount <= 0) delete this; }
 
index 8f2714132d27a68fa733bdc810e0d4d3d834f38f..8eba2118ce9a9407ad165459e8099f74a029d759 100644 (file)
@@ -22,8 +22,10 @@ ClassImp(ITSModule)
 ITSModule::ITSModule(const Text_t* n, const Text_t* t, Color_t col) :
   Reve::RenderElement(fFrameColor),
   QuadSet(n, t),
-  fInfo  (0),
-  fDetID (-1),
+  fInfo(0),
+  fID(-1), fDetID(-1),
+  fLayer(-1), fLadder(-1), fDet(-1),
+  fDx(0), fDz(0), fDy(0),
   fFrameColor(col)
 {}
 
@@ -31,7 +33,9 @@ ITSModule::ITSModule(Int_t id, ITSDigitsInfo* info, Color_t col) :
   Reve::RenderElement(fFrameColor),
   QuadSet(Form("ITS module %d", id)),
   fInfo  (0),
-  fDetID (-1),
+  fID(-1), fDetID(-1),
+  fLayer(-1), fLadder(-1), fDet(-1),
+  fDx(0), fDz(0), fDy(0),
   fFrameColor(col)
 {
   SetDigitsInfo(info);
index d8dc5cf5390fede971aefc1f5ce4e2c46c396406..49713461fcf36c9bb69f91c4ff1baf995f58b935 100644 (file)
@@ -11,6 +11,9 @@ namespace Alieve {
 class ITSModule : public Reve::RenderElement,
                   public Reve::QuadSet
 {
+  ITSModule(const ITSModule&);            // Not implemented
+  ITSModule& operator=(const ITSModule&); // Not implemented
+
 private:
   void LoadQuads();
 
index 2f051765f9ee7bc1035ec633f309e4457ad168cb..d4e34712c4782bac72e073c4b2982517a75c557b 100644 (file)
@@ -12,24 +12,6 @@ using namespace std;
 
 ClassImp(MUONDigitsInfo)
 
-/**************************************************************************/
-MUONDigitsInfo:: ~MUONDigitsInfo() 
-{
-
-}
-
-/**************************************************************************/
-void MUONDigitsInfo::Init()
-{
-
-  fDTree = 0;
-  fRTree = 0;
-  fTTree = 0;
-
-  //CreateColors();
-
-}
-
 /**************************************************************************/
 void MUONDigitsInfo::SetDTree(TTree* tree)
 {
index 3de6bbb6cf602d7e3721cf6b224132da63c76768..938825ea8a7d2d4f00de603045e39facb76da6fc 100644 (file)
@@ -9,14 +9,13 @@ namespace Alieve {
 
 class MUONDigitsInfo : public TObject
 {
+  MUONDigitsInfo(const MUONDigitsInfo&);            // Not implemented
+  MUONDigitsInfo& operator=(const MUONDigitsInfo&); // Not implemented
 
  public:
 
-  MUONDigitsInfo(const Text_t* /*n*/="MUONDigitsInfo", const Text_t* /*t*/=0) :
-      TObject()
-      { Init(); } 
-  virtual ~MUONDigitsInfo();
+  MUONDigitsInfo() : TObject(), fDTree(0), fRTree(0), fTTree(0) {}
+  virtual ~MUONDigitsInfo() {}
 
   void SetDTree(TTree* tree);
   void SetRTree(TTree* tree);
@@ -32,7 +31,6 @@ class MUONDigitsInfo : public TObject
   
  private:
 
-  void Init();
   void CreateColors();
 
  protected:
index f552732e78690593c431dd4ae82971ea9bfbc7bd..2fd0eb0bf25147724c1b3874d7867c2777b5fa99 100644 (file)
@@ -32,44 +32,28 @@ using namespace std;
 
 ClassImp(MUONModule)
 
-/**************************************************************************/
-MUONModule:: ~MUONModule() 
-{
-
-}
-
-/**************************************************************************/
-void MUONModule::Init()
-{
-
-  fInfo = 0;
-  fID = -1;
-
-}
-
 /**************************************************************************/
 
 MUONModule::MUONModule(const Text_t* n, const Text_t* t, Color_t col) :
   Reve::RenderElement(fFrameCol),
   QuadSet(n, t),
-  fFrameCol(col)
-{
-  Init();
-}
+  fInfo(0),
+  fID(-1), fCath(0),
+  fShowDigits(0), fShowClusters(0), fShowTracks(0),
+  fFrameCol(col),
+  fDetElemId(-1)
+{}
 
 MUONModule::MUONModule(Int_t id, Int_t cath, MUONDigitsInfo* info, Bool_t dig, Bool_t clus, Color_t col ) :
   Reve::RenderElement(fFrameCol),
   QuadSet(Form("M-DetElemId %d C%1d",id,cath)),
-  fFrameCol(col)
+  fInfo(info),
+  fID(-1), fCath(0),
+  fShowDigits(dig), fShowClusters(clus), fShowTracks(0),
+  fFrameCol(col),
+  fDetElemId(-1)
 {
 
-  Init();
-  
-  fInfo = info;
-
-  fShowDigits = dig;
-  fShowClusters = clus;
-
   if (!fShowDigits && !fShowClusters) fShowTracks = 1;
 
   if (fShowClusters) SetName(Form("M-DetElemId %d",id));
index 6602cdd4c01e6b03ec3d9acab54dd2b2eb60c02e..ea3f2c03beb4f85af3a200a251bfa412d8879f9e 100644 (file)
@@ -11,18 +11,19 @@ namespace Alieve {
 class MUONModule : public Reve::RenderElement,
                    public Reve::QuadSet
 {
+  MUONModule(const MUONModule&);            // Not implemented
+  MUONModule& operator=(const MUONModule&); // Not implemented
 
 public:
 
   MUONModule(const Text_t* n="MUONModule", const Text_t* t=0, Color_t col=2);
   MUONModule(Int_t id, Int_t cath, MUONDigitsInfo* info, Bool_t dig, Bool_t clus, Color_t col=2);
-  virtual ~MUONModule();
+  virtual ~MUONModule() {}
 
   virtual void SetID(Int_t id, Int_t cath);
 
 private:
     
-  void Init();
   void LoadQuadsChambers(Int_t chamber1, Int_t chamber2, Int_t delElemId = -1, Int_t cat = -1);
   void LoadQuadsDigits();
   void LoadQuadsClusters();
index f792e7dbe56a3566aae5358d478dca7ad057ba2f..c38c15c92d987f1095e4557a0ed1ee9fcab04414 100644 (file)
@@ -23,6 +23,7 @@ ClassImp(TPCLoader)
 TPCLoader::TPCLoader(const Text_t* n, const Text_t* t) :
   RenderElementList(n, t),
 
+  fFile(),
   fEvent(-1),
   fDoubleSR(kFALSE),
 
@@ -33,7 +34,8 @@ TPCLoader::TPCLoader(const Text_t* n, const Text_t* t) :
   fSec2Ds(36),
   fSec3Ds(36),
 
-  fSetInitSectorParams(kFALSE)
+  fSetInitSectorParams(kFALSE),
+  fInitMinTime(0), fInitMaxTime(460), fInitThreshold(5)
 {}
 
 TPCLoader::~TPCLoader()
index 2a8b050625607cad897417e7003ce7e740b616da..6498159a3b1c3173b6f2fefa98619cbd50abfcc4 100644 (file)
@@ -17,6 +17,9 @@ class TPCLoader : public Reve::RenderElementList
 {
   friend class TPCLoaderEditor;
 
+  TPCLoader(const TPCLoader&);            // Not implemented
+  TPCLoader& operator=(const TPCLoader&); // Not implemented
+
 protected:
   TString           fFile;
   Int_t             fEvent;
index 3a4314fa536db9610da77084fd388c62a677f73f..bef26f50aee144daef1e1e401c19b4fc58588364 100644 (file)
@@ -25,11 +25,23 @@ using namespace Alieve;
 
 ClassImp(TPCLoaderEditor)
 
-TPCLoaderEditor::TPCLoaderEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
+TPCLoaderEditor::TPCLoaderEditor(const TGWindow *p, Int_t id,
+                                 Int_t width, Int_t height,
                                 UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+
+  fM (0),
+
+  fFile     (0),
+  fOpenFile (0),
+
+  fEvent    (0),
+  fDoubleSR (0),
+
+  fUpdateSectors   (0),
+  fCreateSectors3D (0),
+  fDeleteSectors3D (0)
 {
-  fM = 0;
   MakeTitle("TPCLoader");
 
   Int_t labelW = 42;
index 5af8a3f0b6365d508b83462ccb0bd4e04cacbfc3..79fc364c35819ac4b42d89ccf3cbea2936300126 100644 (file)
@@ -21,6 +21,9 @@ class TPCLoader;
 
 class TPCLoaderEditor : public TGedFrame
 {
+  TPCLoaderEditor(const TPCLoaderEditor&);            // Not implemented
+  TPCLoaderEditor& operator=(const TPCLoaderEditor&); // Not implemented
+
 protected:
   TPCLoader* fM; // fModel dynamic-casted to TPCLoaderEditor
 
index a188bae94504718711800b31647bccd61b18ee7d..dcd2ebb121699ac1dc6b039946b98007142b4f77 100644 (file)
@@ -22,11 +22,13 @@ using namespace Alieve;
 
 ClassImp(TPCSector2DEditor)
 
-TPCSector2DEditor::TPCSector2DEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
+TPCSector2DEditor::TPCSector2DEditor(const TGWindow *p, Int_t id,
+                                     Int_t width, Int_t height,
                                     UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+  fM(0),
+  fShowMax(0), fAverage(0), fUseTexture(0)
 {
-  fM = 0;
   MakeTitle("TPCSector2D");
 
   fUseTexture = new TGCheckButton(this, "UseTexture");
index 32a9c5294cb4ec74a929e2b83f7acfb38066dd17..c26af5b1d25687f05fb426d3cb15ab285fdf24ea 100644 (file)
@@ -18,6 +18,9 @@ class TPCSector2D;
 
 class TPCSector2DEditor : public TGedFrame
 {
+  TPCSector2DEditor(const TPCSector2DEditor&);            // Not implemented
+  TPCSector2DEditor& operator=(const TPCSector2DEditor&); // Not implemented
+
 protected:
   TPCSector2D* fM; // fModel dynamic-casted to TPCSector2DEditor
 
index d1ba4dbc99ee20ad927b25595df4ece90d853c44..3613fa398843ab7c9b61c2dfdc14745305d49c68 100644 (file)
@@ -27,15 +27,16 @@ const Int_t TPCSector2DGL::fgkTextureByteSize = 4*256*128;
 
 /**************************************************************************/
 
-TPCSector2DGL::TPCSector2DGL() : TGLObject()
-{
-  fSector     = 0;
-  fSectorData = 0;
-
-  fImage   = 0;
-  fTexture = 0;
-  fRTS     = 0;
-}
+TPCSector2DGL::TPCSector2DGL() :
+  TGLObject(),
+  
+  fSector     (0),
+  fSectorData (0),
+
+  fImage   (0),
+  fTexture (0),
+  fRTS     (0)
+{}
 
 TPCSector2DGL::~TPCSector2DGL()
 {
index 5bd5cc0079db42162908936fecb1f627b524f0e0..4822346832f1a22938b7307401d751a4df1adaeb 100644 (file)
@@ -13,6 +13,9 @@ namespace Alieve {
 
 class TPCSector2DGL : public TGLObject
 {
+  TPCSector2DGL(const TPCSector2DGL&);            // Not implemented
+  TPCSector2DGL& operator=(const TPCSector2DGL&); // Not implemented
+
 protected:
   virtual void DirectDraw(const TGLDrawFlags & flags) const;
 
index 602e003a1f245492571fa877cac402991719ae3b..b986d57301a3670b7170cda3d621e9dc6f17c189 100644 (file)
@@ -28,6 +28,9 @@ TPCSector3D::TPCSector3D(const Text_t* n, const Text_t* t) :
   fPointFrac    (0.25),
   fPointSize    (3),
 
+  fPointSetOn     (0),
+  fPointSetMaxVal (0),
+
   fDriftVel  (1),
   fZStep     (250.0/450)
 {
index 8cf29ef231d463c52d0eb4951da80233a9db8a8a..27fcd1ab844f04b9b259d1b581f305fde09676a6 100644 (file)
@@ -24,11 +24,13 @@ using namespace Alieve;
 
 ClassImp(TPCSector3DEditor)
 
-TPCSector3DEditor::TPCSector3DEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
+TPCSector3DEditor::TPCSector3DEditor(const TGWindow *p, Int_t id,
+                                     Int_t width, Int_t height,
                                      UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+  fM(0),
+  fRnrFrame(0), fDriftVel(0), fPointFrac(0), fPointSize(0)
 {
-  fM = 0;
   MakeTitle("TPCSector3D");
 
   Int_t labelW = 60;
index c5fd302bf4cc8ca87f74800adb6eafb2a00ae0ac..ca556490729eb6db932f563897e5a358cc8e1af7 100644 (file)
@@ -20,6 +20,9 @@ class TPCSector3D;
 
 class TPCSector3DEditor : public TGedFrame
 {
+  TPCSector3DEditor(const TPCSector3DEditor&);            // Not implemented
+  TPCSector3DEditor& operator=(const TPCSector3DEditor&); // Not implemented
+
 protected:
   TPCSector3D*      fM; // fModel dynamic-casted to TPCSector3DEditor
 
index 89a34a52ffcfc096123670633c039a5c7be40cc7..f29f0a990aa7e5cd906d0be4ce8fa515521f8151 100644 (file)
@@ -22,10 +22,12 @@ using namespace Alieve;
 
 ClassImp(TPCSector3DGL)
 
-TPCSector3DGL::TPCSector3DGL() : fSector(0), fBoxRnr(0)
+TPCSector3DGL::TPCSector3DGL() :
+  TGLObject(),
+  fSector(0), fBoxRnr(0),
+  fRTS(0)
 {
   // fCached = false; // Disable display list.
-  fRTS = 0;
 }
 
 TPCSector3DGL::~TPCSector3DGL()
index b8aa5a0fed58a9c8a7cfd96f1bf8d0d576c88156..972795fa894c2c351e5efbb5573a36773289ab79 100644 (file)
@@ -17,6 +17,9 @@ class TPCSector3D;
 
 class TPCSector3DGL : public TGLObject
 {
+  TPCSector3DGL(const TPCSector3DGL&);            // Not implemented
+  TPCSector3DGL& operator=(const TPCSector3DGL&); // Not implemented
+
 protected:
   TPCSector3D*    fSector; // fModel dynamic-casted to TPCSector3DGL
   Reve::BoxSetGL* fBoxRnr;
index 50a50fc4e6d8eada4b3f39ed4d9864e114b6c784..0c5e0aa89c3717f555c8ef591980b8c24c10d57b 100644 (file)
@@ -154,9 +154,9 @@ void TPCSectorData::NewBlock()
 /**************************************************************************/
 
 TPCSectorData::TPCSectorData(Int_t sector, Int_t bsize) :
-  fSectorID(sector), fNPadsFilled(0),
-  fBlockSize(bsize), fBlockPos(0),
-  fCurrentRow(0), fCurrentPad(0), fCurrentPos(0),
+  fSectorID(sector), fNPadsFilled(0), fPads(),
+  fBlockSize(bsize), fBlockPos(0),    fBlocks(),
+  fCurrentRow(0), fCurrentPad(0), fCurrentPos(0), fCurrentStep(0),
   fPadRowHackSet(0)
 {
   if(fgParam == 0) InitStatics();
@@ -446,9 +446,15 @@ void TPCSectorData::RowIterator::Test()
 
 ClassImp(TPCSectorData::SegmentInfo)
 
-TPCSectorData::SegmentInfo::SegmentInfo()
+TPCSectorData::SegmentInfo::SegmentInfo() :
+  TObject(),
+
+  fPadWidth(0), fPadHeight(0),
+  fRLow(0), fNRows(0), fFirstRow(0), fLastRow(0),
+  fNMaxPads(0),
+  fNYSteps(0)
 {
-  memset(this, sizeof(SegmentInfo), 0);
+  memset(fYStep, sizeof(fYStep), 0);
 }
 
 /**************************************************************************/
index 6fe531ac6c79f21191e7b02cac96f349a4631d7e..47d5b8f5bd0bb07bb03cc549eccfe6d40a475c60 100644 (file)
@@ -15,6 +15,9 @@ namespace Alieve {
 
 class TPCSectorData : public TObject
 {
+  TPCSectorData(const TPCSectorData&);            // Not implemented
+  TPCSectorData& operator=(const TPCSectorData&); // Not implemented
+
 public:
 
   class PadData
@@ -47,6 +50,17 @@ public:
       fBeg(pd.Data()), fEnd(pd.Data() + pd.Length()), fPos(pd.Data()),
       fTime(-1), fSignal(-1), fThreshold(thr), fNChunk(0)
     {}
+    PadIterator(const PadIterator& i) :
+      fBeg(i.fBeg), fEnd(i.fEnd), fPos(i.fPos),
+      fTime(i.fTime), fSignal(i.fSignal), fThreshold(i.fThreshold), fNChunk(i.fNChunk)
+    {}
+    virtual ~PadIterator() {}
+
+    PadIterator& operator=(const PadIterator& i) {
+      fBeg = i.fBeg; fEnd = i.fEnd; fPos = i.fPos;
+      fTime = i.fTime; fSignal = i.fSignal; fThreshold = i.fThreshold; fNChunk = i.fNChunk;
+      return *this;
+    }
 
     Bool_t Next();
     void   Reset();
@@ -74,6 +88,15 @@ public:
       fPadArray(first), fNPads(npads),
       fPad(-1)
     {}
+    RowIterator(const RowIterator& i) :
+      PadIterator(i),
+      fPadArray(i.fPadArray), fNPads(i.fNPads), fPad(i.fPad)
+    {}
+
+    RowIterator& operator=(const RowIterator& i) {
+      fPadArray = i.fPadArray; fNPads = i.fNPads; fPad = i.fPad;
+      return *this;
+    }
 
     Bool_t NextPad();
     void   ResetRow();
index 20b247fb2c4d8ebc834598bfa934191ca4767cc7..830872256a7bb7a7a22d78cf06d05f4d99125108 100644 (file)
@@ -31,6 +31,9 @@ class TPCSectorViz : public Reve::RenderElement,
   friend class TPCSector3DEditor;
   friend class TPCSector3DGL;
 
+  TPCSectorViz(const TPCSectorViz&);            // Not implemented
+  TPCSectorViz& operator=(const TPCSectorViz&); // Not implemented
+
 protected:
   TPCData*    fTPCData; 
   Int_t       fSectorID;
index ee1e5f18f859267f55533196bc885617fc59f05d..0f43865ca4c6e2336d535b183f08f60159aeb8e5 100644 (file)
@@ -24,11 +24,16 @@ using namespace Alieve;
 
 ClassImp(TPCSectorVizEditor)
 
-TPCSectorVizEditor::TPCSectorVizEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
-            UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+TPCSectorVizEditor::TPCSectorVizEditor(const TGWindow *p, Int_t id,
+                                       Int_t width, Int_t height,
+                                       UInt_t options, Pixel_t back) :
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+  fM(0),
+  fSectorID  (0), fTrans   (0),
+  fRnrInn    (0), fRnrOut1 (0), fRnrOut2(0),
+  fThreshold (0), fMaxVal  (0),
+  fTime      (0)
 {
-  fM = 0;
   MakeTitle("TPCSectorViz");
 
   Int_t labelW = 60;
index b15bc41427318cbaa606383c0c0f2f9325b689ba..ac9a97c1e93c42f473d351f1cdd4e1b2af94414d 100644 (file)
@@ -22,6 +22,9 @@ class TPCSectorViz;
 
 class TPCSectorVizEditor : public TGedFrame
 {
+  TPCSectorVizEditor(const TPCSectorVizEditor&);            // Not implemented
+  TPCSectorVizEditor& operator=(const TPCSectorVizEditor&); // Not implemented
+
 protected:
   TPCSectorViz* fM; // fModel dynamic-casted to TPCSectorVizEditor
 
@@ -33,7 +36,7 @@ protected:
   TGCheckButton*    fRnrOut2;
 
   Reve::RGValuator* fThreshold;
-  Reve::RGValuator* fMaxVal;
+  Reve::RGValuator* fMaxVal;   
 
   Reve::RGDoubleValuator* fTime;
 
index 07cb98be7ebb7eb3012f25162dcd4232f9d6f820..d253c3b7efed6f597d3c415cd33a650030afc0a1 100644 (file)
@@ -37,16 +37,21 @@ using namespace std;
 
 ClassImp(VSDCreator)
 
-void VSDCreator::init()
-{
-  mKineType = KT_Standard;
-  mDataDir  = ".";
+VSDCreator::VSDCreator(const Text_t* name, const Text_t* title) :
+  VSD(name, title),
+
+  mKineType (KT_Standard),
+  mDataDir  ("."),
+  mEvent    (0),
   
-  mTPCHitRes = 2;
-  mTRDHitRes = 2;
+  mTPCHitRes (2),
+  mTRDHitRes (2),
 
-  pRunLoader = 0;
+  mDebugLevel (0),
+  mGenInfoMap (),
 
+  pRunLoader (0)
+{
   // Particles not in ROOT's PDG database occuring in ALICE
   AliPDG::AddParticlesToPdgDataBase();
   {
@@ -73,17 +78,6 @@ void VSDCreator::init()
   // AliKalmanTrack::SetConvConst(1); 
 }
 
-VSDCreator::VSDCreator()
-{
-  init();
-}
-
-VSDCreator::VSDCreator(const Text_t* name, const Text_t* title) :
-  VSD(name, title)
-{
-  init();
-}
-
 /**************************************************************************/
 
 void VSDCreator::CreateVSD(const Text_t* data_dir, Int_t event,
index bdf85fa2942b34536fbe19ddd272aa72c3dc4b4b..aa196a41d1a780429d967297fd5b454b5ec811d3 100644 (file)
@@ -14,6 +14,9 @@ namespace Alieve {
 
 class VSDCreator : public Reve::VSD
 {
+  VSDCreator(const VSDCreator&);            // Not implemented
+  VSDCreator& operator=(const VSDCreator&); // Not implemented
+
 public:
   enum KineType_e { KT_Standard, KT_ProtonProton };
 
@@ -26,18 +29,15 @@ protected:
   TString       mDataDir;   // X{G}
   Int_t         mEvent;     // X{G}
 
-  Float_t       mTRDHitRes;  // X{gs} 
   Float_t       mTPCHitRes;  // X{gs} 
+  Float_t       mTRDHitRes;  // X{gs} 
 
   Int_t         mDebugLevel;
 
   std::map<Int_t, Reve::GenInfo*> mGenInfoMap; //!
 
-  void init();
-
 public:
-  VSDCreator();
-  VSDCreator(const Text_t* name, const Text_t* title="");
+  VSDCreator(const Text_t* name="Alieve::VSDCreator", const Text_t* title="");
   virtual ~VSDCreator() {}
 
   void CreateVSD(const Text_t* data_dir, Int_t event,
index f0687d2648f0cbbbf972ac4250bd6185add322ca..fd272da55e36cea7a035462fa42097504c593011 100644 (file)
@@ -17,6 +17,9 @@ class GeoNodeRnrEl : public RenderElementListBase,
 {
   friend class GeoNodeRnrElEditor;
 
+  GeoNodeRnrEl(const GeoNodeRnrEl&);            // Not implemented
+  GeoNodeRnrEl& operator=(const GeoNodeRnrEl&); // Not implemented
+
 protected:
   TGeoNode *fNode;
 
@@ -51,6 +54,9 @@ public:
 
 class GeoTopNodeRnrEl : public GeoNodeRnrEl
 {
+  GeoTopNodeRnrEl(const GeoTopNodeRnrEl&);            // Not implemented
+  GeoTopNodeRnrEl& operator=(const GeoTopNodeRnrEl&); // Not implemented
+
 protected:
   TGeoManager* fManager;
   TGeoHMatrix* fGlobalTrans;
index 5ce8d116fd5fb53d363889e7baf535fc9064908b..15e2754d0b935fd5e00e838dedce5669d72cb5bf 100644 (file)
@@ -90,7 +90,7 @@ class PathMark
   Vector V, P;
   Type_e type;
 
-  PathMark(Type_e t=Reference) : type(t) {}
+  PathMark(Type_e t=Reference) : V(), P(), type(t) {}
   virtual ~PathMark() {}
 
   ClassDef(PathMark, 1);
@@ -112,7 +112,8 @@ public:
   Vector  V_decay;     // Decay vertex
   Vector  P_decay;     // Decay momentum
 
-  MCTrack() { decayed = false; }
+  MCTrack() : label(0), eva_label(0),
+              decayed(false), t_decay(0), V_decay(), P_decay() {}
   virtual ~MCTrack() {}
 
   MCTrack& operator=(const TParticle& p)
@@ -140,7 +141,7 @@ public:
   Float_t length;
   Float_t time;
 
-  MCTrackRef() {}
+  MCTrackRef() : label(0), status(0), V(), P(), length(0), time(0) {}
   virtual ~MCTrackRef() {}
 
   ClassDef(MCTrackRef, 1)
@@ -169,7 +170,7 @@ public:
 
   // ?? Float_t charge. Probably specific.
 
-  Hit() {}
+  Hit() : det_id(0), subdet_id(0), label(0), eva_label(0), V() {}
   virtual ~Hit() {}
 
   ClassDef(Hit, 1);
@@ -196,7 +197,7 @@ public:
   // Vector   W;         // Cluster widths
   // ?? Coord system? Special variables Wz, Wy?
 
-  Cluster() {}
+  Cluster() : det_id(0), subdet_id(0), V() { label[0] = label[1] = label [2] = 0; }
   virtual ~Cluster() {}
 
   ClassDef(Cluster, 1);
@@ -219,7 +220,7 @@ public:
 
   // PID data missing
 
-  RecTrack() {}
+  RecTrack() : label(0), status(0), sign(0), V(), P(), beta(0) {}
   virtual ~RecTrack() {}
 
   Float_t Pt() { return P.Perp(); }
@@ -242,7 +243,7 @@ public:
   Vector  V_kink;     // Kink vertex: reconstructed position of the kink
   Vector  P_sec;      // Momentum of secondary track
 
-  RecKink() : RecTrack() {}
+  RecKink() : RecTrack(), label_sec(0), V_end(), V_kink(), P_sec() {}
   virtual ~RecKink() {}
 
   ClassDef(RecKink, 1);
@@ -271,7 +272,9 @@ public:
   Int_t pdg;          // PDG code of mother
   Int_t d_label[2];   // Daughter labels ?? Rec labels present anyway.
 
-  RecV0() {}
+  RecV0() : status(), V_neg(), P_neg(), V_pos(), P_pos(),
+            V_ca(), V0_birth(), label(0), pdg(0)
+  { d_label[0] = d_label[1] = 0; }
   virtual ~RecV0() {}
 
   ClassDef(RecV0, 1);
@@ -294,7 +297,8 @@ public:
   Int_t        n_hits;
   Int_t        n_clus;
 
-  GenInfo() { is_rec = has_V0 = has_kink = false; }
+  GenInfo() : is_rec(false), has_V0(false), has_kink(false),
+              label(0), n_hits(0), n_clus(0) {}
   virtual ~GenInfo() {}
 
   ClassDef(GenInfo, 1);
index 67a7654fc01bf188e39ecfe4e957fb8f931e2084..fa5d11a390a70e804cdb8d77b29d90ad18dd8f15 100644 (file)
@@ -22,7 +22,9 @@ ClassImp(PointSet)
 PointSet::PointSet(Int_t n_points, TreeVarType_e tv_type) :
   RenderElement(fMarkerColor),
   TPointSet3D(n_points),
-  TPointSelectorConsumer(tv_type)  
+  TPointSelectorConsumer(tv_type),
+
+  fTitle()
 {
   fMarkerStyle = 20;
 }
@@ -30,7 +32,9 @@ PointSet::PointSet(Int_t n_points, TreeVarType_e tv_type) :
 PointSet::PointSet(const Text_t* name, Int_t n_points, TreeVarType_e tv_type) :
   RenderElement(fMarkerColor),
   TPointSet3D(n_points),
-  TPointSelectorConsumer(tv_type)
+  TPointSelectorConsumer(tv_type),
+
+  fTitle()
 {
   fMarkerStyle = 20;
   SetName(name);
@@ -39,7 +43,9 @@ PointSet::PointSet(const Text_t* name, Int_t n_points, TreeVarType_e tv_type) :
 PointSet::PointSet(const Text_t* name, TTree* tree, TreeVarType_e tv_type) :
   RenderElement(fMarkerColor),
   TPointSet3D(tree->GetSelectedRows()),
-  TPointSelectorConsumer(tv_type)
+  TPointSelectorConsumer(tv_type),
+
+  fTitle()
 {
   static const Exc_t eH("PointSet::PointSet ");
 
@@ -135,7 +141,11 @@ PointSetArray::PointSetArray(const Text_t* name,
                             const Text_t* title) :
   RenderElementListBase(fMarkerColor),
   TNamed(name, title),
-  fBins(0), fDefPointSetCapacity(128), fNBins(0)
+
+  fBins(0), fDefPointSetCapacity(128), fNBins(0),
+  fMin(0), fCurMin(0), fMax(0), fCurMax(0),
+  fBinWidth(0),
+  fQuantName()
 {}
 
 PointSetArray::~PointSetArray()
index db194fa006097a0709711a73e3abab27a626b05a..7009fdf75b2b6977ac9d1ac4675b051698a7035f 100644 (file)
@@ -20,8 +20,6 @@ class PointSet : public RenderElement,
                  public TPointSelectorConsumer
 {
   friend class PointSetArray;
-private:
-  void Init();
 
 protected:
   TString fTitle;
@@ -56,6 +54,9 @@ class PointSetArray : public RenderElementListBase,
 {
   friend class PointSetArrayEditor;
 
+  PointSetArray(const PointSetArray&);            // Not implemented
+  PointSetArray& operator=(const PointSetArray&); // Not implemented
+
 protected:
   PointSet**   fBins;
   Int_t        fDefPointSetCapacity;
index 47358ef2d88dc9486f70e046fb45e80ba5848659..019e2059045c4bcef2e4f5e51ceae8798624e63a 100644 (file)
@@ -23,7 +23,9 @@ ClassImp(PointSetArrayEditor)
 
 PointSetArrayEditor::PointSetArrayEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
             UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+  fM(0),
+  fRange(0)
 {
   fM = 0;
   MakeTitle("PointSetArray");
index 9fa894216404b8b47b8d19e58ed7f3f11a4c406c..f79a587b565d579f7f5b5d372aac0295dfa2d7a1 100644 (file)
@@ -18,6 +18,9 @@ class PointSetArray;
 
 class PointSetArrayEditor : public TGedFrame
 {
+  PointSetArrayEditor(const PointSetArrayEditor&);            // Not implemented
+  PointSetArrayEditor& operator=(const PointSetArrayEditor&); // Not implemented
+
 protected:
   PointSetArray* fM; // fModel dynamic-casted to PointSetArrayEditor
 
index 069409aa8bbe3019cbb4385bc16f838b3f18ef46..8d1cf0f437ef9676b14313b896e31d6785d90b38 100644 (file)
@@ -31,7 +31,7 @@ void Quad::ColorFromIdx(Color_t ci)
   }
 }
 
-Quad::Quad(TRandom& rnd, Float_t origin, Float_t size)
+Quad::Quad(TRandom& rnd, Float_t origin, Float_t size) : color(0)
 {
   ColorFromIdx(Int_t(30*rnd.Rndm()));
   Float_t x = 2*origin*(rnd.Rndm() - 0.5);
@@ -54,6 +54,7 @@ ClassImp(Reve::QuadSet)
 
 QuadSet::QuadSet(const Text_t* n, const Text_t* t) :
   TNamed(n, t),
+  fQuads(),
   fTrans(false)
 {}
 
index 6d1e90b40f08934e0dffc4614811eb10c6b33fd5..c26ab1b444a96f7866090cc9aa0c46dc0e1f6ce7 100644 (file)
@@ -21,15 +21,15 @@ struct Quad
 
   void ColorFromIdx(Color_t ci);
 
-  Quad(Color_t col = 1)
+  Quad(Color_t col = 1) : color(0)
   { ColorFromIdx(col); }
 
-  Quad(Color_t col, Float_t* p)
+  Quad(Color_t col, Float_t* p) : color(0)
   { ColorFromIdx(col); memcpy(vertices, p, 12*sizeof(Float_t)); }
 
   Quad(TRandom& rnd, Float_t origin, Float_t size);
 
-  Quad(const Quad& org) { memcpy(this, &org, sizeof(Quad)); }
+  Quad(const Quad& org) : color(0) { memcpy(this, &org, sizeof(Quad)); }
 
   virtual ~Quad() {}
 
index f8e57c88e06db6e5746e25f89da3fa71f09047bc..f2b64ab8e9e8629e13c71765ef18fcbd8e0abe0d 100644 (file)
@@ -70,40 +70,40 @@ ToolBarData_t tb_data[] = {
 
 /**************************************************************************/
 
+RGTopFrame::RGTopFrame(const TGWindow *p, UInt_t w, UInt_t h, LookType_e look) :
+  TGMainFrame(p, w, h),
 
-void RGTopFrame::Init()
-{
-  gReve = this;
+  fCC          (0),
+  fHistoCanvas (0),
+  fSelector    (0),
+  fBrowser     (0),
+  fStatusBar   (0),
+  fVSDFile     (""),
+
+  fMacroFolder(0),
+  fEditor (0),
+
+  fCurrentEvent   (0),
+  fGlobalStore    (0),
 
-  fCC          = 0;
-  fHistoCanvas = 0;
-  fSelector    = 0;
-  fBrowser     = 0;
-  fStatusBar   = 0;
-  fVSDFile     = "";
+  fRedrawDisabled (0),
+  fResetCameras   (kFALSE),
+  fTimerActive    (kFALSE),
+  fRedrawTimer    (),
 
+  fLook           (LT_Editor),
+  fGeometries     ()
+{
+  gReve = this;
+  fRedrawTimer.Connect("Timeout()", "Reve::RGTopFrame", this, "DoRedraw3D()");
   fMacroFolder = new TFolder("EVE", "Visualization macros");
   gROOT->GetListOfBrowsables()->Add(fMacroFolder);
 
   fClient->GetMimeTypeList()->AddType("root/tmacro", "Reve::RMacro",
                                       "tmacro_s.xpm", "tmacro_t.xpm", "");
 
-  fEditor = 0;
+  // Build GUI
 
-  fCurrentEvent   = 0;
-  fGlobalStore    = 0;
-
-  fRedrawDisabled = 0;
-  fResetCameras   = kFALSE;
-  fTimerActive    = kFALSE;
-  fRedrawTimer.Connect("Timeout()", "Reve::RGTopFrame", this, "DoRedraw3D()");
-}
-
-
-RGTopFrame::RGTopFrame(const TGWindow *p, UInt_t w, UInt_t h, LookType_e look)
-  : TGMainFrame(p, w, h)
-{
-  Init();
   TGLayoutHints *fL0 = new TGLayoutHints(kLHintsCenterX |kLHintsCenterY | kLHintsExpandY|  kLHintsExpandX);
   TGLayoutHints *fL1 = new TGLayoutHints(kLHintsCenterX |kLHintsCenterY | kLHintsExpandY|  kLHintsExpandX,2,0,2,2);
   TGLayoutHints* fL2 = new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX | kLHintsExpandY,
index 3ad9d2dd371c8c1e0309ea5d29409b291d5196fc..2af233f6c27ba23b45e5ba268aac19291477f52d 100644 (file)
@@ -30,11 +30,13 @@ class EventBase;
 
 class RGTopFrame : public TGMainFrame
 {
+  RGTopFrame(const RGTopFrame&);            // Not implemented
+  RGTopFrame& operator=(const RGTopFrame&); // Not implemented
+
 public:
   enum LookType_e { LT_Classic, LT_Editor, LT_GLViewer };
 
 private:
-  void                Init();
   TCanvas             *fCC;
   TCanvas             *fHistoCanvas;
   VSDSelector         *fSelector;
index 480aac4a2308cd17e6106773b390fe7e45723544..49fb5224f6d130c7b60230b72d4475b6baaeeeb7 100644 (file)
@@ -14,6 +14,9 @@ namespace Reve {
 
 class RGValuatorBase: public TGCompositeFrame
 {
+  RGValuatorBase(const RGValuatorBase&);            // Not implemented
+  RGValuatorBase& operator=(const RGValuatorBase&); // Not implemented
+
 protected:
   UInt_t      fLabelWidth;
   Bool_t      fAlignRight;
@@ -44,6 +47,9 @@ public:
 
 class RGValuator: public RGValuatorBase
 {
+  RGValuator(const RGValuator&);            // Not implemented
+  RGValuator& operator=(const RGValuator&); // Not implemented
+
 protected:
   Float_t        fValue;
   Float_t        fMin;
@@ -88,6 +94,9 @@ public:
 
 class RGDoubleValuator: public RGValuatorBase
 {
+  RGDoubleValuator(const RGDoubleValuator&);            // Not implemented
+  RGDoubleValuator& operator=(const RGDoubleValuator&); // Not implemented
+
 protected:
   TGNumberEntry*    fMinEntry;
   TGNumberEntry*    fMaxEntry;
index 823beb385b6d51ee2307a09e501b17b03c325e38..3bbd6652c5642bfffb5edc8e78ebc6fc9c5a4ace 100644 (file)
@@ -22,11 +22,20 @@ using namespace Reve;
 
 ClassImp(GeoNodeRnrElEditor)
 
-GeoNodeRnrElEditor::GeoNodeRnrElEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
-                                                UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+GeoNodeRnrElEditor::GeoNodeRnrElEditor(const TGWindow *p, Int_t id,
+                                       Int_t width, Int_t height,
+                                       UInt_t options, Pixel_t back) :
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+
+  fNodeRE (0),
+
+  fVizNode(0),
+  fVizNodeDaughters(0),
+  fVizVolume(0),
+  fVizVolumeDaughters(0),
+
+  fTransparency(0)
 {
-  fNodeRE = 0;
   MakeTitle("GeoNode");
 
   // --- Visibility control
@@ -155,11 +164,15 @@ void GeoNodeRnrElEditor::DoTransparency()
 
 ClassImp(GeoTopNodeRnrElEditor)
 
-GeoTopNodeRnrElEditor::GeoTopNodeRnrElEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
+GeoTopNodeRnrElEditor::GeoTopNodeRnrElEditor(const TGWindow *p, Int_t id,
+                                             Int_t width, Int_t height,
                                             UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+
+  fTopNodeRE (0),
+  fVisOption (0),
+  fVisLevel  (0)
 {
-  fTopNodeRE = 0;
   MakeTitle("GeoTopNode");
 
   {
index e16888f9b85911fdf244c934a49ec74ff1c8e20c..c42dd992c25f7c79e3cd7c36aa2bbf7c762e8948 100644 (file)
@@ -17,6 +17,9 @@ class GeoTopNodeRnrEl;
 
 class GeoNodeRnrElEditor : public TGedFrame
 {
+  GeoNodeRnrElEditor(const GeoNodeRnrElEditor&);            // Not implemented
+  GeoNodeRnrElEditor& operator=(const GeoNodeRnrElEditor&); // Not implemented
+
 protected:
   GeoNodeRnrEl*   fNodeRE;
 
@@ -47,6 +50,9 @@ public:
 
 class GeoTopNodeRnrElEditor : public TGedFrame
 {
+  GeoTopNodeRnrElEditor(const GeoTopNodeRnrElEditor&);            // Not implemented
+  GeoTopNodeRnrElEditor& operator=(const GeoTopNodeRnrElEditor&); // Not implemented
+
 protected:
   GeoTopNodeRnrEl*   fTopNodeRE;
 
index 25fed1e8d1398aeeb0291b34d0f4411221b10e1a..6b25d6c4f485722aa97730989127be938a84f411 100644 (file)
@@ -20,6 +20,8 @@ ClassImp(RenderElement)
 RenderElement::RenderElement() :
   fRnrElement          (kTRUE),
   fMainColorPtr        (0),
+  fItems               (),
+  fParents             (),
   fDestroyOnZeroRefCnt (kTRUE),
   fDenyDestroy         (kFALSE)
 {}
@@ -27,6 +29,8 @@ RenderElement::RenderElement() :
 RenderElement::RenderElement(Color_t& main_color) :
   fRnrElement          (kTRUE),
   fMainColorPtr        (&main_color),
+  fItems               (),
+  fParents             (),
   fDestroyOnZeroRefCnt (kTRUE),
   fDenyDestroy         (kFALSE)
 {}
index 7254f5c965a9bf727bddc9647e11a58deb0e2598..7999c8ea76b080469e5077fa6ffc96365655c7ee 100644 (file)
@@ -23,15 +23,24 @@ class RenderElement
 {
   friend class RGTopFrame;
 
+  RenderElement(const RenderElement&);            // Not implemented
+  RenderElement& operator=(const RenderElement&); // Not implemented
+
 public:
-  struct ListTreeInfo {
+  class ListTreeInfo
+  {
+  public:
     TGListTree*     fTree;
     TGListTreeItem* fItem;
 
-    ListTreeInfo() {}
+    ListTreeInfo() : fTree(0), fItem(0) {}
     ListTreeInfo(TGListTree* lt, TGListTreeItem* lti) : fTree(lt), fItem(lti) {}
+    ListTreeInfo(const ListTreeInfo& l) : fTree(l.fTree), fItem(l.fItem) {}
     virtual ~ListTreeInfo() {}
 
+    ListTreeInfo& operator=(const ListTreeInfo& l)
+    { fTree = l.fTree; fItem = l.fItem; return *this; }
+
     bool operator==(const ListTreeInfo& x) const
     { return fTree == x.fTree && fItem == x.fItem; }
     bool operator<(const ListTreeInfo& x) const
@@ -124,6 +133,9 @@ public:
 class RenderElementObjPtr : public RenderElement,
                             public TObject
 {
+  RenderElementObjPtr(const RenderElementObjPtr&);            // Not implemented
+  RenderElementObjPtr& operator=(const RenderElementObjPtr&); // Not implemented
+
 protected:
   TObject* fObject;
   Bool_t   fOwnObject;
@@ -151,8 +163,8 @@ protected:
   void PaintElements(Option_t* option="");
 
 public:
-  RenderElementListBase() {}
-  RenderElementListBase(Color_t& col) : RenderElement(col) {}
+  RenderElementListBase() : RenderElement(), fChildren() {}
+  RenderElementListBase(Color_t& col) : RenderElement(col), fChildren() {}
   virtual ~RenderElementListBase();
 
   virtual void AddElement(RenderElement* el);
index 5d6b0a1bbfa4239b2a999c82a9cf3fb31ca469d7..6ec7425c6db39b6db307c14a52969f5627a05d12 100644 (file)
@@ -20,11 +20,16 @@ using namespace Reve;
 
 ClassImp(RenderElementEditor)
 
-RenderElementEditor::RenderElementEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
-            UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+RenderElementEditor::RenderElementEditor(const TGWindow *p, Int_t id,
+                                         Int_t width, Int_t height,
+                                         UInt_t options, Pixel_t back) :
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+
+  fRE         (0),
+  fHFrame     (0),
+  fRnrElement (0),
+  fMainColor  (0)
 {
-  fRE = 0;
   MakeTitle("RenderElement");
 
   fHFrame = new TGHorizontalFrame(this);
index d0a0045f13d9b41bd5edb0114a69e53a060c7fe1..2916585c68b38e778489b05d17758e8b67d4446d 100644 (file)
@@ -15,6 +15,9 @@ class RenderElement;
 
 class RenderElementEditor : public TGedFrame
 {
+  RenderElementEditor(const RenderElementEditor&);            // Not implemented
+  RenderElementEditor& operator=(const RenderElementEditor&); // Not implemented
+
 protected:
   RenderElement* fRE; // fModel dynamic-casted to RenderElementEditor
 
index 94d9899fc368f1ca36fa81947cea9ae906916a94..2042748a68ffbee1d46f26884e62562fc896cffe 100644 (file)
@@ -76,6 +76,10 @@ class GeoManagerHolder
 {
 private:
   TGeoManager* fManager;
+
+  GeoManagerHolder(const GeoManagerHolder&);            // Not implemented
+  GeoManagerHolder& operator=(const GeoManagerHolder&); // Not implemented
+
 public:
   GeoManagerHolder(TGeoManager* new_gmgr=0);
   virtual ~GeoManagerHolder();
index 1b6f034c66b3e4d296ab6b2e3417cc4e0cd5d059..90724fd1cf1ef3baada5364eb2a7dfede2fbb822 100644 (file)
@@ -12,6 +12,9 @@
 
 class TSelectorToEventList : public TSelectorDraw
 {
+  TSelectorToEventList(const TSelectorToEventList&);            // Not implemented
+  TSelectorToEventList& operator=(const TSelectorToEventList&); // Not implemented
+
 protected:
   TEventList* fEvList;
   TList       fInput;
@@ -66,6 +69,9 @@ public:
 
 class TPointSelector : public TSelectorDraw
 {
+  TPointSelector(const TPointSelector&);            // Not implemented
+  TPointSelector& operator=(const TPointSelector&); // Not implemented
+
 protected:
   TTree                  *fTree;
   TPointSelectorConsumer *fConsumer;
index e9e317014f1f5d0df496245c6f66454728c09b39..9ab56c1d1309b7b475b16b0118d32506c56a4f2b 100644 (file)
@@ -21,48 +21,74 @@ using namespace Reve;
 
 ClassImp(Reve::Track)
 
-Track::Track()
-{
-  fRnrStyle = 0;
-}
+Track::Track() :
+  RenderElement(),
+  TPolyLine3D(),
 
-Track::Track(Reve::MCTrack* t, TrackRnrStyle* rs)
-{
-  fRnrStyle = rs;
+  fV(),
+  fP(),
+  fBeta(0),
+  fCharge(0),
+  fLabel(0),
+  fPathMarks(),
+
+  fRnrStyle(0),
+
+  fName(),
+  fTitle()
+{}
+
+Track::Track(Reve::MCTrack* t, TrackRnrStyle* rs):
+  RenderElement(),
+  TPolyLine3D(),
 
-  fName = t->GetName();
+  fV(t->Vx(), t->Vy(), t->Vz()),
+  fP(t->Px(), t->Py(), t->Pz()),
+  fBeta(t->P()/t->Energy()),
+  fCharge(0),
+  fLabel(t->label),
+  fPathMarks(),
+
+  fRnrStyle(rs),
+
+  fName(t->GetName()),
+  fTitle()
+{
   fLineColor = fRnrStyle->GetColor();
   fMainColorPtr = &fLineColor;
 
-  fV.Set(t->Vx(), t->Vy(), t->Vz());
-  fP.Set(t->Px(), t->Py(), t->Pz());
-  fBeta   = t->P()/t->Energy();
-
   TParticlePDG* pdgp = t->GetPDG();
   if(pdgp == 0) {
     t->ResetPdgCode(); pdgp = t->GetPDG();
   }
-
   fCharge = (Int_t) TMath::Nint(pdgp->Charge()/3);
-  fLabel  = t->label;
 }
 
-Track::Track(Reve::RecTrack* t, TrackRnrStyle* rs)
+Track::Track(Reve::RecTrack* t, TrackRnrStyle* rs) :
+  RenderElement(),
+  TPolyLine3D(),
+
+  fV(t->V),
+  fP(t->P),
+  fBeta(t->beta),
+  fCharge(t->sign),
+  fLabel(t->label),
+  fPathMarks(),
+
+  fRnrStyle(rs),
+
+  fName(t->GetName()),
+  fTitle()
 {
-  fRnrStyle = rs;
-  fName = t->GetName();
   fLineColor = fRnrStyle->GetColor();
   fMainColorPtr = &fLineColor;
-
-  fV = t->V;
-  fP = t->P;
-  fBeta   = t->beta;
-  fCharge = t->sign;
-  fLabel  = t->label; 
 }
 
 Track::~Track()
-{}
+{
+  for (vpPathMark_i i=fPathMarks.begin(); i!=fPathMarks.end(); ++i)
+    delete *i;
+}
 
 void Track::Reset(Int_t n_points)
 {
@@ -206,21 +232,22 @@ Float_t       TrackRnrStyle::fgDefMagField = 5;
 const Float_t TrackRnrStyle::fgkB2C        = 0.299792458e-3;
 TrackRnrStyle TrackRnrStyle::fgDefStyle;
 
-void TrackRnrStyle::Init()
-{
-  fMagField = fgDefMagField;
+TrackRnrStyle::TrackRnrStyle() :
+  TObject(),
 
-  fMaxR  = 350;
-  fMaxZ  = 450;
+  fColor(1),
+  fMagField(fgDefMagField),
 
-  fMaxOrbs = 0.5;
-  fMinAng  = 45;
+  fMaxR  (350),
+  fMaxZ  (450),
 
-  fFitDaughters = kTRUE;
-  fFitDecay     = kTRUE;
+  fMaxOrbs (0.5),
+  fMinAng  (45),
+  fDelta   (0.1),
 
-  fDelta  = 0.1; //calculate step size depending on helix radius
-}
+  fFitDaughters(kTRUE),
+  fFitDecay    (kTRUE)
+{}
 
 /**************************************************************************/
 /**************************************************************************/
@@ -237,23 +264,32 @@ void TrackList::Init()
   fMarkerColor = 5;
   // fMarker->SetMarkerSize(0.05);
 
-  fRnrMarkers = kTRUE;
-  fRnrTracks  = kTRUE;
-
   mRnrStyle = new TrackRnrStyle;
   SetMainColorPtr(&mRnrStyle->fColor);
 }
 
 TrackList::TrackList(Int_t n_tracks) :
   RenderElementListBase(),
-  TPolyMarker3D(n_tracks)
+  TPolyMarker3D(n_tracks),
+
+  fTitle(),
+
+  mRnrStyle   (0),
+  fRnrMarkers (kTRUE),
+  fRnrTracks  (kTRUE)
 {
   Init();
 }
 
 TrackList::TrackList(const Text_t* name, Int_t n_tracks) :
   RenderElementListBase(),
-  TPolyMarker3D(n_tracks)
+  TPolyMarker3D(n_tracks),
+
+  fTitle(),
+
+  mRnrStyle   (0),
+  fRnrMarkers (kTRUE),
+  fRnrTracks  (kTRUE)
 {
   Init();
   SetName(name);
index e7b60bac6194868515bde4f56d4bd3a3edf6386d..db326e8f067961e4a4623437009c655e05113a80 100644 (file)
@@ -19,26 +19,29 @@ class Track : public RenderElement,
 {
   friend class TrackList;
 
-private:
-  void                   Init();
+  Track(const Track&);            // Not implemented
+  Track& operator=(const Track&); // Not implemented
 
 protected:
-  Reve::Vector           fV;
-  Reve::Vector           fP;
-  Double_t               fBeta;
-  Int_t                  fCharge;
-  Int_t                  fLabel;
+  typedef std::vector<Reve::PathMark*>           vpPathMark_t;
+  typedef std::vector<Reve::PathMark*>::iterator vpPathMark_i;
+
+  Reve::Vector      fV;
+  Reve::Vector      fP;
+  Double_t          fBeta;
+  Int_t             fCharge;
+  Int_t             fLabel;
+  vpPathMark_t      fPathMarks;
 
-  TrackRnrStyle*        fRnrStyle;
+  TrackRnrStyle*    fRnrStyle;
     
-  TString                fName; 
-  TString                fTitle; 
+  TString           fName;
+  TString           fTitle;
 
 public: 
   Track();
   Track(Reve::MCTrack*  t, TrackRnrStyle* rs);
   Track(Reve::RecTrack* t, TrackRnrStyle* rs);
-  std::vector<Reve::PathMark*> fPathMarks;
   virtual ~Track();
 
   void Reset(Int_t n_points=0);
@@ -61,6 +64,7 @@ public:
   virtual void SetTitle(const Text_t* title) { fTitle = title; }
 
   Int_t GetLabel() const { return fLabel; }
+  void  AddPathMark(Reve::PathMark* pm) { fPathMarks.push_back(pm); }
 
   //--------------------------------
 
@@ -85,9 +89,6 @@ public:
 
 class TrackRnrStyle : public TObject 
 {
-private:
-  void         Init();
-
 public:
   Color_t                  fColor;
   Float_t                  fMagField;  
@@ -102,7 +103,7 @@ public:
   Bool_t                   fFitDaughters;   
   Bool_t                   fFitDecay;   
 
-  TrackRnrStyle() { Init(); }
+  TrackRnrStyle();
 
   void    SetColor(Color_t c) { fColor = c; }
   Color_t GetColor() const    { return fColor; }
@@ -125,6 +126,9 @@ public:
 class TrackList : public RenderElementListBase,
                  public TPolyMarker3D
 {
+  TrackList(const TrackList&);            // Not implemented
+  TrackList& operator=(const TrackList&); // Not implemented
+
 private:
   void  Init();
 
index e8e7d24e3e4a497714dd37b03c418e4219eea697..95cfa64b7059bd2562a036631da08bea39af3968 100644 (file)
@@ -22,11 +22,27 @@ using namespace Reve;
 
 ClassImp(TrackListEditor)
 
-TrackListEditor::TrackListEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
-            UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+TrackListEditor::TrackListEditor(const TGWindow *p, Int_t id,
+                                 Int_t width, Int_t height,
+                                 UInt_t options, Pixel_t back) :
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+
+  fTC (0),
+
+  fMaxR(0),
+  fMaxZ(0),
+  fMaxOrbits(0),
+  fMinAng(0),
+  fDelta(0),
+
+  fRnrTracks(0),
+  fRnrMarkers(0),
+
+  fFitDaughters(0),
+  fFitDecay(0),
+
+  fPtRange(0)
 {
-  fTC = 0;
   MakeTitle("TrackList");
 
     // --- Limits
index 9ce6a031351a3ad9eefabd98f271c7f71998a64e..6054937b41a370c46d34efbd630a84eeed7f499a 100644 (file)
@@ -18,6 +18,9 @@ class TrackList;
 
 class TrackListEditor : public TGedFrame
 {
+  TrackListEditor(const TrackListEditor&);            // Not implemented
+  TrackListEditor& operator=(const TrackListEditor&); // Not implemented
+
 protected:
   TrackList* fTC; // fModel dynamic-casted to TrackListEditor
 
index 354e80b4c339d20435085bfc79ef1341374d6f21..0a8e3d63b9a4dbaa120c3932e716869fc1a99917 100644 (file)
@@ -11,41 +11,32 @@ using namespace Reve;
 
 ClassImp(VSD)
 
-VSD::VSD()
-{
-  mFile      = 0;
-  mDirectory = 0;
-  InitTreeVars();
-}
-
-VSD::VSD(const Text_t* , const Text_t* )
-{
-  mFile      = 0;
-  mDirectory = 0;
-  InitTreeVars();
-}
-
-void VSD::InitTreeVars()
-{
-  fBuffSize = 128*1024;
-
-  mTreeK  = 0;
-  //mTreeTR = 0;
-  mTreeH  = 0;
-  mTreeC  = 0;
-  mTreeR  = 0;
-  mTreeKK = 0;
-  mTreeV0 = 0;
-  mTreeGI = 0;
-
-  mpK  = &mK;
-  mpH  = &mH;
-  mpC  = &mC;
-  mpV0 = &mV0;
-  mpKK = &mKK;
-  mpR  = &mR;
-  mpGI = &mGI;
-}
+VSD::VSD(const Text_t* , const Text_t* ) :
+  TObject(),
+
+  fBuffSize  (128*1024),
+
+  mFile      (0),
+  mDirectory (0),
+
+
+  mTreeK  (0),
+  //mTreeTR (0),
+  mTreeH  (0),
+  mTreeC  (0),
+  mTreeR  (0),
+  mTreeKK (0),
+  mTreeV0 (0),
+  mTreeGI (0),
+
+  mK(),  mpK (&mK),
+  mH(),  mpH (&mH),
+  mC(),  mpC (&mC),
+  mR(),  mpR (&mR),
+  mKK(), mpKK(&mKK),
+  mV0(), mpV0(&mV0),
+  mGI(), mpGI(&mGI)
+{}
 
 /**************************************************************************/
 /**************************************************************************/
index 8d640bfa961cb425fa66556240f7cc0145d91477..700b3bdec069bf47320123faee91e3779387ff10 100644 (file)
@@ -17,6 +17,9 @@ public:
 
 class VSD : public TObject
 {
+  VSD(const VSD&);            // Not implemented
+  VSD& operator=(const VSD&); // Not implemented
+
 protected:
   Int_t        fBuffSize;
 
@@ -43,9 +46,7 @@ public:
   GenInfo      mGI, *mpGI;   //!
 
 public:
-  VSD();
-  VSD(const Text_t* name, const Text_t* title="");
-  virtual void InitTreeVars();
+  VSD(const Text_t* name="VSD", const Text_t* title="");
 
   virtual void SetDirectory(TDirectory* dir);
 
index 0fdfea1a5fd1cdd4a130de5c55b7a53627fb2cfe..92bb775e5045f242e31283daea35517f5e00b43c 100644 (file)
@@ -18,19 +18,22 @@ const TString VSDEvent::sVSDHeaderName("VSDheader");
 
 VSDEvent::VSDEvent() :
   EventBase("VSDEvent"),
-  fRun(0), fEvent(0),
+  fRun(0), fEvent(0), fUrl(),
+  fTags(),
   fDirectory(0), fCreator(0), fSelector(0)
 {}
 
 VSDEvent::VSDEvent(Int_t run, Int_t evt, const TString& url) :
   EventBase("VSDEvent"),
   fRun(run), fEvent(evt), fUrl(url),
+  fTags(),
   fDirectory(0), fCreator(0), fSelector(0)
 {}
 
 VSDEvent::VSDEvent(const TString& url) :
   EventBase("VSDEvent"),
   fRun(0), fEvent(0), fUrl(url),
+  fTags(),
   fDirectory(0), fCreator(0), fSelector(0)
 {}
 
index 4f699cfadde59788b6f51a72b93bf24f87b928c2..054e4c78047aeb5576c259975a691ade926c705d 100644 (file)
@@ -21,7 +21,7 @@ class EvTree : public TTree
 public:
   TFolder fFolder;
 
-  EvTree() : TTree() {}
+  EvTree() : TTree(), fFolder() {}
   EvTree(const char* name, const char* title, Int_t splitlevel = 99) :
     TTree(name, title, splitlevel), fFolder("Folder", "Additional event data") {}
   virtual ~EvTree() {}
@@ -33,6 +33,9 @@ public:
 
 class VSDEvent : public EventBase
 {
+  VSDEvent(const VSDEvent&);            // Not implemented
+  VSDEvent& operator=(const VSDEvent&); // Not implemented
+
 protected:
   Int_t        fRun;
   Int_t        fEvent;
index bb5d7a020319fb5e6c88e7355ee8c62561c6e268..21c1142f4b6d355519550334865d65aca039cfb2 100644 (file)
@@ -17,10 +17,18 @@ using namespace Reve;
 
 using Reve::Exc_t;
 
-VSDSelector::VSDSelector(TGListTree* lt, TGCompositeFrame *tFrame)
-{
-  fListTree = lt;
+VSDSelector::VSDSelector(TGListTree* lt, TGCompositeFrame *tFrame) :
+  VSD(),
+
+  fListTree (lt),
 
+  mParticleSelection(0),
+  mHitSelection(0),   
+  mClusterSelection(0), 
+  mRecSelection(0),
+  
+  fRecursiveSelect(0)
+{
   //create gui
   TGGroupFrame *gframe = new TGGroupFrame(tFrame, "Options", kVerticalFrame);
   TGLayoutHints* lh0 = new TGLayoutHints(kLHintsTop | kLHintsLeft |  kLHintsExpandX | kLHintsExpandY  , 5, 5, 5, 5);
@@ -219,7 +227,7 @@ void VSDSelector::SelectParticles(const Text_t* selection)
           pm->V.x = mK.V_decay.x;
           pm->V.y = mK.V_decay.y;
           pm->V.z = mK.V_decay.z;
-         track->fPathMarks.push_back(pm);
+         track->AddPathMark(pm);
        }
       }
       track->MakeTrack();
@@ -252,14 +260,14 @@ void VSDSelector::ImportDaughtersRec(TGListTreeItem* parent, TrackList* cont,
     dam->V.x = mK.Vx();
     dam->V.y = mK.Vy();
     dam->V.z = mK.Vz();
-    mother->fPathMarks.push_back(dam);
+    mother->AddPathMark(dam);
 
     if(mK.decayed) {
       Reve::PathMark* decm = new Reve::PathMark(Reve::PathMark::Decay);
       decm->V.x = mK.V_decay.x;
       decm->V.y = mK.V_decay.y;
       decm->V.z = mK.V_decay.z;
-      track->fPathMarks.push_back(decm);
+      track->AddPathMark(decm);
 
     }
     track->MakeTrack();
index 40baa4e603fb2221648802159d4b39442c48052d..d45d90ec88abbe3e77d1ca5c87f1dd3afd47d1b5 100644 (file)
@@ -8,39 +8,42 @@
 
 namespace Reve {
 
-  class TrackRnrStyle;
-  class TrackList;
-
-  class VSDSelector : public ::Reve::VSD
-  {
-  private:
-    void NotifyBrowser(TGListTreeItem* parent); 
-    TGListTree*               fListTree;
-
-  protected:
-    TGTextEntry*              mParticleSelection;   
-    TGTextEntry*              mHitSelection;   
-    TGTextEntry*              mClusterSelection;   
-    TGTextEntry*              mRecSelection;  
-
-  public: 
-    TGCheckButton*            fRecursiveSelect;
-    VSDSelector(TGListTree* lt, TGCompositeFrame *tFrame);
-
-    virtual void LoadVSD(const Text_t* vsd_file_name,
-                        const Text_t* dir_name="Event0");
-
-    void SelectParticles (const Text_t* selection=0);
-    void ImportDaughtersRec(TGListTreeItem* parent, TrackList* cont, Int_t first, Int_t last);
-    void SelectHits();
-    void SelectClusters();
-    void SelectRecTracks();
-
-    void SetRecursiveSelection(Bool_t rec){fRecursiveSelect->SetOn(rec,1);}
-    //      printf("SetRecursiveSelection is %d on %d \n", rec?1:0,fRecursiveSelect->IsOn()?1:0);}
-    Bool_t GetRecursiveSelection(){return fRecursiveSelect->IsOn();}
-    ClassDef(VSDSelector, 1);
-  };
+class TrackRnrStyle;
+class TrackList;
+
+class VSDSelector : public ::Reve::VSD
+{
+  VSDSelector(const VSDSelector&);            // Not implemented
+  VSDSelector& operator=(const VSDSelector&); // Not implemented
+
+private:
+  void NotifyBrowser(TGListTreeItem* parent);
+  TGListTree*               fListTree;
+
+protected:
+  TGTextEntry*              mParticleSelection;
+  TGTextEntry*              mHitSelection;
+  TGTextEntry*              mClusterSelection;
+  TGTextEntry*              mRecSelection;
+
+public: 
+  TGCheckButton*            fRecursiveSelect;
+  VSDSelector(TGListTree* lt, TGCompositeFrame *tFrame);
+
+  virtual void LoadVSD(const Text_t* vsd_file_name,
+                       const Text_t* dir_name="Event0");
+
+  void SelectParticles (const Text_t* selection=0);
+  void ImportDaughtersRec(TGListTreeItem* parent, TrackList* cont, Int_t first, Int_t last);
+  void SelectHits();
+  void SelectClusters();
+  void SelectRecTracks();
+
+  void SetRecursiveSelection(Bool_t rec){fRecursiveSelect->SetOn(rec,1);}
+  //      printf("SetRecursiveSelection is %d on %d \n", rec?1:0,fRecursiveSelect->IsOn()?1:0);}
+  Bool_t GetRecursiveSelection(){return fRecursiveSelect->IsOn();}
+  ClassDef(VSDSelector, 1);
+};
 
 }