src
L1Trigger
L1TMuonOverlap
interface
OMTFinput.h
Go to the documentation of this file.
1
#ifndef OMTF_OMTFinput_H
2
#define OMTF_OMTFinput_H
3
4
#include <vector>
5
#include <ostream>
6
#include <bitset>
7
8
class
XMLConfigReader
;
9
class
OMTFConfiguration
;
10
11
class
OMTFinput
{
12
public
:
13
typedef
std::vector<int>
vector1D
;
14
typedef
std::vector<vector1D>
vector2D
;
15
16
OMTFinput
(
const
OMTFConfiguration
*);
17
20
bool
addLayerHit
(
unsigned
int
iLayer,
unsigned
int
iInput,
int
iPhi,
int
iEta
,
bool
allowOverwrite =
true
);
21
23
void
clear
();
24
26
void
readData
(
XMLConfigReader
*aReader,
unsigned
int
iEvent
= 0,
unsigned
int
iProcessor = 0);
27
29
void
shiftMyPhi
(
int
phiShift);
30
33
void
mergeData
(
const
OMTFinput
*aInput);
34
35
const
OMTFinput::vector1D
&
getLayerData
(
unsigned
int
iLayer,
bool
giveEta =
false
)
const
;
36
37
std::bitset<128>
getRefHits
(
unsigned
int
iProcessor)
const
;
38
39
friend
std::ostream &
operator<<
(std::ostream &
out
,
const
OMTFinput
&aInput);
40
41
OMTFinput
&
operator+=
(
const
OMTFinput
&iInput) {
42
mergeData
(&iInput);
43
return
*
this
;
44
}
45
46
private
:
50
vector2D
measurementsPhi
;
51
55
vector2D
measurementsEta
;
56
58
mutable
vector1D
refHitsEta
;
59
60
const
OMTFConfiguration
*
myOmtfConfig
;
61
};
62
63
#endif
OMTFinput::addLayerHit
bool addLayerHit(unsigned int iLayer, unsigned int iInput, int iPhi, int iEta, bool allowOverwrite=true)
Definition:
OMTFinput.cc:44
OMTFinput::clear
void clear()
Reset vectors with data.
Definition:
OMTFinput.cc:91
OMTFinput::measurementsEta
vector2D measurementsEta
Definition:
OMTFinput.h:55
OMTFinput::mergeData
void mergeData(const OMTFinput *aInput)
Definition:
OMTFinput.cc:76
OMTFinput::shiftMyPhi
void shiftMyPhi(int phiShift)
Apply shift to all data.
Definition:
OMTFinput.cc:99
OMTFinput::operator<<
friend std::ostream & operator<<(std::ostream &out, const OMTFinput &aInput)
Definition:
OMTFinput.cc:121
OMTFinput::vector1D
std::vector< int > vector1D
Definition:
OMTFinput.h:13
OMTFinput::vector2D
std::vector< vector1D > vector2D
Definition:
OMTFinput.h:14
l1tTowerCalibrationProducer_cfi.iEta
iEta
Definition:
l1tTowerCalibrationProducer_cfi.py:60
OMTFinput::refHitsEta
vector1D refHitsEta
RefHitsEta.
Definition:
OMTFinput.h:58
OMTFinput::getLayerData
const OMTFinput::vector1D & getLayerData(unsigned int iLayer, bool giveEta=false) const
Definition:
OMTFinput.cc:17
iEvent
int iEvent
Definition:
GenABIO.cc:224
XMLConfigReader
Definition:
XMLConfigReader.h:26
OMTFinput::OMTFinput
OMTFinput(const OMTFConfiguration *)
Definition:
OMTFinput.cc:11
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
OMTFConfiguration
Definition:
OMTFConfiguration.h:44
OMTFinput
Definition:
OMTFinput.h:11
OMTFinput::myOmtfConfig
const OMTFConfiguration * myOmtfConfig
Definition:
OMTFinput.h:60
OMTFinput::readData
void readData(XMLConfigReader *aReader, unsigned int iEvent=0, unsigned int iProcessor=0)
Read data from a XML file.
Definition:
OMTFinput.cc:70
OMTFinput::measurementsPhi
vector2D measurementsPhi
Definition:
OMTFinput.h:50
OMTFinput::getRefHits
std::bitset< 128 > getRefHits(unsigned int iProcessor) const
Definition:
OMTFinput.cc:26
OMTFinput::operator+=
OMTFinput & operator+=(const OMTFinput &iInput)
Definition:
OMTFinput.h:41
Generated for CMSSW Reference Manual by
1.8.14