CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
DumpMuonScouting Class Reference
Inheritance diagram for DumpMuonScouting:
edm::stream::EDAnalyzer<> edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 DumpMuonScouting (const edm::ParameterSet &)
 
 ~DumpMuonScouting () override
 
- Public Member Functions inherited from edm::stream::EDAnalyzer<>
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
 EDAnalyzerBase (const EDAnalyzerBase &)=delete
 
ModuleDescription const & moduleDescription () const
 
const EDAnalyzerBaseoperator= (const EDAnalyzerBase &)=delete
 
 ~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)
 

Public Attributes

int m_maxBx
 
int m_minBx
 
EDGetTokenT< BXVector< l1t::Muon > > muToken
 

Private Attributes

int m_tvVersion
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::stream::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 44 of file DumpMuonScouting.cc.

Constructor & Destructor Documentation

◆ DumpMuonScouting()

DumpMuonScouting::DumpMuonScouting ( const edm::ParameterSet iConfig)
explicit

Definition at line 59 of file DumpMuonScouting.cc.

References edm::ParameterSet::getParameter().

59  {
60  muToken = consumes<l1t::MuonBxCollection>(iConfig.getParameter<InputTag>("muInputTag"));
61 
62  m_minBx = iConfig.getParameter<int>("minBx");
63  m_maxBx = iConfig.getParameter<int>("maxBx");
64 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
EDGetTokenT< BXVector< l1t::Muon > > muToken

◆ ~DumpMuonScouting()

DumpMuonScouting::~DumpMuonScouting ( )
inlineoverride

Definition at line 47 of file DumpMuonScouting.cc.

47 {};

Member Function Documentation

◆ analyze()

void DumpMuonScouting::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
overridevirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 67 of file DumpMuonScouting.cc.

References gather_cfg::cout, TauDecayModes::dec, mps_fire::i, iEvent, amptDefaultParameters_cff::mu, and PDWG_BPHSkim_cff::muons.

67  {
68  //input
70 
71  {
72  cout << " ----------------------------------------------------- " << endl;
73  cout << " *********** Run " << std::dec << iEvent.id().run() << " Event " << iEvent.id().event()
74  << " ************** " << endl;
75  cout << " ----------------------------------------------------- " << endl;
76 
77  //Loop over BX
78  for (int i = m_minBx; i <= m_maxBx; ++i) {
79  //Loop over Muons
80  //cout << " ------ Muons --------" << endl;
81  if (muons.isValid()) {
82  if (i >= muons->getFirstBX() && i <= muons->getLastBX()) {
83  for (std::vector<l1t::Muon>::const_iterator mu = muons->begin(i); mu != muons->end(i); ++mu) {
84  cout << " " << std::dec << std::setw(2) << std::setfill(' ') << std::setfill('0') << ")";
85  cout << " Pt " << std::dec << std::setw(3) << mu->hwPt() << " (0x" << std::hex << std::setw(3)
86  << std::setfill('0') << mu->hwPt() << ")";
87  cout << " EtaAtVtx " << std::dec << std::setw(3) << mu->hwEtaAtVtx() << " (0x" << std::hex << std::setw(3)
88  << std::setfill('0') << (mu->hwEtaAtVtx() & 0x1ff) << ")";
89  cout << " Eta " << std::dec << std::setw(3) << mu->hwEta() << " (0x" << std::hex << std::setw(3)
90  << std::setfill('0') << (mu->hwEta() & 0x1ff) << ")";
91  cout << " PhiAtVtx " << std::dec << std::setw(3) << mu->hwPhiAtVtx() << " (0x" << std::hex << std::setw(3)
92  << std::setfill('0') << mu->hwPhiAtVtx() << ")";
93  cout << " Phi " << std::dec << std::setw(3) << mu->hwPhi() << " (0x" << std::hex << std::setw(3)
94  << std::setfill('0') << mu->hwPhi() << ")";
95  cout << " Iso " << std::dec << std::setw(1) << mu->hwIso();
96  cout << " Qual " << std::dec << std::setw(1) << mu->hwQual();
97  cout << " Chrg " << std::dec << std::setw(1) << mu->hwCharge();
98  cout << endl;
99  }
100  } else {
101  cout << "No Muons stored for this bx " << i << endl;
102  }
103  } else {
104  cout << "No Muon Data in this event " << endl;
105  }
106 
107  } //loop over Bx
108  cout << std::dec << endl;
109  } //if dumpGtRecord
110 }
EDGetTokenT< BXVector< l1t::Muon > > muToken
int iEvent
Definition: GenABIO.cc:224

Member Data Documentation

◆ m_maxBx

int DumpMuonScouting::m_maxBx

Definition at line 53 of file DumpMuonScouting.cc.

◆ m_minBx

int DumpMuonScouting::m_minBx

Definition at line 52 of file DumpMuonScouting.cc.

◆ m_tvVersion

int DumpMuonScouting::m_tvVersion
private

Definition at line 56 of file DumpMuonScouting.cc.

◆ muToken

EDGetTokenT<BXVector<l1t::Muon> > DumpMuonScouting::muToken

Definition at line 50 of file DumpMuonScouting.cc.