1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 // Short comment describing what this class does needed!
6 //===========================================================
8 // Created Fri Mar 11 15:24:11 EET 2011 by classmaker
10 //===========================================================
12 #ifndef ALIJTRACKCOUNTER_H
13 #define ALIJTRACKCOUNTER_H
26 class AliJTrackCounter : public TObject {
29 AliJTrackCounter(); //constructor
31 AliJTrackCounter(int inind0, int inind1, int inlist0, int inlist1, double indphi);
33 virtual ~AliJTrackCounter(){;} //destructor
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;}
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;}
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;
56 AliJTrackCounter& operator=(const AliJTrackCounter& counter);
60 int findex; // comment me
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
68 ClassDef(AliJTrackCounter,1)