]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDMultRegion.cxx
Extended AliReconstructor interface to remove the event loop and the I/O from the...
[u/mrichter/AliRoot.git] / FMD / AliFMDMultRegion.cxx
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 //
20 //  Forward Multiplicity Detector have to be reconstructed number of
21 //  particles in fixed pseudorapidity interval from fNumOfMinRing
22 //  to fNumOfMaxRing and phi interval from fNumOfMinSector to
23 //  fNumOfMaxSector
24 //
25 #include "AliFMDMultRegion.h"   // ALIFMDPARTICLES_H
26 #include <TString.h>            // ROOT_TString
27 #include <Riostream.h>          // ROOT_Riostream
28
29 //____________________________________________________________________
30 ClassImp(AliFMDMultRegion);
31
32
33 //____________________________________________________________________
34 AliFMDMultRegion::AliFMDMultRegion()
35   : fDetector(0),
36     fRing('\0'),
37     fMinSector(0),
38     fMaxSector(0),
39     fMinStrip(0),
40     fMaxStrip(0),
41     fMinEta(0),
42     fMaxEta(0),
43     fMinPhi(0),
44     fMaxPhi(0)
45 {}
46
47 //____________________________________________________________________
48 AliFMDMultRegion::AliFMDMultRegion(UShort_t detector,  Char_t ring, 
49                                    UShort_t minSector, UShort_t maxSector, 
50                                    UShort_t minStrip,  UShort_t maxStrip, 
51                                    Float_t  minEta,    Float_t  maxEta, 
52                                    Float_t  minPhi,    Float_t  maxPhi,
53                                    Float_t  particles, UShort_t method)
54   : AliFMDMult(particles, method),
55     fDetector(detector),
56     fRing(ring),
57     fMinSector(minSector),
58     fMaxSector(maxSector),
59     fMinStrip(minStrip),
60     fMaxStrip(maxStrip),
61     fMinEta(minEta),
62     fMaxEta(maxEta),
63     fMinPhi(minPhi),
64     fMaxPhi(maxPhi)
65 {}
66
67
68 //____________________________________________________________________
69 void
70 AliFMDMultRegion::Print(Option_t* option) const
71 {
72   // Print information 
73   // 
74   // Options:
75   //    D:           Detector (default)
76   //    S:           Sector range 
77   //    T:           Strip range 
78   //    E:           Eta range (default)
79   //    P:           Phi range (default)
80   //
81   TString opt(option);
82   cout << "FMD Reconstructed particles: " << fParticles << endl;
83   if (opt.Contains("D", TString::kIgnoreCase))
84     cout << "  Detector:      FMD" << fDetector << fRing << endl;
85   if (opt.Contains("S", TString::kIgnoreCase))
86     cout << "  Sector range:  [" << fMinSector << "," << fMaxSector << endl;
87   if (opt.Contains("T", TString::kIgnoreCase))
88     cout << "  Strip range:   [" << fMinStrip << "," << fMaxStrip << endl;
89   if (opt.Contains("E", TString::kIgnoreCase))
90     cout << "  Eta range:     [" << fMinEta << "," << fMaxEta << endl;
91   if (opt.Contains("P", TString::kIgnoreCase))
92     cout << "  Phi range:     [" << fMinPhi << "," << fMaxPhi << endl;
93   AliFMDMult::Print(option);
94 }
95
96     
97 //____________________________________________________________________
98 //
99 // EOF
100 //