Skip to content
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

residual plots for DQM #17645

Merged
merged 6 commits into from Apr 3, 2017
Merged

Conversation

aspiezia
Copy link
Contributor

Mean and RMS of the residuals of the tracks have been added in the DQM. Details can be found in this presentation:
https://indico.cern.ch/event/536893/contributions/2389697/attachments/1388650/2114441/AnielloSpiezia_141216.pdf

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @aspiezia for CMSSW_9_0_X.

It involves the following packages:

DQM/SiStripMonitorClient
DQM/TrackerMonitorTrack

@cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@hdelanno, @makortel, @fioriNTU, @idebruyn, @threus, @venturia this is something you requested to watch as well.
@davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 28, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/18009/console Started: 2017/02/28 15:39

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

std::string topFolderName_ = "SiStrip";
SiStripFolderOrganizer folder_organizer;
folder_organizer.setSiStripFolderName(topFolderName_);
tkhisto_ResidualsMean = new TkHistoMap(ibooker , topFolderName_ ,"TkHMap_ResidualsMean", 0.0,true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aspiezia - do these need to be deleted? Better to make them unique_ptrs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HI, I cannot find the end of job where I can delete the object. I have tried to look for some examples in cmssw and I cannot find a place where these tkhisto maps are deleted (see for example https://github.com/aspiezia/cmssw/blob/a0a714e6c65870a27ee5a346d1d0e75367573276/DQM/SiStripMonitorTrack/src/SiStripMonitorTrack.cc#L153). Do you have a suggestion?

Copy link
Contributor

@dmitrijus dmitrijus Mar 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @aspiezia,
forget about deleting those at the end job and do what @davidlange6 suggested - use unique_ptrs.

Modify https://github.com/aspiezia/cmssw/blob/a0a714e6c65870a27ee5a346d1d0e75367573276/DQM/SiStripMonitorTrack/interface/SiStripMonitorTrack.h#L131 and change TkHistoMap *x to std::unique_ptr<TkHistoMap> x;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dmitrijus and @davidlange6, thanks a lot for the suggestion.

Consider that https://github.com/aspiezia/cmssw/blob/a0a714e6c65870a27ee5a346d1d0e75367573276/DQM/SiStripMonitorTrack/interface/SiStripMonitorTrack.h#L131 is not the code I am modifying. It was just an example showing that everywhere in cmssw, the tracker maps are defined as I am doing.

Anyway, I have tried your suggestion in the code I am modifing and it does not compile because of this line: https://github.com/aspiezia/cmssw/blob/a0a714e6c65870a27ee5a346d1d0e75367573276/DQM/SiStripMonitorTrack/interface/SiStripMonitorTrack.h#L131
Do you have a suggestion on how to change it?

Thanks,
Aniello

@davidlange6
Copy link
Contributor

-1
pending answers to comment

@cmsbuild
Copy link
Contributor

@aspiezia
Copy link
Contributor Author

aspiezia commented Mar 8, 2017

I have removed the "TkHMap_ResidualsRMS" that was a copy of "TkHMap_ResidualsMean" and I have added the RMS map in DQM/SiStripMonitorClient/src/SiStripTrackerMapCreator.cc as suggested by @fioriNTU
I am still waiting for a suggestion from @davidlange6 to understand how to delete the object tracker map at the end of the job.
Aniello

@davidlange6
Copy link
Contributor

i'm not sure I understand the question? You have some choices-

a)if you need to use bare pointers for some reason (I can't think of one), then anything you new has to be deleted when you are done with the object.
b) use a unique_ptr instead and then the compiler will manage the memory for you
c) don't use a pointer. Why is it needed in this case?

@davidlange6
Copy link
Contributor

davidlange6 commented Mar 8, 2017 via email

@aspiezia
Copy link
Contributor Author

aspiezia commented Mar 8, 2017

@davidlange6
Copy link
Contributor

davidlange6 commented Mar 8, 2017 via email

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 8, 2017

Pull request #17645 was updated. @cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please check and sign again.

@aspiezia
Copy link
Contributor Author

aspiezia commented Mar 8, 2017

Thanks a lot for the suggestion. The change has been implemented.

@cmsbuild
Copy link
Contributor

Pull request #17645 was updated. @cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please check and sign again.

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 21, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/18603/console Started: 2017/03/21 19:37

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit f859c88 into cms-sw:CMSSW_9_0_X Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants