]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/JCORRAN/AliJTrackCounter.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJTrackCounter.h
1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3
4 // Short comment describing what this class does needed!
5
6 //===========================================================
7 // AliJTrackCounter.h
8 //   Created  Fri Mar 11 15:24:11 EET 2011  by classmaker
9 //   Jan Rak
10 //===========================================================
11
12 #ifndef ALIJTRACKCOUNTER_H
13 #define ALIJTRACKCOUNTER_H
14
15 #ifndef ROOT_TObject
16 #include <TObject.h>
17 #endif
18
19 #include <iostream>
20 #include <fstream>
21 #include <stdlib.h>
22 #include <stdio.h>
23
24 using namespace std;
25
26 class AliJTrackCounter : public TObject {
27
28     public:
29         AliJTrackCounter();    //constructor
30
31         AliJTrackCounter(int inind0, int inind1, int inlist0, int inlist1, double indphi);
32
33         virtual ~AliJTrackCounter(){;}    //destructor
34
35
36         void Reset();
37         bool Exists() const {return fpt>=0 ? true : false;}
38         void Store(int inind, double inpt, int inBin){findex=inind; fpt=inpt; fptBin=inBin;}
39         int GetIndex() const {return findex;}
40         void SetIndex(int inIdx) {findex=inIdx;}
41         double Pt() const {return fpt;} // BS to compatible with AliJBaseTrack
42         double GetPt() const {return fpt;}
43         int GetPtBin() const {return fptBin;}
44
45         int GetPairTrackID(int ip ) const {return (ip==0||ip==1) ? fpairTrackID[ip] : -1; }
46         int GetPairListID(int ip ) const {return (ip==0||ip==1) ? fpairListID[ip] : -1; }
47         double GetPairDPhi() const {return fdphi;}
48
49         void Print(Option_t* option = "") const{
50            // We must have option here because Print overrides the same function from TObject
51            // TODO: make some sensible use of option
52             cout<<"LPindex="<<findex << option <<" LPpt="<<fpt <<" bin= "<<fptBin 
53                 <<" fpairTrackID[0]="<<fpairTrackID[0] <<" fpairTrackID[1]="<<fpairTrackID[1] <<" pairDPHI="<< fdphi<< endl;    
54         }
55
56        AliJTrackCounter& operator=(const AliJTrackCounter& counter);
57
58     protected:
59
60         int findex;  // comment me
61         
62         int fpairTrackID[2];  // comment me
63         int fpairListID[2];  // comment me
64         int fptBin;  // comment me
65         double fpt;  // comment me
66         double fdphi;  // comment me
67
68         ClassDef(AliJTrackCounter,1)
69 };
70
71 #endif
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93