31 using namespace isodeposit;
39 virtual void endJob()
override;
46 unsigned long selGlobal_, selSA_, totGlobal_,
totSA_;
53 src_(cfg.getParameter<
InputTag>(
"src")),
54 dRVeto(cfg.getParameter<double>(
"veto")),
55 dRTrk(cfg.getParameter<double>(
"deltaRTrk")),
56 dREcal(cfg.getParameter<double>(
"deltaREcal")),
57 dRHcal(cfg.getParameter<double>(
"deltaRHcal")),
58 ptThreshold(cfg.getParameter<double>(
"ptThreshold")),
59 etEcalThreshold(cfg.getParameter<double>(
"etEcalThreshold")),
60 etHcalThreshold(cfg.getParameter<double>(
"etHcalThreshold")),
61 alpha(cfg.getParameter<double>(
"alpha")),
62 beta(cfg.getParameter<double>(
"beta")),
63 isoCut_(cfg.getParameter<double>(
"isoCut")),
64 selGlobal_(0), selSA_(0), totGlobal_(0), totSA_(0) {
72 vetoEcal.push_back(
new ConeVeto(dir, 0.));
74 vetoHcal.push_back(
new ConeVeto(dir, 0.));
80 double iso =
alpha*((0.5*(1+
beta)*ecalIso) + (0.5*(1-
beta)*hcalIso)) + (1-
alpha)*trkIso;
107 event.getByLabel(
src_, dimuons);
108 for(
unsigned int i=0;
i< dimuons->size(); ++
i) {
116 cout <<
"Isolation efficiency report:" << endl;
123 cout <<
"St.Al.: " <<
selSA_ <<
"/" <<
totSA_ <<
" = " << eff <<
"+/-" << err << endl;
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
#define DEFINE_FWK_MODULE(type)
virtual void analyze(const edm::Event &event, const edm::EventSetup &setup) override
stand alone muon component tag
const IsoDeposit * isoDeposit(IsolationKeys key) const
Returns the IsoDeposit associated with some key, or a null pointer if it is not available.
double sumWithin(double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
ZGlobalVsSAIsolationAnalyzer(const edm::ParameterSet &cfg)
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
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
XYZVectorD XYZVector
spatial vector with cartesian internal representation
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
void evaluate(const reco::Candidate *dau)
T get() const
get a component
std::vector< AbsVeto * > AbsVetos
bool isolated(const Direction &dir, const pat::IsoDeposit *trkIsoDep, const pat::IsoDeposit *ecalIsoDep, const pat::IsoDeposit *hcalIsoDep)
virtual void endJob() override
Analysis-level muon class.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual const CandidateBaseRef & masterClone() const =0