-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new CRV light default print #656
Conversation
☀️ The tests passed at bcf92c0.
N.B. These results were obtained from a build of this Pull Request at bcf92c0 after being merged into the base branch at b826a22. For more information, please check the job page here. |
} | ||
std::cout << "CRV light sectors: " << _makeCrvPhotons.size() << " hash:" << hash <<std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The printout between lines 225 an 235 and on line 237 is not protected by a debug level. I am checking that this is intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, intended. Recall when we discussed the print for the geometry and conditions files. We decided that they should not be able to be turned off, since we wanted to force the logging of the critical inputs, including the hash. This line follows that pattern.
std::cout<<"CRV sector "<<i<<" ("<<_CRVSectors[i]<<") uses "<<_makeCrvPhotons.back()->GetFileName()<<" with scintillation yield of "<<_scintillationYields[i]<<" photons/MeV"<<std::endl; | ||
if(_debug>0) std::cout<<"CRV sector "<<i<<" ("<<_CRVSectors[i]<<") uses "<<_makeCrvPhotons.back()->GetFileName()<<" with scintillation yield of "<<_scintillationYields[i]<<" photons/MeV"<<std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sector-by-sector print outs of the scintillation yields is of some importance, because we are running simulations with different scintillation yields where the log files may be useful to recover the values that were used. What is the requirement to print out information at debug level 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My goal is to keep asking if prints are necessary and apply some pressure to keep it down. I'll leave it
to the group to determine "necessary". For this study, you could turn the debug to 1 in your fcl.
Or will the changes be made with different light files in different directories, in which
case the directory path print captures it? We also have the choice to set the debug level in
different ways, for example, leave it off by default but turn it on by default for all Production fcl.
We already do that for other flags. If the decision is to restore the print, we could try to reduce its
visual impact a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ehrlich-uva are you happy with Ray's reply or do you still want a change? If you are happy, please approve the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scintillation yields of the individual CRV sectors is important information. That's why I was wondering whether it could be kept in the log file regardless of the debug level.
As an alternative, we could set the default debug level to 1 for the CrvPhotonGenerator so that all relevant information gets printed out by default. In this case, debug>0 in MakeCrvPhotons.cc could be changed to debug>1, since this part is less relevant.
@rlcee The lookup-table files and directories don't change when different scintillation yields are used.
@@ -202,18 +210,31 @@ namespace mu2e | |||
{ | |||
tableLoaded=true; | |||
_makeCrvPhotons.emplace_back(_makeCrvPhotons[j]); | |||
std::cout<<"CRV sector "<<i<<" ("<<_CRVSectors[i]<<") uses "<<_makeCrvPhotons.back()->GetFileName()<<std::endl; | |||
if(_debug>0) std::cout<<"CRV sector "<<i<<" ("<<_CRVSectors[i]<<") uses "<<_makeCrvPhotons.back()->GetFileName()<<std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please replace this line by
if(_debug>0) std::cout<<"CRV sector "<<i<<" ("<<_CRVSectors[i]<<") uses "<<_makeCrvPhotons.back()->GetFileName()<<" with scintillation yield of "<<_scintillationYields[i]<<" photons/MeV"<<std::endl;
@@ -222,7 +222,6 @@ namespace mu2e | |||
filedirs.insert( std::filesystem::path(filespec).parent_path() ); | |||
photonMaker->LoadLookupTable(filespec,_debug); | |||
photonMaker->SetScintillationYield(_scintillationYields[i]); | |||
if(_debug>0) std::cout<<"CRV sector "<<i<<" ("<<_CRVSectors[i]<<") uses "<<_makeCrvPhotons.back()->GetFileName()<<" with scintillation yield of "<<_scintillationYields[i]<<" photons/MeV"<<std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should have stayed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like Ray has addressed this now. When you agree that this is ready, please approve the PR.
@FNALbuild run build test |
⌛ The following tests have been triggered for 69ee3c8: build (Build queue has 1 jobs) |
☀️ The tests passed at 69ee3c8.
N.B. These results were obtained from a build of this Pull Request at 69ee3c8 after being merged into the base branch at 42f89e1. For more information, please check the job page here. |
📝 The HEAD of |
Approved. |
Thanks @ehrlich-uva . When I said, please approve, I meant to go to the "Files change" link at the top right of this page. In the upper right of that page, there is a green "Review changes" box. Click on that which will open a popup window. I there click the "Approve" radio button. If you have want to enter a comment you can do so. Then click on the green "Submit review" button. Please do so when you have a chance. |
After consulting with Ralf, reduce default Crv light file prints from several stanzas of
Reading CRV lookup tables /cvmfs/mu2e.opensciencegrid.org/DataFiles/CRVConditions/v6_0/LookupTable_4550_0 ... Done.
CRV sector 0 (R1) uses /cvmfs/mu2e.opensciencegrid.org/DataFiles/CRVConditions/v6_0/LookupTable_4550_0 with scintillation yield of 16548 photons/MeV
to
CRV light files: /cvmfs/mu2e.opensciencegrid.org/DataFiles/CRVConditions/v6_0
CRV light sectors: 23 hash:10539762652061218902
mirroring the default prints for other input files.
The previous format is still available with a debug flag.
In other default print cases, the hashes are over the entire input file content, but here the hash is just on the file names. Hashing the content would require intrusive code, or re-reading the files.