]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliJetFillCalTrkEvent.cxx
Flexible pt range for the efficiency histogramming
[u/mrichter/AliRoot.git] / JETAN / AliJetFillCalTrkEvent.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, 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 // Filling of CalTrkEvent objects in the reader task
20 //
21 // Author: magali.estienne@subatech.in2p3.fr
22 //         alexandre.shabetai@cern.ch
23 //-------------------------------------------------
24
25 #include "AliJetFillCalTrkEvent.h"
26
27 // --- ROOT system ---
28 class TSystem;
29 class TLorentzVector;
30 class TVector3;
31 class TGeoManager;
32
33 // --- AliRoot header files ---
34 class AliJetFinder;
35 class AliJetReader;
36 class AliJetReader;
37 class AliJetReaderHeader;
38 class AliJetCalTrkEvent;
39
40 ClassImp(AliJetFillCalTrkEvent)
41
42 /////////////////////////////////////////////////////////////////////
43
44 AliJetFillCalTrkEvent::AliJetFillCalTrkEvent() :
45     fOpt(0),
46     fDebug(0),
47     fReaderHeader(0x0),
48     fCalTrkEvent(0x0),
49     fGeom(0x0)
50 {
51   // constructor
52 }
53
54 //-----------------------------------------------------------------------
55 AliJetFillCalTrkEvent::AliJetFillCalTrkEvent(const AliJetFillCalTrkEvent& cpfrom) :
56     fOpt(0),
57     fDebug(0),
58     fReaderHeader(0x0),
59     fCalTrkEvent(0x0),
60     fGeom(0x0)
61 {
62     // Copy constructor
63     fOpt              = cpfrom.fOpt;
64     fDebug            = cpfrom.fDebug;
65     fReaderHeader     = cpfrom.fReaderHeader;
66     fCalTrkEvent     = cpfrom.fCalTrkEvent;
67     fGeom             = cpfrom.fGeom;
68 }
69
70 //-----------------------------------------------------------------------
71 AliJetFillCalTrkEvent& AliJetFillCalTrkEvent::operator=(const AliJetFillCalTrkEvent& rhs)
72 {
73    // Assignment operator
74   if (this != &rhs) {
75     fOpt              = rhs.fOpt;
76     fDebug            = rhs.fDebug;
77     fReaderHeader     = rhs.fReaderHeader;
78     fCalTrkEvent     = rhs.fCalTrkEvent;
79     fGeom             = rhs.fGeom;
80   }
81   
82   return *this;
83     
84 }
85
86 //-----------------------------------------------------------------------
87 AliJetFillCalTrkEvent::~AliJetFillCalTrkEvent()
88 {
89   // destructor
90 }
91
92 //-----------------------------------------------------------------------
93 Float_t  AliJetFillCalTrkEvent::EtaToTheta(Float_t arg)
94 {
95   // Transform eta to theta
96   return 2.*atan(exp(-arg));
97 }
98
99
100
101
102
103
104