43 trackPtMin_( pset.getParameter<double>(
"trackPtMin" ) ),
44 coneSize_( pset.getParameter<double>(
"coneSize" ) )
50 std::auto_ptr<TkIsoMap> caloIsolations(
new TkIsoMap);
63 int nHighPtTracks = highPtTracks->size();
64 std::vector<double> iso(nTracks);
70 double caloIso = - 1.0;
72 for(
int j = 0;
j < nHighPtTracks; ++
j ) {
73 const Candidate & highPtTkCand = (*highPtTracks)[
j ];
74 if(
overlap(tkCand, highPtTkCand) ) {
84 filler.
insert(tracks, iso.begin(), iso.end());
89 event.put(caloIsolations);
const unsigned int nTracks(const reco::Vertex &sv)
virtual double pt() const =0
transverse momentum
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
void produce(edm::Event &event, const edm::EventSetup &setup) override
bool overlap(const reco::Muon &muon1, const reco::Muon &muon2, double pullX=1.0, double pullY=1.0, bool checkAdjacentChambers=false)
double depositWithin(double coneSize, const Vetos &vetos=Vetos(), bool skipDepositVeto=false) const
Get deposit.
edm::EDGetTokenT< reco::IsoDepositMap > isoDepsToken_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< reco::CandidateView > highPtTracksToken_
edm::ValueMap< float > TkIsoMap
edm::EDGetTokenT< reco::CandidateView > tracksToken_
IsolationProducerForTracks(const edm::ParameterSet &)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")