Skip to content

Commit

Permalink
fix label for PU tracks used in digi-reco PU mixing, made branch with…
Browse files Browse the repository at this point in the history
… track MVA values available for PU mixing
  • Loading branch information
Lukas committed Mar 31, 2015
1 parent d536e09 commit a0e8bfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FastSimulation/Configuration/python/mixObjects_cfi.py
Expand Up @@ -43,7 +43,7 @@

# fastsim mixes reconstructed tracks
mixReconstructedTracks = cms.PSet(
input = cms.VInputTag(cms.InputTag("generalTracks")),
input = cms.VInputTag(cms.InputTag("generalTracksBeforeMixing")),
type = cms.string('RecoTrack')
)

Expand Down
5 changes: 4 additions & 1 deletion SimGeneral/MixingModule/plugins/MixingModule.cc
Expand Up @@ -33,6 +33,7 @@
#include "SimGeneral/MixingModule/interface/DigiAccumulatorMixMod.h"
#include "SimGeneral/MixingModule/interface/DigiAccumulatorMixModFactory.h"
#include "SimGeneral/MixingModule/interface/PileUpEventPrincipal.h"
#include "DataFormats/Common/interface/ValueMap.h"

namespace edm {

Expand Down Expand Up @@ -103,8 +104,10 @@ namespace edm {
branchesActivate(TypeID(typeid(std::vector<reco::Track>)).friendlyClassName(),std::string(""),tag,label);
branchesActivate(TypeID(typeid(std::vector<reco::TrackExtra>)).friendlyClassName(),std::string(""),tag,label);
branchesActivate(TypeID(typeid(edm::OwnVector<TrackingRecHit,edm::ClonePolicy<TrackingRecHit> >)).friendlyClassName(),std::string(""),tag,label);
InputTag mvatag(tag.label(),"MVAVals");
branchesActivate(TypeID(typeid(edm::ValueMap<float>)).friendlyClassName(),std::string(""),mvatag,label);
// note: no crossing frame is foreseen to be used for this object type

LogInfo("MixingModule") <<"Will mix "<<object<<"s with InputTag= "<<tag.encode()<<", label will be "<<label;
//std::cout <<"Will mix "<<object<<"s with InputTag= "<<tag.encode()<<", label will be "<<label<<std::endl;

Expand Down

0 comments on commit a0e8bfd

Please sign in to comment.