1 /**************************************************************************
2 * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 /** @file AliFMDRecPoint.cxx
17 @author Christian Holm Christensen <cholm@nbi.dk>
18 @date Mon Mar 27 12:46:26 2006
19 @brief Pseudo reconstructed charged particle multiplicity
21 //____________________________________________________________________
23 // Base class for reconstructed charged particle multiplicty in the
25 // The class contains the field fMethod which is a flag set by
26 // the AliFMDRecPointAlgorithm that created the object. The flag tells us
27 // which algorithm was used to create the data stored in the object.
29 #include "AliFMDRecPoint.h" // ALIFMDRECPOINT_H
30 #include <TString.h> // ROOT_TString
31 #include <Riostream.h> // ROOT_Riostream
33 //____________________________________________________________________
36 ClassImp(AliFMDRecPoint)
38 ; // This is here to keep Emacs for indenting the next line
41 //____________________________________________________________________
42 AliFMDRecPoint::AliFMDRecPoint()
55 //____________________________________________________________________
56 AliFMDRecPoint::AliFMDRecPoint(UShort_t detector, Char_t ring,
57 UShort_t sector, UShort_t strip,
58 Float_t eta, Float_t phi,
59 Float_t edep, Float_t particles)
60 : fDetector(detector),
71 //____________________________________________________________________
73 AliFMDRecPoint::GetName() const
77 n = Form("FMD%d%c[%2d,%3d]", fDetector,fRing,fSector,fStrip);
81 //____________________________________________________________________
83 AliFMDRecPoint::GetTitle() const
87 t = Form("%f (%f,%f)", fParticles, fEta, fPhi);
91 //____________________________________________________________________
93 AliFMDRecPoint::Print(Option_t* option) const
98 // D: Detector (default)
99 // E: Eta range (default)
100 // P: Phi range (default)
103 cout << "FMD RecPoint in a strip: " << fParticles << endl;
104 if (opt.Contains("D", TString::kIgnoreCase))
105 cout << " Detector: FMD" << fDetector << fRing
106 << "[" << fSector << "," << fStrip << "]" << endl;
107 if (opt.Contains("E", TString::kIgnoreCase))
108 cout << " Eta range: " << fEta << endl;
109 if (opt.Contains("P", TString::kIgnoreCase))
110 cout << " Phi range: " << fPhi << endl;
114 //____________________________________________________________________