30 using namespace muonisolation;
35 thePropagatorName(par.getParameter<std::
string>(
"PropagatorName")),
36 theThreshold(par.getParameter<double>(
"Threshold")),
37 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
38 theDR_Max(par.getParameter<double>(
"DR_Max")),
39 theExcludeMuonVeto(par.getParameter<bool>(
"ExcludeMuonVeto")),
42 thePrintTimeReport(par.getUntrackedParameter<bool>(
"PrintTimeReport"))
73 typedef IsoDeposit::Veto Veto;
74 IsoDeposit::Direction muonDir(muon.
eta(), muon.
phi());
87 depJet.setVeto(Veto(vetoDirection,
theDR_Veto));
94 CaloJetCollection::const_iterator jetCI = caloJetsH->begin();
95 for (; jetCI != caloJetsH->end(); ++jetCI){
101 std::vector<CaloTowerPtr> jetConstituents = jetCI->getCaloConstituents();
103 std::vector<DetId>::const_iterator crossedCI = mInfo.
crossedTowerIds.begin();
104 std::vector<CaloTowerPtr>::const_iterator jetTowCI = jetConstituents.begin();
106 double sumEtExcluded = 0;
107 for (;jetTowCI != jetConstituents.end(); ++ jetTowCI){
108 bool isExcluded =
false;
113 for(; ! isExcluded && crossedCI != mInfo.
crossedTowerIds.end(); ++crossedCI){
114 if (crossedCI->rawId() == (*jetTowCI)->id().rawId()){
118 if (isExcluded) sumEtExcluded += (*jetTowCI)->et();
121 if (jetCI->et() - sumEtExcluded <
theThreshold )
continue;
124 double depositEt = jetCI->et();
128 depJet.addDeposit(jetDir, depositEt);
132 std::vector<const CaloTower*>::const_iterator crossedCI = mInfo.
crossedTowers.begin();
135 muSumEt += (*crossedCI)->et();
137 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
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
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
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects