CMS 3D CMS Logo

List of all members | Public Member Functions
L1MuScalesTester Class Reference

#include <L1MuScalesTester.h>

Inheritance diagram for L1MuScalesTester:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 L1MuScalesTester (const edm::ParameterSet &)
 
void printScale (const L1MuScale *)
 
 ~L1MuScalesTester () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Additional Inherited Members

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

Detailed Description

Definition at line 17 of file L1MuScalesTester.h.

Constructor & Destructor Documentation

◆ L1MuScalesTester()

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

Definition at line 17 of file L1MuScalesTester.cc.

17 {}

◆ ~L1MuScalesTester()

L1MuScalesTester::~L1MuScalesTester ( )
override

Definition at line 19 of file L1MuScalesTester.cc.

19 {}

Member Function Documentation

◆ analyze()

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

Implements edm::EDAnalyzer.

Definition at line 21 of file L1MuScalesTester.cc.

21  {
22  using namespace edm;
23 
24  const char* detnam[] = {"DT", "RPC barrel", "CSC", "RPC forward"};
25 
26  ESHandle<L1MuTriggerScales> l1muscales;
27  es.get<L1MuTriggerScalesRcd>().get(l1muscales);
28 
29  ESHandle<L1MuTriggerPtScale> l1muptscale;
30  es.get<L1MuTriggerPtScaleRcd>().get(l1muptscale);
31 
32  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
33  printScale(l1muptscale->getPtScale());
34 
35  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
36  printScale(l1muscales->getPhiScale());
37 
38  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
39  printScale(l1muscales->getGMTEtaScale());
40 
41  for (int i = 0; i < 4; i++) {
42  cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
43  printScale(l1muscales->getRegionalEtaScale(i));
44  }
45 
46  ESHandle<L1MuGMTScales> l1gmtscales;
47  es.get<L1MuGMTScalesRcd>().get(l1gmtscales);
48 
49  for (int i = 0; i < 4; i++) {
50  cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
51  printScale(l1gmtscales->getReducedEtaScale(i));
52  }
53 
54  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
55  printScale(l1gmtscales->getDeltaEtaScale(0));
56 
57  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
58  printScale(l1gmtscales->getDeltaPhiScale());
59 
60  for (int i = 0; i < 4; i++) {
61  cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
62  printScale(l1gmtscales->getOvlEtaScale(i));
63  }
64 
65  // cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
66  // printScale(l1gmtscales->getCaloEtaScale());
67 }

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

◆ printScale()

void L1MuScalesTester::printScale ( const L1MuScale l1muscale)

Definition at line 69 of file L1MuScalesTester.cc.

69 { cout << l1muscale->print(); }

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

Referenced by analyze().

mps_fire.i
i
Definition: mps_fire.py:428
L1MuTriggerScales::getGMTEtaScale
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
Definition: L1MuTriggerScales.h:169
edm
HLT enums.
Definition: AlignableModifier.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1MuTriggerScales::getPhiScale
const L1MuScale * getPhiScale() const
get the phi scale
Definition: L1MuTriggerScales.h:175
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
L1MuTriggerScales::getRegionalEtaScale
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
Definition: L1MuTriggerScales.h:158
edm::ESHandle
Definition: DTSurvey.h:22
L1MuGMTScales::getOvlEtaScale
const L1MuScale * getOvlEtaScale(int isys) const
get the overlap eta scale (4 bits); isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
Definition: L1MuGMTScales.h:204
L1MuGMTScales::getReducedEtaScale
const L1MuScale * getReducedEtaScale(int isys) const
get the recuced eta scale for matching in the overlap region (4 bit); isys = 0(DT),...
Definition: L1MuGMTScales.h:187
L1MuTriggerPtScale::getPtScale
const L1MuScale * getPtScale() const
get the Pt scale
Definition: L1MuTriggerPtScale.h:59
L1MuGMTScales::getDeltaEtaScale
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),...
Definition: L1MuGMTScales.h:194
L1MuTriggerPtScaleRcd
Definition: L1MuTriggerPtScaleRcd.h:12
get
#define get
L1MuTriggerScalesRcd
Definition: L1MuTriggerScalesRcd.h:12
L1MuScalesTester::printScale
void printScale(const L1MuScale *)
Definition: L1MuScalesTester.cc:69
L1MuGMTScales::getDeltaPhiScale
const L1MuScale * getDeltaPhiScale() const
get the delta phi scale ( 3 bits)
Definition: L1MuGMTScales.h:201
L1MuScale::print
virtual std::string print() const =0
L1MuGMTScalesRcd
Definition: L1MuGMTScalesRcd.h:12