1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef CastorQIEData_h
#define CastorQIEData_h
/**
\class CastorQIEData
\author Fedor Ratnikov (UMd), with changes by Radek Ofierzynski
(preserve backwards compatibility of methods for this release)
Modified by L.Mundim (Mar/2009)
POOL object to store QIE parameters
$Author: ratnikov
$Date: 2008/07/15 13:00:16 $
$Revision: 1.9 $
*/
#include "CondFormats/Serialization/interface/Serializable.h"
#include <vector>
#include <algorithm>
#include "CondFormats/CastorObjects/interface/CastorCondObjectContainer.h"
#include "CondFormats/CastorObjects/interface/CastorQIEShape.h"
#include "CondFormats/CastorObjects/interface/CastorQIECoder.h"
#include "DataFormats/DetId/interface/DetId.h"
class CastorQIEData : public CastorCondObjectContainer<CastorQIECoder> {
private:
static const CastorQIEShape shape_;
public:
// constructor, destructor, and all methods stay the same
CastorQIEData() : CastorCondObjectContainer<CastorQIECoder>() {}
/// get basic shape
// const CastorQIEShape& getShape () const {return mShape;}
const CastorQIEShape& getShape() const { return shape_; }
/// get QIE parameters
const CastorQIECoder* getCoder(DetId fId) const { return getValues(fId); }
// check if data are sorted - remove in the next version
bool sorted() const { return true; }
// fill values [capid][range]
//bool addCoder (const CastorQIECoder& fCoder, bool h2mode_ = false) { return addValues(fCoder, h2mode_); }
bool addCoder(const CastorQIECoder& fCoder) { return addValues(fCoder); }
// sort values by channelId - remove in the next version
void sort() {}
std::string myname() const { return (std::string) "CastorQIEData"; }
//not needed/not used CastorQIEData(const CastorQIEData&);
COND_SERIALIZABLE;
};
#endif
|