10 Jets_(cfg.getParameter<edm::InputTag>(
"Jets")),
11 bTagAlgo_(cfg.getParameter<std::string>(
"bTagAlgo")),
12 bins_(cfg.getParameter<unsigned int>(
"bins")),
13 lowerbin_(cfg.getParameter<double>(
"lowerbin")),
14 upperbin_(cfg.getParameter<double>(
"upperbin"))
16 hists_[
"NumSoftMuons"] = fs.
make<TH1F>(
"NumSoftMuons" ,
"NumSoftMuons" ,4, -0.5, 3.5);
30 for(
unsigned int i=0;
i<
bins_; ++
i){
31 hists_[
"effBTag_b"]->SetBinContent(
i,
hists_[
"BTag_b"]->Integral(
i,
hists_[
"BTag_b"]->GetNbinsX()+1)/
hists_[
"BTag_b"]->Integral(0,
hists_[
"BTag_b"]->GetNbinsX()+1) );
32 hists_[
"effBTag_g"]->SetBinContent(
i,
hists_[
"BTag_g"]->Integral(
i,
hists_[
"BTag_g"]->GetNbinsX()+1)/
hists_[
"BTag_g"]->Integral(0,
hists_[
"BTag_g"]->GetNbinsX()+1) );
33 hists_[
"effBTag_c"]->SetBinContent(
i,
hists_[
"BTag_c"]->Integral(
i,
hists_[
"BTag_c"]->GetNbinsX()+1)/
hists_[
"BTag_c"]->Integral(0,
hists_[
"BTag_c"]->GetNbinsX()+1) );
34 hists_[
"effBTag_uds"]->SetBinContent(
i,
hists_[
"BTag_uds"]->Integral(
i,
hists_[
"BTag_uds"]->GetNbinsX()+1)/
hists_[
"BTag_uds"]->Integral(0,
hists_[
"BTag_uds"]->GetNbinsX()+1) );
35 hists_[
"effBTag_other"]->SetBinContent(
i,
hists_[
"BTag_other"]->Integral(
i,
hists_[
"BTag_other"]->GetNbinsX()+1)/
hists_[
"BTag_other"]->Integral(0,
hists_[
"BTag_other"]->GetNbinsX()+1) );
48 event.getByLabel(
Jets_, Jets);
51 for(std::vector<Jet>::const_iterator Jet_it=Jets->begin(); Jet_it!=Jets->end(); ++Jet_it){
52 edm::LogInfo (
"hint3") <<
"\n \n investigate the next jet...\n \n "<<std::endl;
56 const std::vector< std::pair< std::string, float > > discrPairs = Jet.
getPairDiscri();
57 for(
unsigned int pair_i = 0;pair_i <discrPairs.size(); ++pair_i ){
58 edm::LogInfo (
"hint3") <<
"discr name: "<< discrPairs[pair_i].first<<
" value: "<< discrPairs[pair_i].second<<std::endl;
void analyze(const edm::EventBase &event)
everything that needs to be done during the event loop
Abstract base class for FWLite and EDM friendly analyzers.
std::map< std::string, TH1 * > hists_
histograms
float bDiscriminator(const std::string &theLabel) const
-— methods for accessing b-tagging info -—
virtual ~AnalysisTasksAnalyzerBTag()
default destructor
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
int partonFlavour() const
return the parton-based flavour of the jet
AnalysisTasksAnalyzerBTag(const edm::ParameterSet &cfg, TFileDirectory &fs)
default constructor
Analysis-level calorimeter jet class.
T * make() const
make new ROOT object
edm::InputTag Jets_
input tag for mouns
const std::vector< std::pair< std::string, float > > & getPairDiscri() const
get vector of paire labelname-disciValue