CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Public Attributes
l1t::GtInputDump Class Reference
Inheritance diagram for l1t::GtInputDump:
edm::EDAnalyzer edm::EDConsumerBase

Classes

class  cc
 

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
 GtInputDump (const edm::ParameterSet &)
 
virtual ~GtInputDump ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Public Attributes

EDGetToken egToken
 
EDGetToken etsumToken
 
EDGetToken jetToken
 
EDGetToken muToken
 
EDGetToken tauToken
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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 56 of file GtInputDump.cc.

Constructor & Destructor Documentation

l1t::GtInputDump::GtInputDump ( const edm::ParameterSet iConfig)
explicit

Definition at line 69 of file GtInputDump.cc.

References edm::ParameterSet::getParameter().

70  {
71  egToken = consumes<BXVector<l1t::EGamma>>(iConfig.getParameter<InputTag>("egInputTag"));
72  muToken = consumes<BXVector<l1t::Muon>>(iConfig.getParameter<InputTag>("muInputTag"));
73  tauToken = consumes<BXVector<l1t::Tau>>(iConfig.getParameter<InputTag>("tauInputTag"));
74  jetToken = consumes<BXVector<l1t::Jet>>(iConfig.getParameter<InputTag>("jetInputTag"));
75  etsumToken = consumes<BXVector<l1t::EtSum>>(iConfig.getParameter<InputTag>("etsumInputTag"));
76  }
EDGetToken muToken
Definition: GtInputDump.cc:63
T getParameter(std::string const &) const
EDGetToken jetToken
Definition: GtInputDump.cc:65
EDGetToken egToken
Definition: GtInputDump.cc:62
EDGetToken tauToken
Definition: GtInputDump.cc:64
EDGetToken etsumToken
Definition: GtInputDump.cc:66
virtual l1t::GtInputDump::~GtInputDump ( )
inlinevirtual

Definition at line 59 of file GtInputDump.cc.

59 {};

Member Function Documentation

void l1t::GtInputDump::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 79 of file GtInputDump.cc.

References edm::Event::getByToken(), i, metsig::jet, fwrapper::jets, RPCpg::mu, patZpeak::muons, and metsig::tau.

79  {
80 
81 
82  //inputs
84  iEvent.getByToken(egToken,egammas);
85 
87  iEvent.getByToken(muToken,muons);
88 
90  iEvent.getByToken(tauToken,taus);
91 
93  iEvent.getByToken(jetToken,jets);
94 
96  iEvent.getByToken(etsumToken,etsums);
97 
98  printf("\n -------------------------------------- \n");
99  printf(" *********** New Event ************** \n");
100  printf(" -------------------------------------- \n");
101  //Loop over BX
102  for(int i = egammas->getFirstBX(); i <= egammas->getLastBX(); ++i) {
103 
104  printf("\n ========== BX %i =============================\n",i);
105 
106  //Loop over EGamma
107  printf(" ------ EGammas --------\n");
108  for(std::vector<l1t::EGamma>::const_iterator eg = egammas->begin(i); eg != egammas->end(i); ++eg) {
109  printf(" Pt %i Eta %i Phi %i Qual %i Isol %i\n",eg->hwPt(),eg->hwEta(),eg->hwPhi(),eg->hwQual(),eg->hwIso());
110  }
111 
112  //Loop over Muons
113  printf("\n ------ Muons --------\n");
114  for(std::vector<l1t::Muon>::const_iterator mu = muons->begin(i); mu != muons->end(i); ++mu) {
115  printf(" Pt %i Eta %i Phi %i Qual %i Iso %i \n",mu->hwPt(),mu->hwEta(),mu->hwPhi(),mu->hwQual(),mu->hwIso());
116  }
117 
118  //Loop over Taus
119  printf("\n ------ Taus ----------\n");
120  for(std::vector<l1t::Tau>::const_iterator tau = taus->begin(i); tau != taus->end(i); ++tau) {
121  printf(" Pt %i Eta %i Phi %i Qual %i Iso %i \n",tau->hwPt(),tau->hwEta(),tau->hwPhi(),tau->hwQual(),tau->hwIso());
122  }
123 
124  //Loop over Jets
125  printf("\n ------ Jets ----------\n");
126  for(std::vector<l1t::Jet>::const_iterator jet = jets->begin(i); jet != jets->end(i); ++jet) {
127  printf(" Pt %i Eta %i Phi %i Qual %i \n",jet->hwPt(),jet->hwEta(),jet->hwPhi(),jet->hwQual());
128  }
129  //Dump Content
130  printf("\n ------ EtSums ----------\n");
131  for(std::vector<l1t::EtSum>::const_iterator etsum = etsums->begin(i); etsum != etsums->end(i); ++etsum) {
132  printf(" Pt %i Eta %i Phi %i Qual %i \n",etsum->hwPt(),etsum->hwEta(),etsum->hwPhi(),etsum->hwQual());
133  }
134 
135 
136  }
137  printf("\n");
138  }
EDGetToken muToken
Definition: GtInputDump.cc:63
int i
Definition: DBlmapReader.cc:9
EDGetToken jetToken
Definition: GtInputDump.cc:65
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
vector< PseudoJet > jets
const int mu
Definition: Constants.h:22
EDGetToken egToken
Definition: GtInputDump.cc:62
tuple muons
Definition: patZpeak.py:38
EDGetToken tauToken
Definition: GtInputDump.cc:64
EDGetToken etsumToken
Definition: GtInputDump.cc:66

Member Data Documentation

EDGetToken l1t::GtInputDump::egToken

Definition at line 62 of file GtInputDump.cc.

EDGetToken l1t::GtInputDump::etsumToken

Definition at line 66 of file GtInputDump.cc.

EDGetToken l1t::GtInputDump::jetToken

Definition at line 65 of file GtInputDump.cc.

EDGetToken l1t::GtInputDump::muToken

Definition at line 63 of file GtInputDump.cc.

EDGetToken l1t::GtInputDump::tauToken

Definition at line 64 of file GtInputDump.cc.