Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// pbarpEnv class definition file. -*- C++ -*-
// Copyright 2012 Bertram Kopf
#pragma once
#include <iostream>
#include <vector>
#include <map>
#include <vector>
#include <string>
#include <sstream>
#include <boost/shared_ptr.hpp>
#include "PwaUtils/DataUtils.hh"
#include "pbarpUtils/pbarpParser.hh"
#include "pbarpUtils/pbarpHist.hh"
class Particle;
class ParticleTable;
class pbarpReaction;
class IsobarDecayList;
class pbarpEventList;
//class pbarpHist;
class pbarpEnv {
public:
static pbarpEnv* instance();
~pbarpEnv();
void setup(pbarpParser& thePbarpParser);
ParticleTable* particleTable() {return _particleTable;}
const int lmax() const {return _lmax;}
const int noFinalStateParticles() {return _noFinalStateParticles;}
std::vector<Particle*> finalStateParticles() {return _finalStateParticles;}
std::vector<std::pair<Particle*, Particle*> > producedParticlePairs() {return _producedParticlePairs;}
boost::shared_ptr<IsobarDecayList> decayList() {return _decList;}
boost::shared_ptr<IsobarDecayList> prodDecayList() {return _prodDecList;}
boost::shared_ptr<pbarpReaction> reaction() {return _pbarpReaction;}
std::vector<std::vector<std::string> >& histMassSystems() {return _histMassSystems;}
std::vector<boost::shared_ptr<angleHistData> >& angleHistDataVec() {return _angleHistDataVec;}
const std::string outputFileNameSuffix() const {return _outputFileNameSuffix;}
protected:
pbarpEnv();
static pbarpEnv* _instance;
bool _alreadySetUp;
int _lmax;
int _noFinalStateParticles;
ParticleTable* _particleTable;
std::vector<Particle*> _finalStateParticles;
std::vector<std::pair<Particle*, Particle*> > _producedParticlePairs;
boost::shared_ptr<IsobarDecayList> _decList;
boost::shared_ptr<IsobarDecayList> _prodDecList;
boost::shared_ptr<pbarpReaction> _pbarpReaction;
std::vector<std::vector<std::string> > _histMassSystems;
std::vector<boost::shared_ptr<angleHistData> > _angleHistDataVec;