00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "StHbtMaker/CorrFctn/ntuplePair.h"
00014
00015 #ifdef __ROOT__
00016 ClassImp(ntuplePair)
00017
00018 ntuplePair::ntuplePair()
00019 {
00020
00021 mTree = new TTree("PairTree","A Tree with all pairs");
00022
00023 mTree->Branch("pair",&mPair,"qinv/F:kt/F:rap/F:entSep/F:qual/F");
00024 }
00025
00026 ntuplePair::~ntuplePair()
00027 {
00028
00029 delete mTree;
00030 }
00031
00032 void ntuplePair::AddRealPair(const StHbtPair* Pair)
00033 {
00034
00035 mPair.qinv = Pair->qInv() ;
00036 mPair.kt = Pair->kT() ;
00037 mPair.rap = Pair->rap() ;
00038 mPair.entSep = Pair->NominalTpcEntranceSeparation() ;
00039 mPair.qual = Pair->quality() ;
00040
00041 mTree->Fill();
00042 }
00043
00044 void ntuplePair::AddMixedPair(const StHbtPair* Pair)
00045 {
00046
00047 }
00048
00049 void ntuplePair::Finish()
00050 {
00051
00052 }
00053
00054 StHbtString ntuplePair::Report()
00055 {
00056 StHbtString t;
00057 char Ctemp[100];
00058 sprintf(Ctemp,"Ntuple pair filled.\n");
00059 t+=Ctemp;
00060 return t;
00061 };
00062
00063 #endif // ifdef ROOT
00064