Opened 2 years ago
Last modified 2 years ago
#1567 new Bug
A bug in the tcl file
Reported by: | Dayun-Qiu | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: | qiudy3@… |
Description
When I want to use DelphesHepMC3 to generate the root format file, it reports an error:
** INFO: initializing module chargeHadronMomentumSmearing input_line_48:1:132: error: exponent has no digits ...return (TMath::Abs(x[1]<=0.5)*(x[0]>0.1)*TMath::Sqrt(TMath::Power(0.06,2)+TMath::Power(x[0],2)*[[span(style=color: #FF0000, 1.3e-TMath )]]::Power(3,2))...
After checking, I found that the problem occurred in the tcl file (cards/delphes_card_CMS.tcl). For example, in line 155-157:
set ResolutionFormula { (abs(eta) <= 0.5) * (pt > 0.1) * sqrt(0.06^2 + pt^2*1.3e-3^2) + (abs(eta) > 0.5 && abs(eta) <= 1.5) * (pt > 0.1) * sqrt(0.10^2 + pt^2*1.7e-3^2) + (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 0.1) * sqrt(0.25^2 + pt^2*3.1e-3^2)}
In the above statement, 1.3e-3^2
is confusing. Did you mean (1.3e-3)^2
or 1.3e-(3^2)
? In the computer cluster I use, it is recognized as 1.3e-TMath::Power(3,2)
. It may be that the computer cluster I use does not recognize this syntax because the library version is lower, so it reports this error. When I correct it to (1.3e-3)^2
, the error will disappear.
Attachments (1)
Change History (2)
by , 2 years ago
Attachment: | 2023-01-06 00-41-36.png added |
---|
comment:1 by , 2 years ago
Cc: | added |
---|
The error message screenshot