Skip to content
Snippets Groups Projects
Commit 6894f4ac authored by Marc Pelizaeus's avatar Marc Pelizaeus
Browse files

Add mass indep. fits

parent 5575e700
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -52,6 +52,10 @@ public:
void useCommonProductionPhase( bool commonPhase ){_useCommonProductionPhase=commonPhase;}
void massIndependentFit( bool massIndep){ _massIndependentFit=massIndep; }
double calcComponentIntensity( EvtData* theData, fitParams& theParamVal, std::string component );
protected:
virtual complex<double> calcCoherentAmp(Spin Minit, Spin lamGam, fitParams& theParamVal, EvtData* theData);
......@@ -91,6 +95,25 @@ protected:
bool initializeFlatteModel( dynamicModelParams &theDynModel, const Vector4<double> &fv2Phi, double mass, double gPhiPhi, double gKK );
bool initializeBreitWignerModel(dynamicModelParams &theDynModel,const Vector4<double> &fv2Phi, double mass, double width, dynamicModelParams::enumDynamicModel theModel );
void calcEtacGammaAmp( EvtData* theData, fitParams& theParamVal, complex<double> &JmpGmp, complex<double> &JmpGmm, complex<double> &JmmGmp, complex<double> &JmmGmm,
dynamicModelParams::enumDynamicModel theModel);
void calcEta2225Amp(EvtData* theData, fitParams& theParamVal, complex<double> &JmpGmp, complex<double> &JmpGmm, complex<double> &JmmGmp, complex<double> &JmmGmm,
dynamicModelParams::enumDynamicModel theModel);
void calcF02020Amp(EvtData* theData, fitParams& theParamVal, complex<double> &JmpGmp, complex<double> &JmpGmm, complex<double> &JmmGmp, complex<double> &JmmGmm,
dynamicModelParams::enumDynamicModel theModel);
void calcF22300Amp(EvtData* theData, fitParams& theParamVal,complex<double> &JmpGmp, complex<double> &JmpGmm, complex<double> &JmmGmp, complex<double> &JmmGmm,
dynamicModelParams::enumDynamicModel theModel);
void calcE21870Amp(EvtData* theData, fitParams& theParamVal, complex<double> &JmpGmp, complex<double> &JmpGmm, complex<double> &JmmGmp, complex<double> &JmmGmm,
dynamicModelParams::enumDynamicModel theModel);
void calcF1Amp(EvtData* theData, fitParams& theParamVal, complex<double> &JmpGmp, complex<double> &JmpGmm, complex<double> &JmmGmp, complex<double> &JmmGmm,
dynamicModelParams::enumDynamicModel theModel);
bool _etacHyp;
bool _eta2225Hyp;
bool _f02020Hyp;
......
......@@ -265,10 +265,28 @@ int main(int __argc,char *__argv[]){
//calculate intensity contributions
//EvtData* evtdata = eventsData.getDataVecs();
//theLhPtr->calcEvtIntensity( evtdata , finalFitParams );
JpsiGamKsKlKKProdLh* contrLh = new JpsiGamKsKlKKProdLh(theJpsiGamKsKlKKEventListPtr, hypMap);
contrLh->massIndependentFit( theAppParams.massIndependentFit() );
contrLh->useCommonProductionPhase( theAppParams.useCommonProductionPhases() );
boost::shared_ptr<const EvtDataBaseList> theEvtList=contrLh->getEventList();
const std::vector<EvtData*> mcList=theEvtList->getDataVecs();
std::map<const std::string, bool>::const_iterator hypo= hypMap.begin();
while(hypo !=hypMap.end()){
if( hypo->second ){
std::vector<EvtData*>::const_iterator it=mcList.begin();
double integral=0.0;
while(it!=mcList.end()){
integral+=contrLh->calcComponentIntensity( *it, finalFitParams, hypo->first );
//integral+= theLhPtr->calcComponentIntensity( *it, finalFitParams, "etacHyp" );
it++;
}
Info << "Events for component " << hypo->first << ": " << integral << endmsg;
}
hypo++;
}
JpsiGamKsKlKKHist theHist(theLhPtr, finalFitParams);
......
......@@ -46,8 +46,8 @@ void plotQA(TString fName="./JpsiGamKsKlKK.root"){
c2->cd(ipad);
plotHist("_chi");
c1->Print("qaPlots.pdf(");
c2->Print("qaPlots.pdf)");
c1->Print("qaPlots.ps(");
c2->Print("qaPlots.ps)");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment