CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
AlphaTVarAnalyzer Class Reference

#include <AlphaTVarAnalyzer.h>

Inheritance diagram for AlphaTVarAnalyzer:
ScoutingAnalyzerBase edm::EDAnalyzer

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 ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from ScoutingAnalyzerBase
void beginJob ()
 
MonitorElementbookH1 (const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
 
MonitorElementbookH1andDivide (const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
 
MonitorElementbookH1BinArray (const std::string &name, const std::string &title, int nchX, float *xbinsize, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
 
MonitorElementbookH1withSumw2 (const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
 
MonitorElementbookH1withSumw2BinArray (const std::string &name, const std::string &title, int nchX, float *xbinsize, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
 
MonitorElementbookH2 (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
 
MonitorElementbookH2andDivide (const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
 
MonitorElementbookH2withSumw2 (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
 
MonitorElementbookP1 (const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="E1 P")
 
virtual void endJob ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
std::string newName (const std::string &name)
 
MonitorElementprofileX (MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
 
MonitorElementprofileY (MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
 
 ScoutingAnalyzerBase (const edm::ParameterSet &conf)
 
virtual ~ScoutingAnalyzerBase ()
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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.

16  :
18  m_jetCollectionTag(conf.getUntrackedParameter<edm::InputTag>("jetCollectionName",edm::InputTag("hltCaloJetIDPassed"))),
19  m_alphaTVarCollectionTag(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName")){
20 }
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag m_alphaTVarCollectionTag
edm::InputTag m_jetCollectionTag
ScoutingAnalyzerBase(const edm::ParameterSet &conf)
AlphaTVarAnalyzer::~AlphaTVarAnalyzer ( )
virtual

Definition at line 24 of file AlphaTVarAnalyzer.cc.

24 {}

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.

28  {
29 
30  edm::Handle<std::vector<double> > alphaTvar_handle;
31  iEvent.getByLabel(m_alphaTVarCollectionTag,alphaTvar_handle);
32 
33  if(alphaTvar_handle->size() > 1){
34  const double AlphaT = alphaTvar_handle->at(0);
35  const double HT = alphaTvar_handle->at(1);
36  m_HTAlphaT->Fill(HT,AlphaT);
37  if(AlphaT > 0.55) m_HTAlphaTg0p55->Fill(HT);
38  if(AlphaT > 0.60) m_HTAlphaTg0p60->Fill(HT);
39 
40  }
41 
42 }
Definition: AlphaT.h:9
MonitorElement * m_HTAlphaT
edm::InputTag m_alphaTVarCollectionTag
MonitorElement * m_HTAlphaTg0p55
void Fill(long long x)
MonitorElement * m_HTAlphaTg0p60
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
Definition: HT.h:20
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.

49  {
50 
51  //the full inclusive histograms
52  m_HTAlphaT = bookH2withSumw2("HTvsAlphaT",
53  "H_{T} vs #alpha_{T} (All Events)",
54  400,0.,4000.,
55  50,0.,1.,
56  "H_{T} [GeV]",
57  "#alpha_{T}");
58  m_HTAlphaTg0p55 = bookH1withSumw2("HTvsAlphaTg0p55",
59  "H_{T} (#alpha_{T} > 0.55)",
60  400,0.,4000.,
61  "H_{T} [GeV]");
62 
63  m_HTAlphaTg0p60 = bookH1withSumw2("HTvsAlphaTg0p60",
64  "H_{T} (#alpha_{T} > 0.60)",
65  400,0.,4000.,
66  "H_{T} [GeV]");
67 }
MonitorElement * bookH2withSumw2(const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
MonitorElement * bookH1withSumw2(const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
MonitorElement * m_HTAlphaT
MonitorElement * m_HTAlphaTg0p55
MonitorElement * m_HTAlphaTg0p60
void AlphaTVarAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
virtual

Reimplemented from ScoutingAnalyzerBase.

Definition at line 44 of file AlphaTVarAnalyzer.cc.

44  {
45 }

Member Data Documentation

edm::InputTag AlphaTVarAnalyzer::m_alphaTVarCollectionTag
private

Definition at line 24 of file AlphaTVarAnalyzer.h.

Referenced by analyze().

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaT
private

Definition at line 27 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookMEs().

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p55
private

Definition at line 28 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookMEs().

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p60
private

Definition at line 29 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookMEs().

edm::InputTag AlphaTVarAnalyzer::m_jetCollectionTag
private

Definition at line 23 of file AlphaTVarAnalyzer.h.