本文整理汇总了C++中Vec4D::Eta方法的典型用法代码示例。如果您正苦于以下问题:C++ Vec4D::Eta方法的具体用法?C++ Vec4D::Eta怎么用?C++ Vec4D::Eta使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vec4D
的用法示例。
在下文中一共展示了Vec4D::Eta方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void Three_Particle_Correlation::
Evaluate(const Vec4D & mom1,const Vec4D & mom2,const Vec4D & mom3,double weight, double ncount)
{
double eta1 = mom1.Eta();
double eta2 = mom2.Eta();
double eta3 = mom3.Eta();
if (ATOOLS::dabs(eta1)>2. || ATOOLS::dabs(eta2)>2. || ATOOLS::dabs(eta3)>2.) return;
double phi1 = mom1.Phi();
double phi2 = mom2.Phi();
double phi3 = mom3.Phi();
double delta12 = ATOOLS::dabs(phi1-phi2); delta12 = ATOOLS::Min(delta12,2.*M_PI-delta12);
double delta23 = ATOOLS::dabs(phi2-phi3); delta23 = ATOOLS::Min(delta23,2.*M_PI-delta23);
double delta31 = ATOOLS::dabs(phi3-phi1); delta31 = ATOOLS::Min(delta31,2.*M_PI-delta31);
if (ATOOLS::dabs(eta1-eta2)>2.) p_histo->Insert(delta12,weight,ncount);
if (ATOOLS::dabs(eta2-eta3)>2.) p_histo->Insert(delta23,weight,ncount);
if (ATOOLS::dabs(eta3-eta1)>2.) p_histo->Insert(delta31,weight,ncount);
if (mom1.PPerp()>10. || mom2.PPerp()>10. || mom3.PPerp()>10.) {
if (ATOOLS::dabs(eta1-eta2)>2.) p_histo10->Insert(delta12,weight,ncount);
if (ATOOLS::dabs(eta2-eta3)>2.) p_histo10->Insert(delta23,weight,ncount);
if (ATOOLS::dabs(eta3-eta1)>2.) p_histo10->Insert(delta31,weight,ncount);
}
if (mom1.PPerp()>20. || mom2.PPerp()>20. || mom3.PPerp()>20.) {
if (ATOOLS::dabs(eta1-eta2)>2.) p_histo20->Insert(delta12,weight,ncount);
if (ATOOLS::dabs(eta2-eta3)>2.) p_histo20->Insert(delta23,weight,ncount);
if (ATOOLS::dabs(eta3-eta1)>2.) p_histo20->Insert(delta31,weight,ncount);
}
if (mom1.PPerp()>50. || mom2.PPerp()>50. || mom3.PPerp()>50.) {
if (ATOOLS::dabs(eta1-eta2)>2.) p_histo50->Insert(delta12,weight,ncount);
if (ATOOLS::dabs(eta2-eta3)>2.) p_histo50->Insert(delta23,weight,ncount);
if (ATOOLS::dabs(eta3-eta1)>2.) p_histo50->Insert(delta31,weight,ncount);
}
if (mom1.PPerp()>100. || mom2.PPerp()>100. || mom3.PPerp()>100.) {
if (ATOOLS::dabs(eta1-eta2)>2.) p_histo100->Insert(delta12,weight,ncount);
if (ATOOLS::dabs(eta2-eta3)>2.) p_histo100->Insert(delta23,weight,ncount);
if (ATOOLS::dabs(eta3-eta1)>2.) p_histo100->Insert(delta31,weight,ncount);
}
}
示例2: Evaluate
void EtaTracksAsym::Evaluate(const Vec4D & mom,double weight,double ncount)
{
double eta = 0.;
eta=mom.Eta();
if (eta<0.) {
p_histo->Insert(-eta,-weight,ncount);
}
else {
p_histo->Insert(eta,weight,ncount);
}
}
示例3: OrderV
static bool OrderV(const Vec4D &a,const Vec4D &b)
{ return dabs(a.Eta())>dabs(b.Eta()); }
示例4: Calc
double EV_SC_Eta::Calc(const Vec4D &mom)
{
return mom.Eta();
}
示例5: Evaluate
void Three_Particle_DEta::Evaluate(const Vec4D & mom1,const Vec4D & mom2,const Vec4D & mom3,double weight, double ncount)
{
Vec4D mother = mom1+mom2;
double deta = abs((mother.Eta()-mom3.Eta()));
p_histo->Insert(deta,weight,ncount);
}