CalibCalorimetry
HcalTPGAlgos
interface
HcalEmap.h
Go to the documentation of this file.
1
#ifndef HCALConfigDBTools_XMLTools_LMap_h
2
#define HCALConfigDBTools_XMLTools_LMap_h
3
// -*- C++ -*-
4
//
5
// Package: CalibCalorimetry/HcalTPGAlgos
6
// Class : HcalEmap
7
//
8
// Implementation:
9
// structure and functionality for HCAL electronic map
10
// NOTE!
11
// Keep xdaq and Oracle dependencies out of here!
12
//
20
//
21
// Original Author: Gena Kukartsev, kukarzev@fnal.gov
22
// Created: Tue Oct 14 14:30:20 CDT 2009
23
//
24
25
// system include files
26
#include <vector>
27
#include <cstring>
28
#include <fstream>
29
30
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
31
32
class
HcalEmap
{
33
public
:
34
HcalEmap
() {}
35
HcalEmap
(
std::string
filename
) {
read_map
(
filename
); }
36
~HcalEmap
() {}
37
38
class
HcalEmapRow
{
39
public
:
40
int
rawId
,
crate
,
slot
,
dcc
,
spigot
,
fiber
,
fiberchan
,
ieta
,
iphi
,
idepth
;
41
std::string
topbottom
,
subdet
;
42
43
HcalEmapRow
() {
44
rawId
= 0;
45
crate
= 0;
46
slot
= 0;
47
dcc
= 0;
48
spigot
= 0;
49
fiber
= 0;
50
fiberchan
= 0;
51
ieta
= 0;
52
iphi
= 0;
53
idepth
= 0;
54
topbottom
=
""
;
55
subdet
=
""
;
56
}
57
~HcalEmapRow
(){};
58
59
bool
operator<
(
const
HcalEmapRow
&
other
)
const
;
60
61
};
// end of class HcalEmapRow
62
63
int
read_map
(
std::string
filename
);
64
65
std::vector<HcalEmap::HcalEmapRow>&
get_map
(
void
);
66
67
protected
:
68
std::vector<HcalEmapRow>
map
;
69
};
// end of class HcalEmap
70
71
class
HcalEmap_test
{
72
public
:
73
HcalEmap_test
() {}
74
~HcalEmap_test
() {}
75
76
int
test_read_map
(
std::string
filename
);
77
};
// end of class HcalEmap_test
78
79
#endif
HcalEmap::HcalEmapRow::idepth
int idepth
Definition:
HcalEmap.h:40
HcalEmap::map
std::vector< HcalEmapRow > map
Definition:
HcalEmap.h:68
HcalEmap_test::test_read_map
int test_read_map(std::string filename)
Definition:
HcalEmap.cc:78
HcalEmap::HcalEmapRow::spigot
int spigot
Definition:
HcalEmap.h:40
HcalEmap::HcalEmapRow::fiber
int fiber
Definition:
HcalEmap.h:40
HcalEmap::HcalEmapRow::slot
int slot
Definition:
HcalEmap.h:40
HcalEmap_test::~HcalEmap_test
~HcalEmap_test()
Definition:
HcalEmap.h:74
HcalEmap::HcalEmapRow::topbottom
std::string topbottom
Definition:
HcalEmap.h:41
HcalEmap::HcalEmap
HcalEmap()
Definition:
HcalEmap.h:34
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
trackingPlots.other
other
Definition:
trackingPlots.py:1465
HcalEmap::get_map
std::vector< HcalEmap::HcalEmapRow > & get_map(void)
Definition:
HcalEmap.cc:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalEmap::HcalEmapRow::ieta
int ieta
Definition:
HcalEmap.h:40
HcalEmap::HcalEmapRow::~HcalEmapRow
~HcalEmapRow()
Definition:
HcalEmap.h:57
HcalEmap::~HcalEmap
~HcalEmap()
Definition:
HcalEmap.h:36
HcalEmap::HcalEmapRow::HcalEmapRow
HcalEmapRow()
Definition:
HcalEmap.h:43
HcalEmap::HcalEmapRow::subdet
std::string subdet
Definition:
HcalEmap.h:41
HcalEmap_test
Definition:
HcalEmap.h:71
HcalEmap::HcalEmapRow
Definition:
HcalEmap.h:38
HcalEmap::read_map
int read_map(std::string filename)
Definition:
HcalEmap.cc:25
HcalSubdetector.h
HcalEmap::HcalEmapRow::crate
int crate
Definition:
HcalEmap.h:40
HcalEmap::HcalEmapRow::operator<
bool operator<(const HcalEmapRow &other) const
Definition:
HcalEmap.cc:73
HcalEmap_test::HcalEmap_test
HcalEmap_test()
Definition:
HcalEmap.h:73
HcalEmap
Definition:
HcalEmap.h:32
HcalEmap::HcalEmapRow::fiberchan
int fiberchan
Definition:
HcalEmap.h:40
HcalEmap::HcalEmapRow::dcc
int dcc
Definition:
HcalEmap.h:40
HcalEmap::HcalEmap
HcalEmap(std::string filename)
Definition:
HcalEmap.h:35
HcalEmap::HcalEmapRow::rawId
int rawId
Definition:
HcalEmap.h:40
HcalEmap::HcalEmapRow::iphi
int iphi
Definition:
HcalEmap.h:40
Generated for CMSSW Reference Manual by
1.8.16