]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDMultStrip.cxx
Initialization of data members
[u/mrichter/AliRoot.git] / FMD / AliFMDMultStrip.cxx
CommitLineData
56b1929b 1/**************************************************************************
2 * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
18//____________________________________________________________________
19//
7684b53c 20// FMD reconstructed multiplicity in a strip. It contains the
21// information of which strip in what sector of what ring, in which
22// detector the information belongs, as well as the pseudo-rapidity,
23// and azimuthal angle the strip had in the event. Note, that this
24// may change when the interaction points z--coordinate changes
25// (which it probably will - experience from RHIC says so). Also,
26// the reconstructed energy deposited is stored.
27//
56b1929b 28//
29#include "AliFMDMultStrip.h" // ALIFMDMULTSTRIP_H
30#include <TString.h> // ROOT_TString
31#include <Riostream.h> // ROOT_Riostream
32
33//____________________________________________________________________
925e6570 34ClassImp(AliFMDMultStrip)
1a1fdef7 35#if 0
36 ; // This is here to keep Emacs for indenting the next line
37#endif
56b1929b 38
39
40//____________________________________________________________________
41AliFMDMultStrip::AliFMDMultStrip()
42 : fDetector(0),
43 fRing('\0'),
44 fSector(0),
45 fStrip(0),
46 fEta(0),
47 fPhi(0),
48 fEdep(0)
49{}
50
51//____________________________________________________________________
52AliFMDMultStrip::AliFMDMultStrip(UShort_t detector, Char_t ring,
53 UShort_t sector, UShort_t strip,
54 Float_t eta, Float_t phi,
55 Float_t edep, Float_t particles,
56 UShort_t method)
57 : AliFMDMult(particles, method),
58 fDetector(detector),
59 fRing(ring),
60 fSector(sector),
61 fStrip(strip),
62 fEta(eta),
63 fPhi(phi),
64 fEdep(edep)
65{}
66
67
68//____________________________________________________________________
69void
70AliFMDMultStrip::Print(Option_t* option) const
71{
72 // Print information
73 //
74 // Options:
75 // D: Detector (default)
76 // E: Eta range (default)
77 // P: Phi range (default)
78 //
79 TString opt(option);
7684b53c 80 cout << "FMD Multiplicity in a strip: " << fParticles << endl;
56b1929b 81 if (opt.Contains("D", TString::kIgnoreCase))
82 cout << " Detector: FMD" << fDetector << fRing
83 << "[" << fSector << "," << fStrip << "]" << endl;
84 if (opt.Contains("E", TString::kIgnoreCase))
85 cout << " Eta range: " << fEta << endl;
86 if (opt.Contains("P", TString::kIgnoreCase))
87 cout << " Phi range: " << fPhi << endl;
88 AliFMDMult::Print(option);
89}
90
91
92//____________________________________________________________________
93//
94// EOF
95//