#include <DataROOTDumper2.h>
Public Member Functions | |
DataROOTDumper2 (const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig, std::string rootFileName) | |
void | endJob () override |
void | observeEventEnd (const edm::Event &iEvent, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override |
~DataROOTDumper2 () override | |
Public Member Functions inherited from EmulationObserverBase | |
EmulationObserverBase (const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig) | |
const SimTrack * | findSimMuon (const edm::Event &event, const SimTrack *previous=nullptr) |
void | observeEventBegin (const edm::Event &iEvent) override |
void | observeProcesorEmulation (unsigned int iProcessor, l1t::tftype mtfType, const std::shared_ptr< OMTFinput > &input, const AlgoMuons &algoCandidates, const AlgoMuons &gbCandidates, const std::vector< l1t::RegionalMuonCand > &candMuons) override |
~EmulationObserverBase () override | |
Public Member Functions inherited from IOMTFEmulationObserver | |
virtual void | beginRun (edm::EventSetup const &eventSetup) |
IOMTFEmulationObserver () | |
virtual | ~IOMTFEmulationObserver () |
Private Member Functions | |
void | initializeTTree (std::string rootFileName) |
void | saveTTree () |
Private Attributes | |
unsigned int | evntCnt = 0 |
std::vector< TH2 * > | hitVsPt |
OmtfEvent | omtfEvent |
TH1I * | ptGenNeg = nullptr |
TH1I * | ptGenPos = nullptr |
TFile * | rootFile = nullptr |
TTree * | rootTree = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from EmulationObserverBase | |
unsigned int | candProcIndx = 0 |
edm::ParameterSet | edmCfg |
AlgoMuons::value_type | omtfCand |
const OMTFConfiguration * | omtfConfig |
l1t::RegionalMuonCand | regionalMuonCand |
const SimTrack * | simMuon = nullptr |
Definition at line 59 of file DataROOTDumper2.h.
DataROOTDumper2::DataROOTDumper2 | ( | const edm::ParameterSet & | edmCfg, |
const OMTFConfiguration * | omtfConfig, | ||
std::string | rootFileName | ||
) |
Definition at line 28 of file DataROOTDumper2.cc.
References initializeTTree(), OMTFConfiguration::nTestRefHits(), EmulationObserverBase::omtfConfig, and CSCSkim_cfi::rootFileName.
|
override |
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 178 of file DataROOTDumper2.cc.
References evntCnt.
|
private |
Definition at line 41 of file DataROOTDumper2.cc.
References OmtfEvent::muonCharge, OmtfEvent::muonEta, OmtfEvent::muonPhi, OmtfEvent::muonPt, OmtfEvent::omtfCharge, OmtfEvent::omtfEta, omtfEvent, OmtfEvent::omtfFiredLayers, OmtfEvent::omtfPhi, OmtfEvent::omtfProcessor, OmtfEvent::omtfPt, OmtfEvent::omtfQuality, OmtfEvent::omtfRefLayer, OmtfEvent::omtfScore, ptGenNeg, ptGenPos, rootFile, CSCSkim_cfi::rootFileName, and rootTree.
Referenced by DataROOTDumper2().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 75 of file DataROOTDumper2.cc.
References funct::abs(), EmulationObserverBase::candProcIndx, CSCDetId::chamber(), MuonSubdetId::CSC, evntCnt, OMTFConfiguration::getRefToLogicNumber(), OmtfEvent::hits, OMTFConfiguration::hwEtaToEta(), OMTFConfiguration::hwPtToGev(), l1t::RegionalMuonCand::hwQual(), l1t::RegionalMuonCand::hwSign(), createfilelist::int, OMTFConfiguration::isBendingLayer(), CoreSimTrack::momentum(), OmtfEvent::muonCharge, OmtfEvent::muonEta, OmtfEvent::muonPhi, OmtfEvent::muonPt, EmulationObserverBase::omtfCand, OmtfEvent::omtfCharge, EmulationObserverBase::omtfConfig, OmtfEvent::omtfEta, omtfEvent, OmtfEvent::omtfFiredLayers, OmtfEvent::omtfPhi, OmtfEvent::omtfProcessor, OmtfEvent::omtfPt, OmtfEvent::omtfQuality, OmtfEvent::omtfRefLayer, OmtfEvent::omtfScore, funct::pow(), ptGenNeg, ptGenPos, EmulationObserverBase::regionalMuonCand, rootTree, EmulationObserverBase::simMuon, CoreSimTrack::type(), and hit::z.
|
private |
Definition at line 66 of file DataROOTDumper2.cc.
References ptGenNeg, ptGenPos, rootFile, and rootTree.
Referenced by ~DataROOTDumper2().
|
private |
Definition at line 79 of file DataROOTDumper2.h.
Referenced by endJob(), and observeEventEnd().
|
private |
Definition at line 84 of file DataROOTDumper2.h.
|
private |
Definition at line 77 of file DataROOTDumper2.h.
Referenced by initializeTTree(), and observeEventEnd().
|
private |
Definition at line 82 of file DataROOTDumper2.h.
Referenced by initializeTTree(), observeEventEnd(), and saveTTree().
|
private |
Definition at line 81 of file DataROOTDumper2.h.
Referenced by initializeTTree(), observeEventEnd(), and saveTTree().
|
private |
Definition at line 74 of file DataROOTDumper2.h.
Referenced by initializeTTree(), and saveTTree().
|
private |
Definition at line 75 of file DataROOTDumper2.h.
Referenced by initializeTTree(), observeEventEnd(), and saveTTree().