EffC++ warnings fixed
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Sep 2006 13:35:31 +0000 (13:35 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Sep 2006 13:35:31 +0000 (13:35 +0000)
MUON/AliMUONLocalTrigger.cxx
MUON/AliMUONTriggerBoard.cxx
MUON/AliMUONTriggerCrate.cxx
MUON/AliMUONTriggerSegmentationV2.cxx

index 4bae713..5c4e793 100644 (file)
@@ -122,30 +122,29 @@ AliMUONLocalTrigger& AliMUONLocalTrigger::operator=(const AliMUONLocalTrigger& t
 }
 
 //----------------------------------------------------------------------
-AliMUONLocalTrigger::AliMUONLocalTrigger(const Int_t* localtr, const TArrayI& digits)
+AliMUONLocalTrigger::AliMUONLocalTrigger(const Int_t* localtr, const TArrayI& digits) :
+    fLoCircuit(localtr[0]),
+    fLoStripX(localtr[1]),      
+    fLoDev(localtr[2]),      
+    fLoStripY(localtr[3]),          
+    fLoLpt(localtr[4]),
+    fLoHpt(localtr[5]),
+    fLoApt(localtr[6]),
+    // keep on with this way
+    fX1Pattern((UShort_t)localtr[7]),
+    fX2Pattern((UShort_t)localtr[8]),
+    fX3Pattern((UShort_t)localtr[9]),
+    fX4Pattern((UShort_t)localtr[10]),
+    
+    fY1Pattern((UShort_t)localtr[11]),
+    fY2Pattern((UShort_t)localtr[12]),
+    fY3Pattern((UShort_t)localtr[13]),
+    fY4Pattern((UShort_t)localtr[14]),
+    
+    fLoDecision(0),
+    fDigits(digits)
 {
-/// Add a local trigger object 
-
-  fLoCircuit = localtr[0];
-  fLoStripX  = localtr[1];         
-  fLoDev     = localtr[2];           
-  fLoStripY  = localtr[3];           
-  fLoLpt     = localtr[4];
-  fLoHpt     = localtr[5];
-  fLoApt     = localtr[6];
-
-  // keep on with this way
-  fX1Pattern = (UShort_t)localtr[7];
-  fX2Pattern = (UShort_t)localtr[8];
-  fX3Pattern = (UShort_t)localtr[9];
-  fX4Pattern = (UShort_t)localtr[10];
-
-  fY1Pattern = (UShort_t)localtr[11];
-  fY2Pattern = (UShort_t)localtr[12];
-  fY3Pattern = (UShort_t)localtr[13];
-  fY4Pattern = (UShort_t)localtr[14];
-
-  fDigits = digits;
+/// Add a local trigger object
 }
 
 //----------------------------------------------------------------------
index 6b26d63..3f2b36c 100644 (file)
@@ -45,10 +45,13 @@ AliMUONTriggerBoard::AliMUONTriggerBoard(const char *Name, Int_t islot)
 }
 
 //___________________________________________
-AliMUONTriggerBoard::AliMUONTriggerBoard(const AliMUONTriggerBoard &board): TNamed(board)
+AliMUONTriggerBoard::AliMUONTriggerBoard(const AliMUONTriggerBoard &board)
+    : TNamed(board),
+      fSlot(board.fSlot),
+      fResponse(board.fResponse)
 {
 // Dummy Copy Ctor
-   board.Copy(*this);
+//   board.Copy(*this);
 }
 
 //___________________________________________
index c656bfe..fe2ddca 100644 (file)
@@ -30,9 +30,10 @@ ClassImp(AliMUONTriggerCrate)
 
 //___________________________________________
 AliMUONTriggerCrate::AliMUONTriggerCrate()
-: fNslots(0),
-  fNboards(0),
-  fBoards(0x0)
+    : fNslots(0),
+      fNboards(0),
+      fBoards(0x0),
+      fSourceFileName(0)    
 {
     // Def Ctor
 }
@@ -44,10 +45,13 @@ AliMUONTriggerCrate::~AliMUONTriggerCrate()
 }
 
 //___________________________________________
-AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) : TNamed(name,"Regional trigger crate")
+AliMUONTriggerCrate::AliMUONTriggerCrate(const char *name, Int_t n) : 
+    TNamed(name,"Regional trigger crate"),
+    fNslots(n),
+    fNboards(0),
+    fBoards(new TObjArray(fNslots)),
+    fSourceFileName(0)
 {
-   fNslots = n;
-   fBoards = new TObjArray(fNslots);
 }
 
 //___________________________________________
@@ -59,10 +63,16 @@ void AliMUONTriggerCrate::AddBoard(AliMUONTriggerBoard *board, Int_t i)
 }
 
 //___________________________________________
-AliMUONTriggerCrate::AliMUONTriggerCrate(const AliMUONTriggerCrate &crate) : TNamed(crate)
+AliMUONTriggerCrate::AliMUONTriggerCrate(const AliMUONTriggerCrate &crate) 
+    : TNamed(crate),
+      fNslots(crate.fNslots),
+      fNboards(crate.fNboards),
+      fBoards(crate.fBoards),
+      fSourceFileName(crate.fSourceFileName)
 {
+    
 // Dummy Copy Ctor
-   crate.Copy(*this);
+//   crate.Copy(*this);
 }
 
 //___________________________________________
index 4d57b87..d5ad7c9 100644 (file)
@@ -60,13 +60,14 @@ namespace
 //_____________________________________________________________________________
 AliMUONTriggerSegmentationV2::AliMUONTriggerSegmentationV2() 
 : AliMUONVGeometryDESegmentation(),
-fDetElemId(-1),
-fPlaneType(kNonBendingPlane),
-fSlat(0),
-fSlatSegmentation(0),
-fXhit(FMAX),
-fYhit(FMAX),
-fLineNumber(-1)
+  fDetElemId(-1),
+  fPlaneType(kNonBendingPlane),
+  fSlat(0),
+  fSlatSegmentation(0),
+  fCurrentPad(),
+  fXhit(FMAX),
+  fYhit(FMAX),
+  fLineNumber(-1)
 {
 /// Default ctor (empty).
 
@@ -77,14 +78,15 @@ fLineNumber(-1)
 AliMUONTriggerSegmentationV2::AliMUONTriggerSegmentationV2(
                                    AliMpVSegmentation* segmentation,
                                    Int_t detElemId, AliMpPlaneType bendingOrNonBending)
-: AliMUONVGeometryDESegmentation(),
-fDetElemId(detElemId),
-fPlaneType(bendingOrNonBending),
-fSlat(0),
-fSlatSegmentation(0),
-fXhit(FMAX),
-fYhit(FMAX),
-fLineNumber(-1)
+    : AliMUONVGeometryDESegmentation(),
+      fDetElemId(detElemId),
+      fPlaneType(bendingOrNonBending),
+      fSlat(0),
+      fSlatSegmentation(0),
+      fCurrentPad(),
+      fXhit(FMAX),
+      fYhit(FMAX),
+      fLineNumber(-1)
 {
 /// Normal ctor.