CMS 3D CMS Logo

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

#include <L1MuScalesTester.h>

Inheritance diagram for L1MuScalesTester:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 L1MuScalesTester (const edm::ParameterSet &)
 
void printScale (const L1MuScale *)
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

edm::ESGetToken< L1MuGMTScales, L1MuGMTScalesRcdl1gmtscalesToken_
 
edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcdl1muptscaleToken_
 
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcdl1muscalesToken_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 24 of file L1MuScalesTester.h.

Constructor & Destructor Documentation

◆ L1MuScalesTester()

L1MuScalesTester::L1MuScalesTester ( const edm::ParameterSet ps)
explicit

Definition at line 10 of file L1MuScalesTester.cc.

edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > l1muptscaleToken_
edm::ESGetToken< L1MuGMTScales, L1MuGMTScalesRcd > l1gmtscalesToken_
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > l1muscalesToken_

Member Function Documentation

◆ analyze()

void L1MuScalesTester::analyze ( const edm::Event e,
const edm::EventSetup es 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 13 of file L1MuScalesTester.cc.

References gather_cfg::cout, edm::EventSetup::getData(), L1MuGMTScales::getDeltaEtaScale(), L1MuGMTScales::getDeltaPhiScale(), L1MuTriggerScales::getGMTEtaScale(), L1MuGMTScales::getOvlEtaScale(), L1MuTriggerScales::getPhiScale(), L1MuTriggerPtScale::getPtScale(), L1MuGMTScales::getReducedEtaScale(), L1MuTriggerScales::getRegionalEtaScale(), mps_fire::i, l1gmtscalesToken_, l1muptscaleToken_, l1muscalesToken_, and printScale().

13  {
14  using namespace edm;
15 
16  const char* detnam[] = {"DT", "RPC barrel", "CSC", "RPC forward"};
17 
18  L1MuTriggerScales const& l1muscales = es.getData(l1muscalesToken_);
19 
20  L1MuTriggerPtScale const& l1muptscale = es.getData(l1muptscaleToken_);
21 
22  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
23  printScale(l1muptscale.getPtScale());
24 
25  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
26  printScale(l1muscales.getPhiScale());
27 
28  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
29  printScale(l1muscales.getGMTEtaScale());
30 
31  for (int i = 0; i < 4; i++) {
32  cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
33  printScale(l1muscales.getRegionalEtaScale(i));
34  }
35 
36  L1MuGMTScales const& l1gmtscales = es.getData(l1gmtscalesToken_);
37 
38  for (int i = 0; i < 4; i++) {
39  cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
40  printScale(l1gmtscales.getReducedEtaScale(i));
41  }
42 
43  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
44  printScale(l1gmtscales.getDeltaEtaScale(0));
45 
46  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
47  printScale(l1gmtscales.getDeltaPhiScale());
48 
49  for (int i = 0; i < 4; i++) {
50  cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
51  printScale(l1gmtscales.getOvlEtaScale(i));
52  }
53 
54  // cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
55  // printScale(l1gmtscales.getCaloEtaScale());
56 }
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > l1muptscaleToken_
const L1MuScale * getPhiScale() const
get the phi scale
const L1MuScale * getPtScale() const
get the Pt scale
edm::ESGetToken< L1MuGMTScales, L1MuGMTScalesRcd > l1gmtscalesToken_
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC) ...
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > l1muscalesToken_
const L1MuScale * getDeltaPhiScale() const
get the delta phi scale ( 3 bits)
void printScale(const L1MuScale *)
const L1MuScale * getReducedEtaScale(int isys) const
get the recuced eta scale for matching in the overlap region (4 bit); isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
const L1MuScale * getOvlEtaScale(int isys) const
get the overlap eta scale (4 bits); isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
HLT enums.
const L1MuScale * getDeltaEtaScale(int idx) const
get the delta eta scale; idx = 0(DT=RPC), 1(CSC-RPC), 2(DT-CSC), 3(CSC-DT), 4(bRPC-CSC), 5(fRPC-DT)

◆ printScale()

void L1MuScalesTester::printScale ( const L1MuScale l1muscale)

Definition at line 58 of file L1MuScalesTester.cc.

References gather_cfg::cout, and L1MuScale::print().

Referenced by analyze().

58 { cout << l1muscale->print(); }
virtual std::string print() const =0

Member Data Documentation

◆ l1gmtscalesToken_

edm::ESGetToken<L1MuGMTScales, L1MuGMTScalesRcd> L1MuScalesTester::l1gmtscalesToken_
private

Definition at line 36 of file L1MuScalesTester.h.

Referenced by analyze().

◆ l1muptscaleToken_

edm::ESGetToken<L1MuTriggerPtScale, L1MuTriggerPtScaleRcd> L1MuScalesTester::l1muptscaleToken_
private

Definition at line 35 of file L1MuScalesTester.h.

Referenced by analyze().

◆ l1muscalesToken_

edm::ESGetToken<L1MuTriggerScales, L1MuTriggerScalesRcd> L1MuScalesTester::l1muscalesToken_
private

Definition at line 34 of file L1MuScalesTester.h.

Referenced by analyze().