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::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

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 &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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 edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from ScoutingAnalyzerBase
void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
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")
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
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 edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 6 of file AlphaTVarAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 15 of file AlphaTVarAnalyzer.cc.

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

15  :
17  m_jetCollectionTag(conf.getUntrackedParameter<edm::InputTag>("jetCollectionName",edm::InputTag("hltCaloJetIDPassed"))),
18  m_alphaTVarCollectionTag(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName")) {
19  //set Token(-s)
20  m_alphaTVarCollectionTagToken_ = consumes<std::vector<double> >(conf.getUntrackedParameter<edm::InputTag>("alphaTVarCollectionName"));
21 }
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag m_alphaTVarCollectionTag
edm::InputTag m_jetCollectionTag
edm::EDGetTokenT< std::vector< double > > m_alphaTVarCollectionTagToken_
ScoutingAnalyzerBase(const edm::ParameterSet &conf)
AlphaTVarAnalyzer::~AlphaTVarAnalyzer ( )
override

Definition at line 23 of file AlphaTVarAnalyzer.cc.

23 {}

Member Function Documentation

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

Definition at line 52 of file AlphaTVarAnalyzer.cc.

References MonitorElement::Fill(), edm::Event::getByToken(), m_alphaTVarCollectionTagToken_, m_HTAlphaT, m_HTAlphaTg0p55, and m_HTAlphaTg0p60.

52  {
53  edm::Handle<std::vector<double> > alphaTvar_handle;
54  iEvent.getByToken(m_alphaTVarCollectionTagToken_, alphaTvar_handle);
55 
56  if(alphaTvar_handle->size() > 1){
57  const double AlphaT = alphaTvar_handle->at(0);
58  const double HT = alphaTvar_handle->at(1);
59  m_HTAlphaT->Fill(HT,AlphaT);
60  if(AlphaT > 0.55) m_HTAlphaTg0p55->Fill(HT);
61  if(AlphaT > 0.60) m_HTAlphaTg0p60->Fill(HT);
62  }
63 }
Definition: AlphaT.h:9
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
MonitorElement * m_HTAlphaT
MonitorElement * m_HTAlphaTg0p55
void Fill(long long x)
MonitorElement * m_HTAlphaTg0p60
edm::EDGetTokenT< std::vector< double > > m_alphaTVarCollectionTagToken_
Definition: HT.h:21
void AlphaTVarAnalyzer::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 26 of file AlphaTVarAnalyzer.cc.

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

26  {
28  //the full inclusive histograms
30  iBooker,
31  "HTvsAlphaT",
32  "H_{T} vs #alpha_{T} (All Events)",
33  400,0.,4000.,
34  50,0.,1.,
35  "H_{T} [GeV]",
36  "#alpha_{T}");
38  iBooker,
39  "HTvsAlphaTg0p55",
40  "H_{T} (#alpha_{T} > 0.55)",
41  400,0.,4000.,
42  "H_{T} [GeV]");
44  iBooker,
45  "HTvsAlphaTg0p60",
46  "H_{T} (#alpha_{T} > 0.60)",
47  400,0.,4000.,
48  "H_{T} [GeV]");
49 }
void prepareBooking(DQMStore::IBooker &)
MonitorElement * m_HTAlphaT
MonitorElement * m_HTAlphaTg0p55
MonitorElement * m_HTAlphaTg0p60
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")
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")

Member Data Documentation

edm::InputTag AlphaTVarAnalyzer::m_alphaTVarCollectionTag
private

Definition at line 14 of file AlphaTVarAnalyzer.h.

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

Definition at line 20 of file AlphaTVarAnalyzer.h.

Referenced by AlphaTVarAnalyzer(), and analyze().

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaT
private

Definition at line 16 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p55
private

Definition at line 17 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* AlphaTVarAnalyzer::m_HTAlphaTg0p60
private

Definition at line 18 of file AlphaTVarAnalyzer.h.

Referenced by analyze(), and bookHistograms().

edm::InputTag AlphaTVarAnalyzer::m_jetCollectionTag
private

Definition at line 13 of file AlphaTVarAnalyzer.h.