CMS 3D CMS Logo

Public Member Functions | Private Attributes

AlphaTVarAnalyzer Class Reference

#include <AlphaTVarAnalyzer.h>

Inheritance diagram for AlphaTVarAnalyzer:
ScoutingAnalyzerBase edm::EDAnalyzer

List of all members.

Public Member Functions

 AlphaTVarAnalyzer (const edm::ParameterSet &)
virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void bookMEs ()
virtual void endRun (edm::Run const &, edm::EventSetup const &)
virtual ~AlphaTVarAnalyzer ()

Private Attributes

edm::InputTag m_alphaTVarCollectionTag
MonitorElementm_HTAlphaT
MonitorElementm_HTAlphaTg0p55
MonitorElementm_HTAlphaTg0p60
edm::InputTag m_jetCollectionTag

Detailed Description

Definition at line 7 of file AlphaTVarAnalyzer.h.


Constructor & Destructor Documentation

AlphaTVarAnalyzer::AlphaTVarAnalyzer ( const edm::ParameterSet conf) [explicit]

Definition at line 16 of file AlphaTVarAnalyzer.cc.

                                                                  :
  ScoutingAnalyzerBase(conf),
  m_jetCollectionTag(conf.getUntrackedParameter<edm::InputTag>("jetCollectionName",edm::InputTag("hltCaloJetIDPassed"))),
  m_alphaTVarCollectionTag(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName")){
}
AlphaTVarAnalyzer::~AlphaTVarAnalyzer ( ) [virtual]

Definition at line 24 of file AlphaTVarAnalyzer.cc.

{}

Member Function Documentation

void AlphaTVarAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup c 
) [virtual]

Reimplemented from ScoutingAnalyzerBase.

Definition at line 28 of file AlphaTVarAnalyzer.cc.

References MonitorElement::Fill(), edm::Event::getByLabel(), m_alphaTVarCollectionTag, m_HTAlphaT, m_HTAlphaTg0p55, and m_HTAlphaTg0p60.

                                                                                 {
  
  edm::Handle<std::vector<double> > alphaTvar_handle;
  iEvent.getByLabel(m_alphaTVarCollectionTag,alphaTvar_handle);

  if(alphaTvar_handle->size() > 1){
    const double AlphaT = alphaTvar_handle->at(0);
    const double HT = alphaTvar_handle->at(1);
    m_HTAlphaT->Fill(HT,AlphaT);
    if(AlphaT > 0.55) m_HTAlphaTg0p55->Fill(HT);
    if(AlphaT > 0.60) m_HTAlphaTg0p60->Fill(HT);
    
  }
  
}
void AlphaTVarAnalyzer::bookMEs ( ) [virtual]

Reimplemented from ScoutingAnalyzerBase.

Definition at line 49 of file AlphaTVarAnalyzer.cc.

References ScoutingAnalyzerBase::bookH1withSumw2(), ScoutingAnalyzerBase::bookH2withSumw2(), m_HTAlphaT, m_HTAlphaTg0p55, and m_HTAlphaTg0p60.

                               {
  
  //the full inclusive histograms
  m_HTAlphaT = bookH2withSumw2("HTvsAlphaT",
                               "H_{T} vs #alpha_{T} (All Events)",
                               400,0.,4000.,
                               50,0.,1.,
                               "H_{T} [GeV]",
                               "#alpha_{T}");
  m_HTAlphaTg0p55 = bookH1withSumw2("HTvsAlphaTg0p55",
                                   "H_{T} (#alpha_{T} > 0.55)",
                                   400,0.,4000.,
                                   "H_{T} [GeV]");

  m_HTAlphaTg0p60 = bookH1withSumw2("HTvsAlphaTg0p60",
                                   "H_{T} (#alpha_{T} > 0.60)",
                                   400,0.,4000.,
                                   "H_{T} [GeV]");
}
void AlphaTVarAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
) [virtual]

Reimplemented from ScoutingAnalyzerBase.

Definition at line 44 of file AlphaTVarAnalyzer.cc.

                                                                     {
}

Member Data Documentation

Definition at line 24 of file AlphaTVarAnalyzer.h.

Referenced by analyze().

Definition at line 27 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookMEs().

Definition at line 28 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookMEs().

Definition at line 29 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookMEs().

Definition at line 23 of file AlphaTVarAnalyzer.h.