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

added configurable parameters maxAssocCaloE and maxAssocCaloEDeltaRSize #6168

Merged
merged 5 commits into from Nov 5, 2014

Conversation

jbrinson
Copy link
Contributor

@jbrinson jbrinson commented Nov 3, 2014

These configurable parameters calculate the associated calorimeter energy associated with a track (i.e. the sum of all calo tower deposits within a cone around the track)

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2014

A new Pull Request was created by @jbrinson for CMSSW_7_3_X.

added configurable parameters maxAssocCaloE and maxAssocCaloEDeltaRSize

It involves the following packages:

RecoTracker/DeDx

@cmsbuild, @nclopezo, @StoyanStoynev, @slava77 can you please review it and eventually sign? Thanks.
@ghellwig, @makortel, @GiacomoSguazzoni, @rovere, @VinInn, @appeltel, @gpetruc, @cerati, @dgulhan, @venturia this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2014

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2014

// See reference: https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCaloTowers
std::vector<edm::Handle<CaloTowerCollection> > prods;
try {
iEvent.getManyByType(prods);
Copy link
Contributor

Choose a reason for hiding this comment

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

why this try /catch? This should be removed.
Isn't the name of the collection known?

The CaloTowers should also be declared in the consumes part
https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideEDMGetDataFromEvent

Copy link
Contributor

Choose a reason for hiding this comment

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

My personal opinion is getManyByType is evil and wasteful.

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 Slava,

Could you tell me what you mean by 'The CaloTowers should also be declared
in the consumes part'? Do you mean to declare it here:

inputTracksTag_ = iConfig.getParameter< edm::InputTag > ("inputTracksTag");

inputdedxTag_ = iConfig.getParameter< edm::InputTag > ("inputDeDxTag");

inputTracksToken_ = consumesreco::TrackCollection(iConfig.getParameter<
edm::InputTag > ("inputTracksTag"));

inputdedxToken_ = consumesedm::ValueMap<reco::DeDxData >(iConfig.
getParameter< edm::InputTag > ("inputDeDxTag"));

Or maybe you could tell me what section of the twiki page you are referring
to?

Thank you so much for taking the time to look at this!

Cheers,

Jessica Brinson

On Mon, Nov 3, 2014 at 3:03 PM, Slava Krutelyov notifications@github.com
wrote:

In RecoTracker/DeDx/plugins/HLTDeDxFilter.cc:

@@ -144,6 +148,38 @@ bool
double relTrkIso = (ptCone - pt[i])/(pt[i]);
if (relTrkIso > maxRelTrkIsoDeltaRp3_) continue;
}
+

  •   //calculate the calorimeter energy associated with the track if maxAssocCaloE_ >= 0
    
  •   if(maxAssocCaloE_ >= 0){
    
  •   // Copy code from:  http://cmslxr.fnal.gov/lxr/source/DataFormats/CaloTowers/test/CaloTowersDump.cc
    
  •   // See reference:  https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideCaloTowers
    
  •   std::vectoredm::Handle<CaloTowerCollection > prods;
    
  •   try {
    
  •     iEvent.getManyByType(prods);
    

why this try /catch? This should be removed.
Isn't the name of the collection known?

The CaloTowers should also be declared in the consumes part
https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideEDMGetDataFromEvent


Reply to this email directly or view it on GitHub
https://github.com/cms-sw/cmssw/pull/6168/files#r19733699.

@slava77
Copy link
Contributor

slava77 commented Nov 3, 2014

Hi Jessica,

Yes, the constructor should have consumes<CaloTowerCollection>...

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2014

@slava77
Copy link
Contributor

slava77 commented Nov 5, 2014

+1

for #6168 b77e313
jenkins compiled ok, code updates visually ok

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). This pull request will be automatically merged.

cmsbuild added a commit that referenced this pull request Nov 5, 2014
added configurable parameters maxAssocCaloE and maxAssocCaloEDeltaRSize
@cmsbuild cmsbuild merged commit 0edc01c into cms-sw:CMSSW_7_3_X Nov 5, 2014
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

5 participants