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 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)
 

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 wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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)
 

Detailed Description

Definition at line 18 of file L1MuScalesTester.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file L1MuScalesTester.cc.

17  {
18 }
L1MuScalesTester::~L1MuScalesTester ( )
override

Definition at line 20 of file L1MuScalesTester.cc.

20  {
21 }

Member Function Documentation

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

Definition at line 23 of file L1MuScalesTester.cc.

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

23  {
24  using namespace edm;
25 
26  const char* detnam[]={ "DT", "RPC barrel", "CSC", "RPC forward" };
27 
29  es.get< L1MuTriggerScalesRcd >().get( l1muscales ) ;
30 
31  ESHandle< L1MuTriggerPtScale > l1muptscale ;
32  es.get< L1MuTriggerPtScaleRcd >().get( l1muptscale ) ;
33 
34  cout << "**** L1 Mu Pt Scale print *****************************************" << endl;
35  printScale(l1muptscale->getPtScale());
36 
37  cout << "**** L1 Mu Phi Scale print *****************************************" << endl;
38  printScale(l1muscales->getPhiScale());
39 
40  cout << "**** L1 Mu GMT eta Scale print *************************************" << endl;
41  printScale(l1muscales->getGMTEtaScale());
42 
43  for(int i=0; i<4; i++) {
44 
45  cout << "**** L1 Mu " << detnam[i] << " eta Scale print **************************************" << endl;
46  printScale(l1muscales->getRegionalEtaScale(i));
47 
48  }
49 
50  ESHandle< L1MuGMTScales > l1gmtscales ;
51  es.get< L1MuGMTScalesRcd >().get( l1gmtscales ) ;
52 
53  for(int i=0; i<4; i++) {
54 
55  cout << "**** L1 GMT " << detnam[i] << " reduced eta Scale print **************************************" << endl;
56  printScale(l1gmtscales->getReducedEtaScale(i));
57 
58  }
59 
60  cout << "**** L1 GMT delta eta Scale print *************************************" << endl;
61  printScale(l1gmtscales->getDeltaEtaScale(0));
62 
63  cout << "**** L1 GMT delta phi Scale print *************************************" << endl;
64  printScale(l1gmtscales->getDeltaPhiScale());
65 
66  for(int i=0; i<4; i++) {
67 
68  cout << "**** L1 GMT " << detnam[i] << " overlap eta Scale print **************************************" << endl;
69  printScale(l1gmtscales->getOvlEtaScale(i));
70 
71  }
72 
73 // cout << "**** L1 GMT calo eta Scale print *************************************" << endl;
74 // printScale(l1gmtscales->getCaloEtaScale());
75 
76 
77 
78 }
const L1MuScale * getPtScale() const
get the Pt scale
const L1MuScale * getPhiScale() const
get the phi scale
void printScale(const L1MuScale *)
const T & get() const
Definition: EventSetup.h:59
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC) ...
HLT enums.
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
void L1MuScalesTester::printScale ( const L1MuScale l1muscale)

Definition at line 80 of file L1MuScalesTester.cc.

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

Referenced by analyze().

80  {
81 
82 
83  cout << l1muscale->print();
84 
85 }
virtual std::string print() const =0