using namespace std;
#include <stdlib.h>
#include <iostream>
#include "hhypPPPipPimMppMinvAlg.h"
#include "hypinfodef.h"
ClassImp(HHypPPPipPimMppMinvAlg)
HHypPPPipPimMppMinvAlg::HHypPPPipPimMppMinvAlg(Char_t *name_i, Option_t par[])
:HHypBaseAlgorithm(name_i,par)
{
}
HHypPPPipPimMppMinvAlg::~HHypPPPipPimMppMinvAlg()
{
}
Bool_t HHypPPPipPimMppMinvAlg::execute()
{
if (!beam) {
cerr << algoName << " needs beam particle! " << endl;
return kFALSE;
}
mylist->CombIteratorReset();
while (mylist->CombIterator()) {
TLorentzVector proton1 = mylist->getTLorentzVector("p", 1);
TLorentzVector proton2 = mylist->getTLorentzVector("p", 2);
TLorentzVector pip = mylist->getTLorentzVector("pi+", 1);
TLorentzVector pim = mylist->getTLorentzVector("pi-", 1);
if (mylist->getIterStatus() == kTRUE) {
TLorentzVector pp_miss = (*beam) - (proton1 + proton2);
TLorentzVector pippim_invmass = (pip + pim);
if (pp_miss.M2() < pippim_invmass.M2())
mylist->removeComb();
}
}
if (exitIdx > -1)
return kTRUE;
return kFALSE;
}
Bool_t HHypPPPipPimMppMinvAlg::init()
{
return kTRUE;
}
Bool_t HHypPPPipPimMppMinvAlg::reinit()
{
return kTRUE;
}
Bool_t HHypPPPipPimMppMinvAlg::finalize()
{
return kTRUE;
}
Last change: Sat May 22 12:58:01 2010
Last generated: 2010-05-22 12:58
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.