34 using namespace muonisolation;
38 theJetCollectionLabel(par.getParameter<edm::
InputTag>(
"JetCollectionLabel")),
39 thePropagatorName(par.getParameter<std::
string>(
"PropagatorName")),
40 theThreshold(par.getParameter<double>(
"Threshold")),
41 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
42 theDR_Max(par.getParameter<double>(
"DR_Max")),
43 theExcludeMuonVeto(par.getParameter<bool>(
"ExcludeMuonVeto")),
46 thePrintTimeReport(par.getUntrackedParameter<bool>(
"PrintTimeReport"))
76 typedef IsoDeposit::Veto Veto;
77 IsoDeposit::Direction muonDir(muon.
eta(), muon.
phi());
90 depJet.setVeto(Veto(vetoDirection,
theDR_Veto));
97 CaloJetCollection::const_iterator jetCI = caloJetsH->begin();
98 for (; jetCI != caloJetsH->end(); ++jetCI){
104 std::vector<CaloTowerPtr> jetConstituents = jetCI->getCaloConstituents();
106 std::vector<DetId>::const_iterator crossedCI = mInfo.
crossedTowerIds.begin();
107 std::vector<CaloTowerPtr>::const_iterator jetTowCI = jetConstituents.begin();
109 double sumEtExcluded = 0;
110 for (;jetTowCI != jetConstituents.end(); ++ jetTowCI){
111 bool isExcluded =
false;
116 for(; ! isExcluded && crossedCI != mInfo.
crossedTowerIds.end(); ++crossedCI){
117 if (crossedCI->rawId() == (*jetTowCI)->id().rawId()){
121 if (isExcluded) sumEtExcluded += (*jetTowCI)->et();
124 if (jetCI->et() - sumEtExcluded <
theThreshold )
continue;
127 double depositEt = jetCI->et();
131 depJet.addDeposit(jetDir, depositEt);
135 std::vector<const CaloTower*>::const_iterator crossedCI = mInfo.
crossedTowers.begin();
138 muSumEt += (*crossedCI)->et();
140 depJet.addCandEnergy(muSumEt);
T getParameter(std::string const &) const
std::vector< const CaloTower * > crossedTowers
std::vector< DetId > crossedTowerIds
std::vector< Track > TrackCollection
collection of Tracks
double phi() const
azimuthal angle of momentum vector
math::XYZPoint trkGlobPosAtHcal
tuple TrackAssociatorParameters
double eta() const
pseudorapidity of momentum vector
void setPropagator(const Propagator *)
use a user configured propagator
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
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
FreeTrajectoryState initialFreeState() const
static TimingReport * current()
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
void dump(std::ostream &co, bool active=false)