示例#1
0
  AParticle::AParticle(const AParticle& apart)
  {
  	SetID(apart.GetID());
  	SetParticleName(apart.GetParticleName());
  	SetIsPrimary(apart.GetIsPrimary());
  	SetCharge(apart.GetCharge());
  	SetVertex(apart.GetVertex());
  	SetP4(apart.GetP4());
    SetMotherID(apart.GetMotherId());
    SetDebug(apart.GetDebug());

    std::map <std::string, std::string> props = apart.GetProperties();
    for (auto prop : props) SetProperty(prop.first, prop.second);
  }
示例#2
0
	AParticle::AParticle(int Id, std::string name, 
											bool isPrimary, double charge, 
         							TVector3 vertex, 
         							TLorentzVector p4,
                      int motherID)
  {
 		SetID(Id);
  	SetParticleName(name);
  	SetIsPrimary(isPrimary);
 		SetCharge(charge);
 		SetVertex(vertex);
  	SetP4(p4);
    SetMotherID(motherID);
    InitLogger("Aparticle");
    fDebug = "WARN";
    SetDebugLevel(fDebug,"Aparticle");
  }
示例#3
0
文件: Tan.cpp 项目: reverant/Tangram
void Tan::SetP(int i,wxPoint p){
    switch(i){
        case 1:
            SetP1(p);
            break; 
        case 2:
            SetP2(p);
            break; 
        case 3:
            SetP3(p);
            break; 
        case 4:
            SetP4(p);
            break;
        default:
            break;     
    }
}