CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
AlphaTVarAnalyzer Class Reference

#include <AlphaTVarAnalyzer.h>

Inheritance diagram for AlphaTVarAnalyzer:
ScoutingAnalyzerBase DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 AlphaTVarAnalyzer (const edm::ParameterSet &)
 
void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 ~AlphaTVarAnalyzer () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

edm::InputTag m_alphaTVarCollectionTag
 
edm::EDGetTokenT< std::vector< double > > m_alphaTVarCollectionTagToken_
 
MonitorElementm_HTAlphaT
 
MonitorElementm_HTAlphaTg0p55
 
MonitorElementm_HTAlphaTg0p60
 
edm::InputTag m_jetCollectionTag
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from ScoutingAnalyzerBase
MonitorElementbookH1 (DQMStore::IBooker &, 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 (DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
 
MonitorElementbookH1BinArray (DQMStore::IBooker &, 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 (DQMStore::IBooker &, 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 (DQMStore::IBooker &, 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 (DQMStore::IBooker &, 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 (DQMStore::IBooker &, const std::string &name, MonitorElement *num, MonitorElement *denom, const std::string &titleX, const std::string &titleY, const std::string &title="")
 
MonitorElementbookH2withSumw2 (DQMStore::IBooker &, 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 (DQMStore::IBooker &, 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")
 
std::string newName (const std::string &name)
 
void prepareBooking (DQMStore::IBooker &)
 
MonitorElementprofileX (DQMStore::IBooker &, MonitorElement *me2d, const std::string &title="", const std::string &titleX="", const std::string &titleY="", Double_t minimum=-1111, Double_t maximum=-1111)
 
MonitorElementprofileY (DQMStore::IBooker &, 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)
 
 ~ScoutingAnalyzerBase () override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 6 of file AlphaTVarAnalyzer.h.

Constructor & Destructor Documentation

◆ AlphaTVarAnalyzer()

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

Definition at line 16 of file AlphaTVarAnalyzer.cc.

17  : ScoutingAnalyzerBase(conf),
19  conf.getUntrackedParameter<edm::InputTag>("jetCollectionName", edm::InputTag("hltCaloJetIDPassed"))),
20  m_alphaTVarCollectionTag(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName")) {
21  // set Token(-s)
23  consumes<std::vector<double>>(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName"));
24 }

References edm::ParameterSet::getUntrackedParameter(), and m_alphaTVarCollectionTagToken_.

◆ ~AlphaTVarAnalyzer()

AlphaTVarAnalyzer::~AlphaTVarAnalyzer ( )
override

Definition at line 26 of file AlphaTVarAnalyzer.cc.

26 {}

Member Function Documentation

◆ analyze()

void AlphaTVarAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup c 
)
overridevirtual

Reimplemented from ScoutingAnalyzerBase.

Definition at line 50 of file AlphaTVarAnalyzer.cc.

50  {
51  edm::Handle<std::vector<double>> alphaTvar_handle;
52  iEvent.getByToken(m_alphaTVarCollectionTagToken_, alphaTvar_handle);
53 
54  if (alphaTvar_handle->size() > 1) {
55  const double AlphaT = alphaTvar_handle->at(0);
56  const double HT = alphaTvar_handle->at(1);
58  if (AlphaT > 0.55)
60  if (AlphaT > 0.60)
62  }
63 }

References dqm::impl::MonitorElement::Fill(), iEvent, m_alphaTVarCollectionTagToken_, m_HTAlphaT, m_HTAlphaTg0p55, and m_HTAlphaTg0p60.

◆ bookHistograms()

void AlphaTVarAnalyzer::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 29 of file AlphaTVarAnalyzer.cc.

29  {
31  // the full inclusive histograms
32  m_HTAlphaT = bookH2withSumw2(iBooker,
33  "HTvsAlphaT",
34  "H_{T} vs #alpha_{T} (All Events)",
35  400,
36  0.,
37  4000.,
38  50,
39  0.,
40  1.,
41  "H_{T} [GeV]",
42  "#alpha_{T}");
44  bookH1withSumw2(iBooker, "HTvsAlphaTg0p55", "H_{T} (#alpha_{T} > 0.55)", 400, 0., 4000., "H_{T} [GeV]");
46  bookH1withSumw2(iBooker, "HTvsAlphaTg0p60", "H_{T} (#alpha_{T} > 0.60)", 400, 0., 4000., "H_{T} [GeV]");
47 }

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

Member Data Documentation

◆ m_alphaTVarCollectionTag

edm::InputTag AlphaTVarAnalyzer::m_alphaTVarCollectionTag
private

Definition at line 15 of file AlphaTVarAnalyzer.h.

◆ m_alphaTVarCollectionTagToken_

edm::EDGetTokenT<std::vector<double> > AlphaTVarAnalyzer::m_alphaTVarCollectionTagToken_
private

Definition at line 21 of file AlphaTVarAnalyzer.h.

Referenced by AlphaTVarAnalyzer(), and analyze().

◆ m_HTAlphaT

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaT
private

Definition at line 17 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookHistograms().

◆ m_HTAlphaTg0p55

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p55
private

Definition at line 18 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookHistograms().

◆ m_HTAlphaTg0p60

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p60
private

Definition at line 19 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookHistograms().

◆ m_jetCollectionTag

edm::InputTag AlphaTVarAnalyzer::m_jetCollectionTag
private

Definition at line 14 of file AlphaTVarAnalyzer.h.

AlphaTVarAnalyzer::m_HTAlphaTg0p60
MonitorElement * m_HTAlphaTg0p60
Definition: AlphaTVarAnalyzer.h:19
AlphaTVarAnalyzer::m_alphaTVarCollectionTag
edm::InputTag m_alphaTVarCollectionTag
Definition: AlphaTVarAnalyzer.h:15
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::Handle
Definition: AssociativeIterator.h:50
ScoutingAnalyzerBase::prepareBooking
void prepareBooking(DQMStore::IBooker &)
Definition: ScoutingAnalyzerBase.cc:25
HT
Definition: HT.h:21
ScoutingAnalyzerBase::bookH1withSumw2
MonitorElement * bookH1withSumw2(DQMStore::IBooker &, 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")
Definition: ScoutingAnalyzerBase.cc:49
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
AlphaTVarAnalyzer::m_jetCollectionTag
edm::InputTag m_jetCollectionTag
Definition: AlphaTVarAnalyzer.h:14
ScoutingAnalyzerBase::bookH2withSumw2
MonitorElement * bookH2withSumw2(DQMStore::IBooker &, 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")
Definition: ScoutingAnalyzerBase.cc:144
AlphaTVarAnalyzer::m_alphaTVarCollectionTagToken_
edm::EDGetTokenT< std::vector< double > > m_alphaTVarCollectionTagToken_
Definition: AlphaTVarAnalyzer.h:21
iEvent
int iEvent
Definition: GenABIO.cc:224
ScoutingAnalyzerBase::ScoutingAnalyzerBase
ScoutingAnalyzerBase(const edm::ParameterSet &conf)
Definition: ScoutingAnalyzerBase.cc:9
AlphaT
Definition: AlphaT.h:8
AlphaTVarAnalyzer::m_HTAlphaTg0p55
MonitorElement * m_HTAlphaTg0p55
Definition: AlphaTVarAnalyzer.h:18
AlphaTVarAnalyzer::m_HTAlphaT
MonitorElement * m_HTAlphaT
Definition: AlphaTVarAnalyzer.h:17
edm::InputTag
Definition: InputTag.h:15