test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1TriggerConfig
Utilities
src
L1TEndcapReader.cc
Go to the documentation of this file.
1
#include <iomanip>
2
#include <iostream>
3
4
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
5
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
9
#include "
FWCore/Framework/interface/EventSetup.h
"
10
#include "
FWCore/Framework/interface/ESHandle.h
"
11
12
#include "
CondFormats/DataRecord/interface/L1TMuonEndcapParamsRcd.h
"
13
//#include "CondFormats/L1TObjects/interface/L1TMuonEndcapParams.h"
14
#include "
FWCore/ServiceRegistry/interface/Service.h
"
15
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
16
#include "
CondCore/CondDB/interface/Session.h
"
17
18
#include <iostream>
19
using namespace
std;
20
21
class
L1TEndcapReader
:
public
edm::EDAnalyzer
{
22
public
:
23
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&);
24
25
explicit
L1TEndcapReader
(
const
edm::ParameterSet
&) : edm::EDAnalyzer(){}
26
virtual
~L1TEndcapReader
(
void
){}
27
};
28
29
void
L1TEndcapReader::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup){
30
/*
31
edm::ESHandle<L1TMuonEndcapParams> handle1;
32
evSetup.get<L1TMuonEndcapParamsRcd>().get( handle1 ) ;
33
boost::shared_ptr<L1TMuonEndcapParams> ptr1(new L1TMuonEndcapParams(*(handle1.product ())));
34
35
cout<<"L1TMuonEndcapParams: "<<endl;
36
ptr1->print(cout);
37
38
// a more comprehensive output:
39
std::vector <std::pair<int,EndCapForest*> > forests = ptr1->getPtForests();
40
for(auto & forest : forests){
41
cout<<" i="<<forest.first;
42
for(unsigned int tr=0; tr<forest.second->size(); tr++){
43
cout<<" tree ptr="<<hex<<forest.second->getTree(tr)<<dec<<endl;
44
}
45
}
46
*/
47
}
48
49
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
50
#include "
FWCore/Framework/interface/MakerMacros.h
"
51
#include "
FWCore/Framework/interface/ModuleFactory.h
"
52
53
DEFINE_FWK_MODULE
(
L1TEndcapReader
);
54
Session.h
Vispa.Share.Profiling.analyze
def analyze
Definition:
Profiling.py:11
L1TEndcapReader::~L1TEndcapReader
virtual ~L1TEndcapReader(void)
Definition:
L1TEndcapReader.cc:26
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MakerMacros.h
EventSetup.h
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
PoolDBOutputService.h
ESHandle.h
L1TEndcapReader
Definition:
L1TEndcapReader.cc:21
Service.h
edm::EventSetup
Definition:
EventSetup.h:45
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
L1TMuonEndcapParamsRcd.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
edm::Event
Definition:
Event.h:65
L1TEndcapReader::L1TEndcapReader
L1TEndcapReader(const edm::ParameterSet &)
Definition:
L1TEndcapReader.cc:25
ModuleDef.h
L1TEndcapReader::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
L1TEndcapReader.cc:29
Generated for CMSSW Reference Manual by
1.8.5