ATLAS Offline Software
LArCalorimeter
LArCnv
LArCondTPCnv
LArCondTPCnv
LArConditionsSubset_p1.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
15
#ifndef LARCONDTPCNV_LARCONDITIONSSUBSET_P1_H
16
#define LARCONDTPCNV_LARCONDITIONSSUBSET_P1_H
17
27
#include <vector>
28
#include "
LArRawConditions/LArConditionsContainerBase.h
"
//For groupingType enum
29
31
// This enum is only used by legacy _pN persistent versions!
32
// The recent versions use the subsetSize() method for compatibilty with SuperCells
33
enum
Subset_size
{
34
NCHANNELPERFEB
= 128
35
};
36
37
38
class
LArConditionsSubset_p1
39
{
40
public
:
41
42
// LArConditionsSubset_p1 contain the persistent data for the
43
// set of LArConditionsSubsets for a given folder.
44
//
45
// Conditions data are normally organized by feb, identified by
46
// the febid. Each feb then has 128 channels of conditions data.
47
// In addition, there are corrections stored one per channel with
48
// their channel id.
49
//
50
// In certain cases, not all 128 channels will have conditions
51
// data. For normal conditions, space data may arise from channels
52
// that could not be treated, or other failures. For MC
53
// conditions, this data may be sparse due to the use of implied
54
// symmetry of the detector and so only a subset of febs and a
55
// subset of their channels are present.
56
//
57
// For the 'normal' dense set of conditions, it is sufficient to
58
// save the set of febids since the number of channels is known.
59
//
60
// For sparse conditions, we save both the febid and a bit map
61
// indicating which channels contain data.
62
//
63
// For corrections, we save separately the channel ids.
64
//
65
//
66
68
LArConditionsSubset_p1
( )
69
:
70
m_gain
(0),
71
m_channel
(0),
72
m_groupingType
(0)
73
{}
74
75
std::vector<unsigned int>
m_febIds
;
76
std::vector<unsigned int>
m_corrChannels
;
77
std::vector<unsigned int>
m_febsWithSparseData
;
78
unsigned
int
m_gain
;
79
unsigned
int
m_channel
;
80
unsigned
int
m_groupingType
;
81
82
unsigned
int
subsetSize
()
const
{
83
return
m_groupingType
==
LArConditionsContainerBase::SuperCells
? 320 : 128;}
84
85
};
86
87
88
89
#endif // LARCONDTPCNV_LARCONDITIONSSUBSET_P1_H
LArConditionsContainerBase::SuperCells
@ SuperCells
Definition:
LArConditionsContainerBase.h:51
LArConditionsSubset_p1::m_channel
unsigned int m_channel
Definition:
LArConditionsSubset_p1.h:79
LArConditionsSubset_p1::m_corrChannels
std::vector< unsigned int > m_corrChannels
Definition:
LArConditionsSubset_p1.h:76
LArConditionsSubset_p1::m_febsWithSparseData
std::vector< unsigned int > m_febsWithSparseData
Definition:
LArConditionsSubset_p1.h:77
LArConditionsContainerBase.h
This file contain an implementation base class for LArConditionsContainer.
LArConditionsSubset_p1::subsetSize
unsigned int subsetSize() const
Definition:
LArConditionsSubset_p1.h:82
LArConditionsSubset_p1::m_gain
unsigned int m_gain
Definition:
LArConditionsSubset_p1.h:78
Subset_size
Subset_size
Size of channel vector, per FEB.
Definition:
LArConditionsSubset_p1.h:33
LArConditionsSubset_p1::LArConditionsSubset_p1
LArConditionsSubset_p1()
Default constructor.
Definition:
LArConditionsSubset_p1.h:68
LArConditionsSubset_p1::m_febIds
std::vector< unsigned int > m_febIds
Definition:
LArConditionsSubset_p1.h:75
LArConditionsSubset_p1::m_groupingType
unsigned int m_groupingType
Definition:
LArConditionsSubset_p1.h:80
NCHANNELPERFEB
@ NCHANNELPERFEB
Definition:
LArConditionsSubset_p1.h:34
LArConditionsSubset_p1
persistent class container of LAr conditions data. Holds the generic information a LArConditionsSubse...
Definition:
LArConditionsSubset_p1.h:39
Generated on Sun Dec 22 2024 21:13:23 for ATLAS Offline Software by
1.8.18