X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDBaseDigit.cxx;h=2bf937c1d056abc2177bff87c775714b3fe22c26;hb=f068fb74591476f47c1939f35664808887d70c6c;hp=41d69200d486a0c6d952585a046cc5939c730bd3;hpb=faf80567e50c3b411106dcc26a9d3e95b6a1fa1a;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDBaseDigit.cxx b/FMD/AliFMDBaseDigit.cxx index 41d69200d48..2bf937c1d05 100644 --- a/FMD/AliFMDBaseDigit.cxx +++ b/FMD/AliFMDBaseDigit.cxx @@ -1,4 +1,4 @@ -/************************************************************************** +/************************************************************************* * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * @@ -11,14 +11,15 @@ * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * - **************************************************************************/ -/* $Id$ */ -/** @file AliFMDBaseDigit.cxx - @author Christian Holm Christensen - @date Mon Mar 27 12:37:41 2006 - @brief Digits for the FMD - @ingroup FMD_base -*/ + ************************************************************************* + * $Id$ */ +/** + * @file AliFMDBaseDigit.cxx + * @author Christian Holm Christensen + * @date Mon Mar 27 12:37:41 2006 + * @brief Digits for the FMD + * @ingroup FMD_base + */ ////////////////////////////////////////////////////////////////////// // // Digits classes for the FMD @@ -71,6 +72,8 @@ #include "AliFMDDebug.h" // Better debug macros //==================================================================== +using std::cout; +using std::flush; ClassImp(AliFMDBaseDigit) #if 0 ; // This is here to keep Emacs from indenting the next line @@ -83,7 +86,11 @@ AliFMDBaseDigit::AliFMDBaseDigit() fSector(0), fStrip(0), fName("") -{} +{ + // + // CTOR + // +} //____________________________________________________________________ AliFMDBaseDigit::AliFMDBaseDigit(UShort_t detector, @@ -199,12 +206,19 @@ AliFMDBaseDigit::Compare(const TObject* o) const void AliFMDBaseDigit::AddTrack(Int_t track) { + // + // Add a track referenc + // + // Parameters: + // trackno The track number + // if (fTracks[0] == -1) fTracks[0] = track; else if (fTracks[1] == -1) fTracks[1] = track; else if (fTracks[2] == -1) fTracks[2] = track; else - AliWarning(Form("While adding track label to %s for %s: " - "All 3 track labels used, cannot add reference to track %d", + AliFMDDebug(1, ("While adding track label to %s for %s: " + "All 3 track labels used, can't add " + "reference to track %d", ClassName(), GetName(), track)); } @@ -212,6 +226,13 @@ AliFMDBaseDigit::AddTrack(Int_t track) UShort_t AliFMDBaseDigit::GetNTrack() const { + // + // Get the number of track references (max 3) + // + // + // Return: + // Number of valid track references. + // for (Int_t i = 3; i > 0; i--) if (fTracks[i-1] != -1) return i; return 0;