reading RAW without data
[u/mrichter/AliRoot.git] / HBTAN / AliHBTPair.cxx
CommitLineData
1b446896 1#include "AliHBTPair.h"
58ee8590 2//_________________________________________________________________________
3///////////////////////////////////////////////////////////////////////////
4//
5// class AliHBTPair
6//
7// class implements pair of particles and taking care of caluclation (almost)
8// all of pair properties (Qinv, InvMass,...)
d012b7d0 9//
c7ffd78f 10// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
58ee8590 11//
12////////////////////////////////////////////////////////////////////////////
13
78d7c6d3 14#include "AliVAODParticle.h"
dd82cadc 15#include "AliHBTWeights.h"
1b446896 16
17ClassImp(AliHBTPair)
18
1b446896 19/************************************************************************/
ec6e4013 20AliHBTPair::AliHBTPair(Bool_t rev):
78d7c6d3 21 AliAODPair(rev),
dd82cadc 22 fWeight(0.0),
78d7c6d3 23 fWeightNotCalc(kTRUE)
1b446896 24 {
78d7c6d3 25//Constructor
1b446896 26
27 }
28/************************************************************************/
ec6e4013 29
78d7c6d3 30AliHBTPair::AliHBTPair(AliVAODParticle* part1, AliVAODParticle* part2, Bool_t rev):
31 AliAODPair(part1,part2,rev),
dd82cadc 32 fWeight(0.0),
78d7c6d3 33 fWeightNotCalc(kTRUE)
ec6e4013 34 {
78d7c6d3 35//constructor
ec6e4013 36
37 }
38/************************************************************************/
d012b7d0 39AliHBTPair::AliHBTPair(const AliHBTPair& in):
78d7c6d3 40 AliAODPair(in),
41 fWeight(in.fWeight),
42 fWeightNotCalc(in.fWeightNotCalc)
d012b7d0 43{
44 //cpy constructor
d012b7d0 45}
46/************************************************************************/
47
34914285 48AliHBTPair& AliHBTPair::operator=(const AliHBTPair& in)
d012b7d0 49{
50 //Assigment operator
51 in.Copy(*this);
52 return *this;
53}
34914285 54/************************************************************************/
ec6e4013 55
dd82cadc 56Double_t AliHBTPair::GetWeight()
47d9a058 57{
58ee8590 58 //returns and buffers weight for this pair
dd82cadc 59 if (fWeightNotCalc)
47d9a058 60 {
dd82cadc 61 fWeight = AliHBTWeights::Weight(this);
62 fWeightNotCalc = kFALSE;
47d9a058 63 }
dd82cadc 64 return fWeight;
47d9a058 65}
087f87e7 66/************************************************************************/