UpdatingMyRootMakerfrom CMSSW_5_3_18 to CMSSW_7_0_9_patch1


Current status (2014-11-11)

Files:

53X: DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball

root://cms-xrd-global.cern.ch//store/mc/Summer12_DR53X/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/AODSIM/PU25bx25_START53_V19D-v1/20000/0C8546EA-F0CC-E211-A809-002481E154CE.root

70X: DYJetsToEEMuMu_M-800To1400_13TeV-madgraph

ZprimeToTauTau_M-5000_Tune4C_13TeV-pythia8

root://cms-xrd-global.cern.ch//store/mc/Spring14dr/DYJetsToEEMuMu_M-800To1400_13TeV-madgraph/AODSIM/PU20bx25_POSTLS170_V5-v1/00000/2C43CC16-E708-E411-8DE5-848F69FD4FB5.root

root://cms-xrd-global.cern.ch//store/mc/Spring14dr/ZprimeToTauTau_M-5000_Tune4C_13TeV-pythia8/AODSIM/PU20bx25_POSTLS170_V5-v1/00000/02551B35-D4E4-E311-A19C-002481E0D5E2.root

Everything but PAT is included now:

Branch 53X 70X
errors = 0 = 0
event_* filled filled
trigger_* filled filled
beamspot_* filled filled
track_* filled filled
primvertex_* filled filled
     
supercluster_count nonzero nonzero
supercluster_* filled filled
supercluster_nbasiccluster filled filled
supercluster_basiccluster_* absent absent
supercluster_basicclusterbegin* = 0 = 0
supercluster_basiccluster_count* = 0 = 0
supercluster_basiccluster_hit_count* = 0 = 0
supercluster_escluster_* absent absent
supercluster_esclusterbegin = 0 = 0
supercluster_escluster_count = 0 = 0
supercluster_escluster_hit_count = 0 = 0
     
muon_* filled filled
muon_innertrack_* filled filled
muon_outertrack_* filled filled
muon_isolation* filled filled
muon_pfisolation* filled filled
     
ak5calojet_count = 0 = 0
ak5calojet_* absent absent
ak5jptjet_count = 0 = 0
ak5jptjet_* absent absent
ak5pfjet_count nonzero nonzero
ak5pfjet_* filled filled
ak5pfchsjet_count nonzero nonzero
ak5pfchsjet_* filled filled
     
electron_count nonzero nonzero
electron_* filled filled
electron_isolation* filled filled
electron_supercluster_* filled filled
     
photon_count nonzero nonzero
photon_* filled filled
photon_isolation* filled filled
photon_isolationpfr3* filled filled
photon_isolationpfr4noscfootprint* filled filled
photon_supercluster_* filled filled
photon_trigger =0 = 0
photon_conversionbegin nonzero nonzero
conversion_count nonzero nonzero
conversion_* filled filled
allconversion_count = 0 = 0
allconversion_* absent absent
     
taus_count   = 0
taus_*   absent
     
pfmet_* filled filled
pfmettype1_* filled filled
pfmettype0type1_* filled filled
secvertices_count = 0 = 0
secvertices_* absent absent
musecvertices_count = 0 = 0
musecvertices_* absent absent
genweight 1 1
genid1 filled filled
genx1 filled filled
genid2 filled filled
genx2 filled filled
genScale filled filled
numpileupinteractionsminus filled filled
numpileupinteractions filled filled
numpileupinteractionsplus filled filled
numtruepileupinteractions filled filled
     
genparticles_count = 0 = 0
genparticles_* absent absent
genallparticles_count nonzero nonzero
genallparticles_* filled filled
genallparticlesmother_* filled filled
genallparticlesdaughter_* filled filled
genmetcalo_* filled filled
genmettrue_* filled filled
genak5jet_count nonzero nonzero
genak5jet_* filled filled

Code

https://github.com/ekenn003/MyRootMaker

Important files Contains
src/MyRootMaker/MyRootMaker/RootTreeMC.py Global tag, test dataset
src/MyRootMaker/MyRootMaker/src/RootMaker.cc the analyser - what goes into the AC1B tree at end
src/MyRootMaker/MyRootMaker/interface/RootMaker.h header for analyser
src/MyRootMaker/MyRootMaker/BuildFile.xml parts of CMS software that analyser has to know about
src/MyRootMaker/MyRootMaker/python/RootMakerTemplateXX_cfg.py global tag; imported by RootTreeMC.py

Set up CMSSW and git

Moved to here

Compilation

Go to source directory and compile
cd CMSSW_7_0_9_patch1/src
scram b

Will try to compile and fix errors / add packages as needed.

Better make sure I have all the packages I need, that are listed in ../../CMSSW_5_3_18/src on the cmssw github page. Copy over the ones that aren't:

cp -r ../../CMSSW_5_3_18/src/EventFilter/Eventfilter .
cp -r ../../CMSSW_5_3_18/src/RecoMET/METAnalyzers .
compiles ok.


Compiling

CMSSW_5_3_18

compiles and runs on 8 tev mc (produced in CMSSW5) CMSSW_5_3_18_dirlist.txt

CMSSW_7_0_9_patch1

Errors

EGamma/EGammaAnalysisTools/src/PFIsolationEstimator.cc: No such file or directory (solved)

.../MyRootMaker/MyRootMaker/interface/RootMaker.h:139:66: 
fatal error: EGamma/EGammaAnalysisTools/src/PFIsolationEstimator.cc: No such file or directory

First, try to check out EGamma/EGammaAnalysisTools

git cms-addpkg EGamma/EGammaAnalysisTools

But:

Checking out package EGamma/EGammaAnalysisTools
package EGamma/EGammaAnalysisTools does not exist in branch from-CMSSW_7_0_9_patch1

Look to see if it had been named something else in this release: go to https://github.com/cms-sw/cmssw and go to 7_0_X branch. Turns out package PFIsolationEstimator.cc can now be found in EgammaAnalysis/ElectronTools/src/.

Solution
Go to MyRootMaker/MyRootMaker/BuildFile.xml and change

<use   name="EGamma/EGammaAnalysisTools"/></verbatim>
to
<use   name="EgammaAnalysis/ElectronTools"/>

and then go to MyRootMaker/MyRootMaker/interface/RootMaker.h and change

#include "EGamma/EGammaAnalysisTools/src/PFIsolationEstimator.cc"
to
#include "EgammaAnalysis/ElectronTools/src/PFIsolationEstimator.cc"

SuperClusterFootprintRemoval package (solved)

Search the git repo for SuperClusterFootprintRemoval but it wasn't anywhere. From SuperClusterFootprintRemoval page,
git clone https://github.com/peruzzim/SCFootprintRemoval.git

Solution
Follow instructions on SuperClusterFootprintRemoval to copy packages to src directory

and add following line to MyRootMaker/MyRootMaker/BuildFile.xml:

<use name="PFIsolation/SuperClusterFootprintRemoval"/>

and add following line to MyRootMaker/MyRootMaker/interface/RootMaker.h:

#include "PFIsolation/SuperClusterFootprintRemoval/interface/SuperClusterFootprintRemoval.h"

In MyRootMaker/MyRootMaker/src/RootMaker.cc, in lines after remover(iEvent,iSetup) is defined, add the following line above where photon_isolationpfr4noscfootprint* is used:

PFIsolation_struct tempPFIso_photon = remover.PFIsolation(theph.superCluster(), edm::Ptr<reco::Vertex>(Vertices, 0));

and change the following lines

photon_isolationpfr4noscfootprintcharged[photon_count] = remover.PFIsolation("charged", theph.superCluster(), 0);
photon_isolationpfr4noscfootprintphoton[photon_count] = remover.PFIsolation("photon", theph.superCluster());
photon_isolationpfr4noscfootprintneutral[photon_count] = remover.PFIsolation("neutral", theph.superCluster());

to

photon_isolationpfr4noscfootprintcharged[photon_count] = tempPFIso_photon.chargediso_primvtx;
photon_isolationpfr4noscfootprintphoton[photon_count]  = tempPFIso_photon.photoniso;
photon_isolationpfr4noscfootprintneutral[photon_count] = tempPFIso_photon.neutraliso; 

undefined reference to `reco::PFCandidate::trackRef() const (solved)

...
>> Building shared library tmp/slc6_amd64_gcc481/src/PFIsolation/SuperClusterFootprintRemoval/src/PFIsolationSuperClusterFootprintRemoval/libPFIsolationSuperClusterFootprintRemoval.so
tmp/slc6_amd64_gcc481/src/PFIsolation/SuperClusterFootprintRemoval/src/PFIsolationSuperClusterFootprintRemoval/SuperClusterFootprintRemoval.o: In function `SuperClusterFootprintRemoval::CheckMatchedPFCandidate(int)':
SuperClusterFootprintRemoval.cc:(.text+0x4ff): undefined reference to `reco::PFCandidate::superClusterRef() const'
tmp/slc6_amd64_gcc481/src/PFIsolation/SuperClusterFootprintRemoval/src/PFIsolationSuperClusterFootprintRemoval/SuperClusterFootprintRemoval.o: In function `SuperClusterFootprintRemoval::PFIsolation_worker(edm::Ref<std::vector<reco::SuperCluster, std::allocator<reco::SuperCluster> >, reco::SuperCluster, edm::refhelper::FindUsingAdvance<std::vector<reco::SuperCluster, std::allocator<reco::SuperCluster> >, reco::SuperCluster> >, edm::Ptr<reco::Vertex>, float, bool)':
SuperClusterFootprintRemoval.cc:(.text+0x39d7): undefined reference to `reco::PFCandidate::trackRef() const'
SuperClusterFootprintRemoval.cc:(.text+0x3a30): undefined reference to `reco::PFCandidate::trackRef() const'
SuperClusterFootprintRemoval.cc:(.text+0x3a8b): undefined reference to `reco::PFCandidate::trackRef() const'
...

Solution
Fixed by adding following line to PFIsolation/SuperClusterFootprintRemoval/BuildFile.xml:
<use name="DataFormats/ParticleFlowCandidate"/>

conversion from 'const value_type {...}' to non-scalar type 'reco::PFCandidateRef {...}' requested (*Taus)

...
>> Entering Package MyRootMaker/MyRootMaker
Entering library rule at MyRootMaker/MyRootMaker
>> Compiling edm plugin CMSSW_7_0_9_patch1/src/MyRootMaker/MyRootMaker/src/RootMaker.cc
CMSSW_7_0_9_patch1/src/MyRootMaker/MyRootMaker/src/RootMaker.cc: In member function 'bool RootMaker::AddTaus(const edm::Event&)':
CMSSW_7_0_9_patch1/src/MyRootMaker/MyRootMaker/src/RootMaker.cc:2405:61: error: conversion from 'const value_type {aka const edm::Ptr<reco::PFCandidate>}' to non-scalar type 'reco::PFCandidateRef {aka edm::Ref<std::vector<reco::PFCandidate> >}' requested
     PFCandidateRef isocand = (*Taus)[i].isolationPFCands()[n];
                                                             ^
CMSSW_7_0_9_patch1/src/MyRootMaker/MyRootMaker/src/RootMaker.cc:2423:55: error: conversion from 'const value_type {aka const edm::Ptr<reco::PFCandidate>}' to non-scalar type 'reco::PFCandidateRef {aka edm::Ref<std::vector<reco::PFCandidate> >}' requested
     PFCandidateRef cand = (*Taus)[i].signalPFCands()[n];
                                                       ^
...

Solution (?)

Add the following at the top of src/RootMaker.cc (under the deconstructor):

const PFCandidate& RootMaker::removeRef(const PFCandidatePtr& pfRef) {
    return *pfRef;
}
template<typename Collection, typename Function>
std::vector<double> RootMaker::extract(const Collection& cands, Function func) {
    // #define CALL_MEMBER_FN(object,ptrToMember) ((object).*(ptrToMember))
    std::vector<double> output;
    output.reserve(cands.size());
    for(typename Collection::const_iterator cand = cands.begin(); cand != cands.end(); ++cand) {
        output.push_back(func(removeRef(*cand)));
    }
    return output;
}

and the following in interface/RootMaker.h under private, below endJob:

const PFCandidate& removeRef(const PFCandidatePtr& pfRef);
template<typename Collection, typename Function>
std::vector<double> extract(const Collection& cands, Function func);

Comment out the following for-loop in src/RootMaker.cc:

for(unsigned n = 0 ; n < (*Taus)[i].isolationPFCands().size() ; n++) {
    PFCandidateRef isocand = (*Taus)[i].isolationPFCands()[n];
    if(isocand->charge() == 0) {
        tau_isolationneutralsnum[tau_count]++;
        tau_isolationneutralspt[tau_count]+=isocand->pt();
    } 
    else {
        tau_isolationchargednum[tau_count]++;
        tau_isolationchargedpt[tau_count]+=isocand->pt();
    }
}

and add the following lines right above it:

std::vector<double> isocands = extract((*Taus)[i].isolationPFNeutrHadrCands(),std::mem_fun_ref(&PFCandidate::pt));
BOOST_FOREACH(double pt, isocands) {
    tau_isolationneutralspt[tau_count] += pt;
}

Comment out the following for-loop in src/RootMaker.cc:

for(unsigned n = 0 ; n < (*Taus)[i].signalPFCands().size() ; n++)      {
    PFCandidateRef cand = (*Taus)[i].signalPFCands()[n];
    track = cand->trackRef();

and add the following lines right above it:

const std::vector<reco::PFCandidatePtr>& tauSignalPFCands = (*Taus)[i].signalPFCands();
for ( std::vector<reco::PFCandidatePtr>::const_iterator tauSignalPFCand = tauSignalPFCands.begin();
tauSignalPFCand != tauSignalPFCands.end(); ++tauSignalPFCand ) {
    track = (*tauSignalPFCand)->trackRef();

Add the following lines to the top:

#include <vector>
#include <boost/foreach.hpp>

Compiles ok, but doesn't find any taus yet.


Python

CMSSW_5_3_18

Output of python MyRootMaker/MyRootMaker/RootTreeMC.py in 5_3_18:
-----------------------------------------------------------
INFO   : cleaning has been removed. Switching output from
         clean PAT candidates to selected PAT candidates.
Adapting PF Muons
*****************
WARNING: particle based isolation must be studied

 muon source: cms.InputTag("pfIsolatedMuonsPFlow")
 isolation  : cms.PSet(
    pfNeutralHadrons = cms.InputTag("muPFIsoValueNeutral04PFlow"),
    pfChargedAll = cms.InputTag("muPFIsoValueChargedAll04PFlow"),
    pfPUChargedHadrons = cms.InputTag("muPFIsoValuePU04PFlow"),
    pfPhotons = cms.InputTag("muPFIsoValueGamma04PFlow"),
    pfChargedHadrons = cms.InputTag("muPFIsoValueCharged04PFlow")
)
 isodeposits:
cms.PSet(
    pfNeutralHadrons = cms.InputTag("muPFIsoDepositNeutralPFlow"),
    pfChargedAll = cms.InputTag("muPFIsoDepositChargedAllPFlow"),
    pfPUChargedHadrons = cms.InputTag("muPFIsoDepositPUPFlow"),
    pfPhotons = cms.InputTag("muPFIsoDepositGammaPFlow"),
    pfChargedHadrons = cms.InputTag("muPFIsoDepositChargedPFlow")
)

Adapting PF Electrons
*********************
WARNING: particle based isolation must be studied

 PF electron source: cms.InputTag("pfIsolatedElectronsPFlow")
 isolation  :
cms.PSet(
    pfNeutralHadrons = cms.InputTag("elPFIsoValueNeutral04PFIdPFlow"),
    pfChargedAll = cms.InputTag("elPFIsoValueChargedAll04PFIdPFlow"),
    pfPUChargedHadrons = cms.InputTag("elPFIsoValuePU04PFIdPFlow"),
    pfPhotons = cms.InputTag("elPFIsoValueGamma04PFIdPFlow"),
    pfChargedHadrons = cms.InputTag("elPFIsoValueCharged04PFIdPFlow")
)
 isodeposits:
cms.PSet(
    pfNeutralHadrons = cms.InputTag("elPFIsoDepositNeutralPFlow"),
    pfChargedAll = cms.InputTag("elPFIsoDepositChargedAllPFlow"),
    pfPUChargedHadrons = cms.InputTag("elPFIsoDepositPUPFlow"),
    pfPhotons = cms.InputTag("elPFIsoDepositGammaPFlow"),
    pfChargedHadrons = cms.InputTag("elPFIsoDepositChargedPFlow")
)

removing traditional isolation
Temporarily switching off photons completely
WARNING: called applyPostfix for module/sequence cleanPatCandidateSummary which is not in patDefaultSequencePFlow!
---------------------------------------------------------------------
INFO   : some objects have been removed from the sequence. Switching
         off PAT cross collection cleaning, as it might be of limited
         sense now. If you still want to keep object collection cross
         cleaning within PAT you need to run and configure it by hand
WARNING: called applyPostfix for module/sequence countPatCandidates which is not in patDefaultSequencePFlow!
WARNING: called applyPostfix for module/sequence cleanPatMuons which is not in patDefaultSequencePFlow!
WARNING: called applyPostfix for module/sequence cleanPatJets which is not in patDefaultSequencePFlow!
WARNING: called applyPostfix for module/sequence cleanPatPhotons which is not in patDefaultSequencePFlow!
WARNING: called applyPostfix for module/sequence cleanPatElectrons which is not in patDefaultSequencePFlow!
WARNING: called applyPostfix for module/sequence cleanPatTaus which is not in patDefaultSequencePFlow!
WARNING: called applyPostfix for module/sequence cleanPatCandidateSummary which is not in patDefaultSequencePFlow!
------------------------------------------------------------
INFO   : cleaning has been removed. Switching output from
         clean PAT candidates to selected PAT candidates.
#################################################
WARNING! Not using L2L3Residual but this is data.
If this is okay with you, disregard this message.
#################################################
Switching to PFJets,   AK5
************************
input collection:  cms.InputTag("pfNoTauPFlow")

The btaginfo below will be written to the jet collection in the PATtuple (default is all, see PatAlgos/PhysicsTools/python/tools/jetTools.py)
impactParameterTagInfos
secondaryVertexTagInfos

The bdiscriminators below will be written to the jet collection in the PATtuple (default is all, see PatAlgos/PhysicsTools/python/tools/jetTools.py)
jetBProbabilityBJetTags
jetProbabilityBJetTags
trackCountingHighPurBJetTags
trackCountingHighEffBJetTags
simpleSecondaryVertexHighEffBJetTags
simpleSecondaryVertexHighPurBJetTags
combinedSecondaryVertexBJetTags
patTaus will be produced from taus of type: hpsPFTau that pass ['DiscriminationByLooseCombinedIsolationDBSumPtCorr']
Tau discriminators:  cms.InputTag("hpsPFTauProducer") -> cms.InputTag("hpsPFTauProducerPFlow")
Tau type:  hpsPFTau
 Taus:  cms.InputTag("hpsPFTauProducer") -> cms.InputTag("hpsPFTauProducerPFlow")
MET: using  cms.InputTag("pfMETPFlow")
Switching PV collection for PF2PAT: cms.InputTag("offlinePrimaryVertices")
***********************************
************** MC dependence removal ************
removing MC dependencies for photons
removing MC dependencies for electrons
removing MC dependencies for muons
removing MC dependencies for taus
removing MC dependencies for jets
Done: PF2PAT interfaced to PAT, postfix= PFlow

CMSSW_7_0_9_patch1

Errors

No module named METAnalyzers.CSCHaloFilter _cfi (solved)

An exception of category 'ConfigFileReadError' occurred while
   [0] Processing the python configuration file named RootTreeMC.py
Exception Message:
python encountered the error: <type 'exceptions.ImportError'>
No module named METAnalyzers.CSCHaloFilter_cfi

Try to check out METAnalyzers/CSCHaloFilter; doesn't exist.

Solution
In RecoMET/METFilters find something called CSCTightHaloFilter_cfi.py, maybe that is what I want. Check out RecoMET/METFilters and recompile. (ok)

Change reference in MyRootMaker/MyRootMaker/python/RootMakerTemplateMC_cfg.py:

process.load('RecoMET.METAnalyzers.CSCHaloFilter_cfi')

to

process.load('RecoMET.METFilters.CSCTightHaloFilter_cfi')

'Process'objecthasnoattribute'pfElectronIsolationSequence' (solved)

Traceback (most recent call last):
  File "MyRootMaker/MyRootMaker/RootTreeMC.py", line 1, in <module>
    from MyRootMaker.MyRootMaker.RootMakerTemplateMC_cfg import *
  File "/afs/cern.ch/work/e/ekennedy/work/SMHtoMUMU/CMSSW_7_0_9_patch1/python/MyRootMaker/MyRootMaker/RootMakerTemplateMC_cfg.py", line 121, in <module>
    process.eleIsoSequence = setupPFElectronIso(process, 'gsfElectrons')
  File "/afs/cern.ch/work/e/ekennedy/work/SMHtoMUMU/CMSSW_7_0_9_patch1/python/CommonTools/ParticleFlow/Tools/pfIsolation.py", line 129, in setupPFElectronIso
    return setupPFIso( process, electronCollection, 'Electron', newpostfix, postfix, runPF2PAT)
  File "/afs/cern.ch/work/e/ekennedy/work/SMHtoMUMU/CMSSW_7_0_9_patch1/python/CommonTools/ParticleFlow/Tools/pfIsolation.py", line 50, in setupPFIso
    ga('pf{lepton}IsolationSequence'.format(lepton=particleName))
  File "/afs/cern.ch/work/e/ekennedy/work/SMHtoMUMU/CMSSW_7_0_9_patch1/python/CommonTools/ParticleFlow/Tools/pfIsolation.py", line 9, in fun
    return getattr(process, name+postfix)
AttributeError: 'Process' object has no attribute 'pfElectronIsolationSequence'

From an old hypernews email:

Indeed, we don't use sequences in the process at all for the unscheduled mode -- at least in the PAT tools. So any configuration plumbing of the type process.ANY_SEQUENCE = ... might fail.

Solution
1. In CommonTools/ParticleFlow/python/pfElectrons_cff.py, add
from CommonTools.ParticleFlow.Isolation.pfElectronIsolation_cff import *

2. Add

pfIsolatedElectrons +

inside the pfElectronSequence = cms.Sequence( ).

3. Change the following lines in RootMakerTemplateMC_cfg.py

process.eleIsoSequence = setupPFElectronIso(process, 'gsfElectrons')
process.phoIsoSequence = setupPFPhotonIso(process, 'photons')
process.pfiso_step = cms.Path( process.pfParticleSelectionSequence + 
                               process.eleIsoSequence + 
                               process.phoIsoSequence)
to
process.stdElectronSequencePFIso = setupPFElectronIso(process, 'gedGsfElectrons')
process.stdPhotonSequencePFIso = setupPFPhotonIso(process, 'photons')
process.pfiso_step = cms.Path( process.pfParticleSelectionSequence +
                               process.stdElectronSequencePFIso +
                               process.stdPhotonSequencePFIso)
d.h. rename the two isolation sequences (necessary?) and change gsfElectrons to gedGsfElectrons

Generic " 'Process'objecthasnoattribute'' " error

Example:

'Process'objecthasnoattribute'hltCsc2DRecHits'

Solution
1. Find where hltCsc2DRecHits is defined by searching the cmssw repo

turns out it's in HLTrigger/Configuration/python/HLT_PIon_cff.py

2. Add the following (analogous) line above where the attribute is called:

process.load('HLTrigger/Configuration/HLT_PIon_cff')

IndexError: tuple index out of range (solved)

File "/afs/cern.ch/work/e/ekennedy/work/SMHtoMUMU/CMSSW_7_0_9_patch1/python/PhysicsTools/PatAlgos/tools/jetTools.py", line 446, in toolCode
    if jetCorrections[2].lower() != 'none' and jetCorrections[2] != '':
IndexError: tuple index out of range

Solution
In RootMakerTemplateMC_cfg.py, change
jetCorrections=('AK5PFchs', ['L1FastJet', 'L2Relative', 'L3Absolute']),
to
jetCorrections=('AK5PFchs', ['L1FastJet', 'L2Relative', 'L3Absolute'],'Type-1'),


cmsRun

CMSSW_5_3_18

Errors

Xrd: XrdClientMessage::ReadRaw: Failed to read header

141030 13:40:08 16949 Xrd: XrdClientMessage::ReadRaw: Failed to read header (8 bytes).

Solution
Apparently just indicates poor server connection. Can safely be ignored, but may be followed by disconnection from lxplus causing job failure.

CMSSW_7_0_9_patch1

Errors

None so far that don't show up in python.

gsfElectrons -> gedGsfElectrons

Wherever it appears, change the following

edm::InputTag("photons")
to
edm::InputTag("gedPhotons")
and
edm::InputTag("gsfElectrons")
to
edm::InputTag("gedGsfElectrons")

More info: EgGEDIntegration


Notes

Possible problems

BTagTrackProbability2DRcd/BTagTrackProbability3DRcd

In RootTreeMC.py:
process.GlobalTag.toGet = cms.VPSet(
                 cms.PSet(record = cms.string("BTagTrackProbability2DRcd"),
                        tag = cms.string("TrackProbabilityCalibration_2D_MC53X_v2"),
                        connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_BTAU")),
                cms.PSet(record = cms.string("BTagTrackProbability3DRcd"),
                        tag = cms.string("TrackProbabilityCalibration_3D_MC53X_v2"),
                        connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_BTAU"))
                )
problem?: SWGuideBTagJetProbabilityCalibration has nothing for CMSSW > 53X

Questions

did not find any valid track reference attached to the jet

WARNING : did not find any valid track reference attached to the jet
Problem?

No InputTag for IV's given

%MSG-w PF_PU_AssoMapAlgos::PF_PU_AssoMapAlgos:   PFCand_AssoMap:pfCandidateToVertexAssociation@ctor 31-Oct-2014 15:26:01 CET  pre-events
No InputTag for IV's given --> skipping reconstruction of inclusive vertices !!
%MSG
%MSG-w PF_PU_AssoMapAlgos::PF_PU_AssoMapAlgos:   PFCand_AssoMap:PFCandAssoMap@ctor 31-Oct-2014 15:26:03 CET pre-events
No InputTag for IV's given --> skipping reconstruction of inclusive vertices !!
%MSG
problem?

Added class "data"

WARNING! Not using L2L3Residual but this is data.
...
--- DataSetInfo              : Added class "data"	 with internal class number 0
does it still think it is running on data?

recoPuJetMva

edm::Handle<ValueMap<float> > puidfullHandle;
iEvent.getByLabel(edm::InputTag("recoPuJetMva", "fullDiscriminant", "ROOTMAKER"), puidfullHandle);
edm::Handle<ValueMap<float> > puidsimpleHandle;
iEvent.getByLabel(edm::InputTag("recoPuJetMva", "simpleDiscriminant", "ROOTMAKER"), puidsimpleHandle);
edm::Handle<ValueMap<float> > puidcutbasedHandle;
iEvent.getByLabel(edm::InputTag("recoPuJetMva", "cutbasedDiscriminant", "ROOTMAKER"), puidcutbasedHandle);

Edit | Attach | Watch | Print version | History: r46 < r45 < r44 < r43 < r42 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r46 - 2015-04-02 - ElizabethKennedy
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback