]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/AliHLTMUONRecHit.cxx
Fixing warnings
[u/mrichter/AliRoot.git] / HLT / MUON / AliHLTMUONRecHit.cxx
index 66b36adf7f473f95b7e28e2aa2f3e8578f5c5158..a4fe521c472d78b00fc25d7a4512aac378eb5624 100644 (file)
@@ -1,5 +1,5 @@
 /**************************************************************************
- * This file is property of and copyright by the ALICE HLT Project        * 
+ * This file is property of and copyright by the ALICE HLT Project        *
  * All rights reserved.                                                   *
  *                                                                        *
  * Primary Authors:                                                       *
  * without fee, provided that the above copyright notice appears in all   *
  * copies and that both the copyright notice and this permission notice   *
  * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          * 
+ * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id$ */
+// $Id$
 
 ///
 /// @file   AliHLTMUONRecHit.cxx
@@ -50,19 +50,28 @@ std::ostream& operator << (std::ostream& stream, const AliHLTMUONRecHit& hit)
 
 
 void AliHLTMUONRecHit::SetDebugInfo(
-               Int_t detElemId, Int_t clusterId, UInt_t nChExp, Int_t sourceDDL
+               Int_t detElemId, Int_t clusterId,
+               UShort_t nChExpB, UShort_t nChExpNB,
+               Float_t chargeB, Float_t chargeNB,
+               Int_t sourceDDL
        )
 {
-/// Sets the debugging information.
+/// Sets the extra debugging information.
 /// @param detElemId  The detector element ID.
 /// @param clusterId  Cluster ID of the hit's cluster.
-/// @param nChExp     Number of expected channels forming the cluster.
+/// @param nChExpB    Number of expected channels in the bending plane forming the cluster.
+/// @param nChExpNB   Number of expected channels in the non-bending plane forming the cluster.
+/// @param chargeB    The charge of the cluster in the bending plane.
+/// @param chargeNB   The charge of the cluster in the non-bending plane.
 /// @param sourceDDL  The source DDL of this hit.
 
        fSourceDDL = sourceDDL;
        fDetElemId = detElemId;
        fClusterId = clusterId;
-       fNchExp = nChExp;
+       fNchExpB = nChExpB;
+       fNchExpNB = nChExpNB;
+       fChargeB = chargeB;
+       fChargeNB = chargeNB;
 }
        
 
@@ -123,7 +132,8 @@ void AliHLTMUONRecHit::Print(Option_t* option) const
                        << " cm); source DDL = " << fSourceDDL
                        << "; DetElemID = " << fDetElemId
                        << "; cluster ID = " << fClusterId
-                       << "; expected #ch = " << fNchExp << endl;
+                       << "; total charge = " << fChargeB + fChargeNB
+                       << "; expected #ch = " << fNchExpB + fNchExpNB << endl;
        }
        else if (strcmp(option, "all") == 0)
        {
@@ -132,7 +142,10 @@ void AliHLTMUONRecHit::Print(Option_t* option) const
                        << " cm); source DDL = " << fSourceDDL
                        << "; DetElemID = " << fDetElemId
                        << "; cluster ID = " << fClusterId
-                       << "; expected #ch = " << fNchExp << endl;
+                       << "; charge (Bending, Non-bending) = (" << fChargeB
+                       << ", " << fChargeNB
+                       << "); expected #ch (Bending, Non-bending) = ("
+                       << fNchExpB << ", " << fNchExpNB << ")" << endl;
                if (fChannels.GetEntriesFast() == 0)
                {
                        cout << "No channels found for this hit." << endl;