CalibFormats
CastorObjects
interface
CastorCalibrationsSet.h
Go to the documentation of this file.
1
#ifndef CALIBFORMATS_CASTOROBJECTS_CASTORCALIBRATIONSSET_H
2
#define CALIBFORMATS_CASTOROBJECTS_CASTORCALIBRATIONSSET_H 1
3
4
#include "
CalibFormats/CastorObjects/interface/CastorCalibrations.h
"
5
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
6
#include <vector>
7
8
class
CastorCalibrationsSet
{
9
public
:
10
CastorCalibrationsSet
();
11
const
CastorCalibrations
&
getCalibrations
(
const
DetId
id
)
const
;
12
void
setCalibrations
(
const
DetId
id
,
const
CastorCalibrations
& ca);
13
void
sort
();
14
void
clear
();
15
16
private
:
17
struct
CalibSetObject
{
18
CalibSetObject
(
const
DetId
& aid) :
id
(aid) {}
19
DetId
id
;
20
CastorCalibrations
calib
;
21
bool
operator<
(
const
CalibSetObject
& cso)
const
{
return
id
< cso.
id
; }
22
bool
operator==
(
const
CalibSetObject
& cso)
const
{
return
id
== cso.
id
; }
23
};
24
typedef
CalibSetObject
Item
;
25
CastorCalibrations
dummy
;
26
std::vector<CalibSetObject>
mItems
;
27
bool
sorted_
;
28
};
29
30
#endif
CastorCalibrationsSet::clear
void clear()
Definition:
CastorCalibrationsSet.cc:38
CastorCalibrationsSet::dummy
CastorCalibrations dummy
Definition:
CastorCalibrationsSet.h:25
CastorCalibrationsSet::setCalibrations
void setCalibrations(const DetId id, const CastorCalibrations &ca)
Definition:
CastorCalibrationsSet.cc:21
CastorCalibrationsSet::CalibSetObject
Definition:
CastorCalibrationsSet.h:17
CastorCalibrationsSet::CalibSetObject::id
DetId id
Definition:
CastorCalibrationsSet.h:19
CastorCalibrationsSet::sorted_
bool sorted_
Definition:
CastorCalibrationsSet.h:27
CastorCalibrationsSet::CalibSetObject::operator==
bool operator==(const CalibSetObject &cso) const
Definition:
CastorCalibrationsSet.h:22
CastorCalibrationsSet::sort
void sort()
Definition:
CastorCalibrationsSet.cc:32
CastorCalibrationsSet
Definition:
CastorCalibrationsSet.h:8
CastorCalibrationsSet::CalibSetObject::calib
CastorCalibrations calib
Definition:
CastorCalibrationsSet.h:20
DetId
Definition:
DetId.h:17
CastorCalibrationsSet::CalibSetObject::CalibSetObject
CalibSetObject(const DetId &aid)
Definition:
CastorCalibrationsSet.h:18
CastorCalibrations
Definition:
CastorCalibrations.h:9
CastorCalibrations.h
CastorCalibrationsSet::CalibSetObject::operator<
bool operator<(const CalibSetObject &cso) const
Definition:
CastorCalibrationsSet.h:21
CastorCalibrationsSet::getCalibrations
const CastorCalibrations & getCalibrations(const DetId id) const
Definition:
CastorCalibrationsSet.cc:8
HcalDetId.h
CastorCalibrationsSet::CastorCalibrationsSet
CastorCalibrationsSet()
Definition:
CastorCalibrationsSet.cc:6
CastorCalibrationsSet::mItems
std::vector< CalibSetObject > mItems
Definition:
CastorCalibrationsSet.h:26
CastorCalibrationsSet::Item
CalibSetObject Item
Definition:
CastorCalibrationsSet.h:24
Generated for CMSSW Reference Manual by
1.8.16