ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Quirk Class Reference

#include <Quirk.h>

Inheritance diagram for Quirk:
Collaboration diagram for Quirk:

Public Member Functions

 Quirk (const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable, G4bool shortlived, const G4String &subType="", G4int anti_encoding=0, G4double magneticMoment=0.0)
 
 ~Quirk ()
 
const InfracolorForceGetStringIn () const
 
InfracolorForceGetStringIn ()
 
 Quirk (const Quirk &)=delete
 
Quirkoperator= (const Quirk &)=delete
 

Private Attributes

InfracolorForcem_stringIn
 

Detailed Description

Definition at line 12 of file Quirk.h.

Constructor & Destructor Documentation

◆ Quirk() [1/2]

Quirk::Quirk ( const G4String &  aName,
G4double  mass,
G4double  width,
G4double  charge,
G4int  iSpin,
G4int  iParity,
G4int  iConjugation,
G4int  iIsospin,
G4int  iIsospin3,
G4int  gParity,
const G4String &  pType,
G4int  lepton,
G4int  baryon,
G4int  encoding,
G4bool  stable,
G4double  lifetime,
G4DecayTable *  decaytable,
G4bool  shortlived,
const G4String &  subType = "",
G4int  anti_encoding = 0,
G4double  magneticMoment = 0.0 
)

Definition at line 9 of file Quirk.cxx.

22  :
23  G4ParticleDefinition(
24  aName,mass,width,charge,iSpin,iParity,
25  iConjugation,iIsospin,iIsospin3,gParity,pType,
26  lepton,baryon,encoding,stable,lifetime,decaytable,
27  shortlived,subType,anti_encoding,magneticMoment
28  ),
30 {
31  G4ParticleTable* particleTable = GetParticleTable();
32  G4ParticleDefinition* partner = particleTable->FindParticle(GetAntiPDGEncoding());
33  if (partner != 0) {
34  Quirk* qpartner = dynamic_cast<Quirk*>(partner);
35  if (qpartner == 0) {
36  G4Exception("Quirk::Quirk", "NonQuirkAntiparticle", FatalErrorInArgument, "Antiparticle of quirk must be a quirk");
37  std::abort();
38  }
41  }
42 }

◆ ~Quirk()

Quirk::~Quirk ( )

Definition at line 44 of file Quirk.cxx.

44  {
45  delete m_stringIn;
46 }

◆ Quirk() [2/2]

Quirk::Quirk ( const Quirk )
delete

Member Function Documentation

◆ GetStringIn() [1/2]

InfracolorForce& Quirk::GetStringIn ( )
inline

Definition at line 30 of file Quirk.h.

30 { return *m_stringIn; }

◆ GetStringIn() [2/2]

const InfracolorForce& Quirk::GetStringIn ( ) const
inline

Definition at line 29 of file Quirk.h.

29 { return *m_stringIn; }

◆ operator=()

Quirk& Quirk::operator= ( const Quirk )
delete

Member Data Documentation

◆ m_stringIn

InfracolorForce* Quirk::m_stringIn
private

Definition at line 36 of file Quirk.h.


The documentation for this class was generated from the following files:
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
InfracolorForce::SetReactionForce
void SetReactionForce(InfracolorForce *reactionForce)
Definition: InfracolorForce.h:60
Quirk
Definition: Quirk.h:12
InfracolorForce
Definition: InfracolorForce.h:14
generateReferenceFile.encoding
encoding
Definition: generateReferenceFile.py:15
MCTruthPartClassifier::stable
@ stable
Definition: TruthClassifiers.h:148
charge
double charge(const T &p)
Definition: AtlasPID.h:538
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
Quirk::m_stringIn
InfracolorForce * m_stringIn
Definition: Quirk.h:36