31 using namespace muonisolation;
36 thePropagatorName(par.getParameter<std::
string>(
"PropagatorName")),
37 theThreshold(par.getParameter<double>(
"Threshold")),
38 theDR_Veto(par.getParameter<double>(
"DR_Veto")),
39 theDR_Max(par.getParameter<double>(
"DR_Max")),
40 theExcludeMuonVeto(par.getParameter<bool>(
"ExcludeMuonVeto")),
43 thePrintTimeReport(par.getUntrackedParameter<bool>(
"PrintTimeReport"))
75 typedef IsoDeposit::Veto Veto;
76 IsoDeposit::Direction muonDir(muon.
eta(), muon.
phi());
89 depJet.setVeto(Veto(vetoDirection,
theDR_Veto));
96 CaloJetCollection::const_iterator jetCI = caloJetsH->begin();
97 for (; jetCI != caloJetsH->end(); ++jetCI){
103 std::vector<CaloTowerPtr> jetConstituents = jetCI->getCaloConstituents();
105 std::vector<DetId>::const_iterator crossedCI = mInfo.
crossedTowerIds.begin();
106 std::vector<CaloTowerPtr>::const_iterator jetTowCI = jetConstituents.begin();
108 double sumEtExcluded = 0;
109 for (;jetTowCI != jetConstituents.end(); ++ jetTowCI){
110 bool isExcluded =
false;
115 for(; ! isExcluded && crossedCI != mInfo.
crossedTowerIds.end(); ++crossedCI){
116 if (crossedCI->rawId() == (*jetTowCI)->id().rawId()){
120 if (isExcluded) sumEtExcluded += (*jetTowCI)->et();
123 if (jetCI->et() - sumEtExcluded <
theThreshold )
continue;
126 double depositEt = jetCI->et();
130 depJet.addDeposit(jetDir, depositEt);
134 std::vector<const CaloTower*>::const_iterator crossedCI = mInfo.
crossedTowers.begin();
137 muSumEt += (*crossedCI)->et();
139 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
static TimingReport * current()
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
void dump(std::ostream &co, bool active=false)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects