CMS 3D CMS Logo

AlphaTVarAnalyzer.cc
Go to the documentation of this file.
2 
5 
8 
11 
12 #include <cmath>
13 
14 // A simple constructor which takes as input only the name of the PF jet
15 // collection
17  : ScoutingAnalyzerBase(conf),
18  m_jetCollectionTag(
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 }
25 
27 
28 // Function to book the Monitoring Elements.
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 }
48 
49 // Usual analyze method
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 }
CaloJetCollection.h
CaloJet.h
Muon.h
AlphaTVarAnalyzer::m_HTAlphaTg0p60
MonitorElement * m_HTAlphaTg0p60
Definition: AlphaTVarAnalyzer.h:19
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:85964
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
AlphaTVarAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: AlphaTVarAnalyzer.cc:29
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::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: AlphaTVarAnalyzer.cc:50
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
ElectronFwd.h
edm::ParameterSet
Definition: ParameterSet.h:47
AlphaTVarAnalyzer::m_alphaTVarCollectionTagToken_
edm::EDGetTokenT< std::vector< double > > m_alphaTVarCollectionTagToken_
Definition: AlphaTVarAnalyzer.h:21
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
AlphaT
Definition: AlphaT.h:8
AlphaTVarAnalyzer::m_HTAlphaTg0p55
MonitorElement * m_HTAlphaTg0p55
Definition: AlphaTVarAnalyzer.h:18
AlphaTVarAnalyzer.h
AlphaTVarAnalyzer::AlphaTVarAnalyzer
AlphaTVarAnalyzer(const edm::ParameterSet &)
Definition: AlphaTVarAnalyzer.cc:16
Electron.h
AlphaTVarAnalyzer::m_HTAlphaT
MonitorElement * m_HTAlphaT
Definition: AlphaTVarAnalyzer.h:17
RecoChargedCandidate.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
ScoutingAnalyzerBase
Definition: ScoutingAnalyzerBase.h:19
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
AlphaTVarAnalyzer::~AlphaTVarAnalyzer
~AlphaTVarAnalyzer() override
Definition: AlphaTVarAnalyzer.cc:26