Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondTools
SiStrip
plugins
SiStripLorentzAngleReader.cc
Go to the documentation of this file.
1
#include "
CondFormats/SiStripObjects/interface/SiStripLorentzAngle.h
"
2
#include "
CondFormats/DataRecord/interface/SiStripLorentzAngleRcd.h
"
3
4
#include "
CondTools/SiStrip/plugins/SiStripLorentzAngleReader.h
"
5
6
#include <iostream>
7
#include <stdio.h>
8
#include <sys/time.h>
9
10
11
using namespace
cms;
12
13
SiStripLorentzAngleReader::SiStripLorentzAngleReader
(
const
edm::ParameterSet
& iConfig ):
14
printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug"
,5)),
15
label_(iConfig.getUntrackedParameter<std::
string
>(
"label"
,
""
)){}
16
SiStripLorentzAngleReader::~SiStripLorentzAngleReader
(){}
17
18
void
SiStripLorentzAngleReader::analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
& iSetup){
19
20
edm::ESHandle<SiStripLorentzAngle>
SiStripLorentzAngle_;
21
iSetup.
get
<
SiStripLorentzAngleRcd
>().
get
(
label_
,SiStripLorentzAngle_);
22
edm::LogInfo
(
"SiStripLorentzAngleReader"
) <<
"[SiStripLorentzAngleReader::analyze] End Reading SiStripLorentzAngle with label "
<<
label_
<< std::endl;
23
24
std::map<unsigned int,float> detid_la= SiStripLorentzAngle_->getLorentzAngles();
25
std::map<unsigned int,float>::const_iterator it;
26
size_t
count
=0;
27
for
(it=detid_la.begin();it!=detid_la.end() && count<
printdebug_
;it++)
28
{
29
edm::LogInfo
(
"SiStripLorentzAngleReader"
) <<
"detid "
<< it->first <<
" \t"
30
<<
" Lorentz angle "
<< it->second;
31
count++;
32
}
33
}
34
prof2calltree.count
list count
Definition:
prof2calltree.py:146
SiStripLorentzAngleReader::label_
std::string label_
Definition:
SiStripLorentzAngleReader.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
SiStripLorentzAngleRcd
Definition:
SiStripCondDataRecords.h:22
SiStripLorentzAngle.h
SiStripLorentzAngleReader.h
edm::ESHandle< SiStripLorentzAngle >
SiStripLorentzAngleReader::printdebug_
uint32_t printdebug_
Definition:
SiStripLorentzAngleReader.h:31
edm::EventSetup
Definition:
EventSetup.h:44
SiStripLorentzAngleReader::~SiStripLorentzAngleReader
~SiStripLorentzAngleReader()
Definition:
SiStripLorentzAngleReader.cc:16
edm::LogInfo
Definition:
MessageLogger.h:214
edm::EventSetup::get
const T & get() const
Definition:
EventSetup.h:55
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
SiStripLorentzAngleReader::analyze
void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
SiStripLorentzAngleReader.cc:18
edm::ParameterSet
Definition:
ParameterSet.h:35
SiStripLorentzAngleReader::SiStripLorentzAngleReader
SiStripLorentzAngleReader(const edm::ParameterSet &)
Definition:
SiStripLorentzAngleReader.cc:13
SiStripLorentzAngleRcd.h
edm::Event
Definition:
Event.h:62
Generated for CMSSW Reference Manual by
1.8.5