added configurable parameters maxAssocCaloE and maxAssocCaloEDeltaRSize

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)
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_ = consumes<reco::TrackCollection>(iConfig.getParameter<
edm::InputTag > ("inputTracksTag"));

  inputdedxToken_   = consumes<edm::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::vector<edm::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>.
>