#ifndef _Particle_ #define _Particle_ #include #include #include "particleType.h" #include "HCA_Amplitudes/resonanceinfo.h" using namespace std; class Particle { public: Particle(Particle_t locPID) : dMassParamName(""), dWidthParamName(""), dPID(locPID) { if(locPID == Unknown) { cout << "ERROR: Unknown PID NOT ALLOWED IN Particle CONSTRUCTOR. ABORTING." << endl; abort(); } dCharge = ParticleCharge(locPID); dJTimes2 = ParticleJTimes2(locPID); dParity = ParticleParity(locPID); dMass = ParticleMass(locPID); dWidth = ParticleWidth(locPID); dIsResonanceFlag = IsResonance(locPID); } Particle(Particle_t locPID, int locCharge, int locJTimes2, int locParity, double locMass, double locWidth, bool locIsResonanceFlag) : dMassParamName(""), dWidthParamName(""), dPID(locPID), dCharge(locCharge), dJTimes2(locJTimes2), dParity(locParity), dMass(locMass), dWidth(locWidth), dIsResonanceFlag(locIsResonanceFlag) {} string dMassParamName; string dWidthParamName; Particle_t dPID; int dCharge; int dJTimes2; int dParity; double dMass; double dWidth; bool dIsResonanceFlag; }; #endif //_Particle_