|
def | __init__ (self) |
|
def | setWithCorr (self, val) |
|
def | Print (self) |
|
def | getChannelList (self, partitions, gains=[0]) |
|
def | makeRange (self, chans) |
|
def | getChannelSelection (self, partitions, gains) |
|
def | getChannelSelectionAllGains (self, partitions) |
|
def | getGain (self, c) |
|
def | channelsPerPartition (self, chans, show=True) |
|
Definition at line 3 of file LArExtendedSubDetGrouping.py.
◆ __init__()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.__init__ |
( |
|
self | ) |
|
Definition at line 4 of file LArExtendedSubDetGrouping.py.
17 for gain
in range(0,3):
18 self._EMBC+=(3+gain*12,)
19 self._EMBA+=(9+gain*12,)
21 self._EMBCPS+=(4+gain*12,)
22 self._EMBAPS+=(10+gain*12,)
24 self._EMECC+=(5+gain*12,)
25 self._EMECA+=(11+gain*12,)
27 self._EMECCPS+=(6+gain*12,)
28 self._EMECAPS+=(12+gain*12,)
30 self._HECC+=(7+gain*12,)
31 self._HECA+=(13+gain*12,)
33 self._FCALC+=(8+gain*12,)
34 self._FCALA+=(14+gain*12,)
38 self._empty=self._emptyC + self._emptyA
43 self._partitions=dict()
44 self._partitions[
'EMBAPS'] = self._EMBAPS
45 self._partitions[
'EMBCPS'] = self._EMBCPS
46 self._partitions[
'EMECAPS'] = self._EMECAPS
47 self._partitions[
'EMECCPS'] = self._EMECCPS
48 self._partitions[
'EMBA'] = self._EMBA
49 self._partitions[
'EMBC'] = self._EMBC
50 self._partitions[
'EMECA']= self._EMECA
51 self._partitions[
'EMECC'] = self._EMECC
52 self._partitions[
'HECA'] = self._HECA
53 self._partitions[
'HECC'] = self._HECC
54 self._partitions[
'FCALA'] = self._FCALA
55 self._partitions[
'FCALC'] = self._FCALC
56 self._partitions[
'EMPTYA'] = self._emptyA
57 self._partitions[
'EMPTYC'] = self._emptyC
61 self._corr[
'EMBAPS'] = 1001
62 self._corr[
'EMBCPS'] = 1002
63 self._corr[
'EMECAPS'] = 1003
64 self._corr[
'EMECCPS'] = 1004
65 self._corr[
'EMBA'] = 1005
66 self._corr[
'EMBC'] = 1006
67 self._corr[
'EMECA'] = 1007
68 self._corr[
'EMECC'] = 1008
69 self._corr[
'HECA'] = 1009
70 self._corr[
'HECC'] = 1010
71 self._corr[
'FCALA'] = 1011
72 self._corr[
'FCALC'] = 1012
75 self._revLookup=dict()
76 for (p, chs)
in self._partitions.
items():
◆ channelsPerPartition()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.channelsPerPartition |
( |
|
self, |
|
|
|
chans, |
|
|
|
show = True |
|
) |
| |
Definition at line 181 of file LArExtendedSubDetGrouping.py.
181 def channelsPerPartition(self,chans,show=True):
188 self.counts[g]=1+self.counts[g]
191 print(
"%7s: " % self.name,end=
"")
192 print(
"HIGH:%2i/%2i" % (self.counts[0],self.size),)
193 if self.counts[0] != self.size:
197 print(
"MED:%2i/%2i" % (self.counts[1],self.size),)
198 if self.counts[1] != self.size:
202 print(
"LOW:%2i/%2i" % (self.counts[2],self.size),)
203 if self.counts[2] != self.size:
209 for (p, chs)
in self._partitions.
items():
210 partCounter[p]=counterElem(len(chs),p)
213 (gain,cs)=self.getGain(c)
215 print(
"ERROR: Unkown channel",c )
220 partCounter[p].inc(gain)
◆ getChannelList()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.getChannelList |
( |
|
self, |
|
|
|
partitions, |
|
|
|
gains = [0] |
|
) |
| |
Definition at line 89 of file LArExtendedSubDetGrouping.py.
89 def getChannelList(self,partitions,gains=[0]):
93 print (
"ERROR: Unkown gain",g)
97 for partition
in partitions:
100 extPart+=[
"EMECCPS",
"EMECC",
"HECC",
"FCALC"]
102 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA"]
104 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA",
105 "EMECCPS",
"EMECC",
"HECC",
"FCALC"]
107 extPart+=[
"EMBA",
"EMBAPS",
"EMBC",
"EMBCPS"]
112 if p
in self._partitions:
114 print (self._partitions[p])
115 chans+=[self._partitions[p][g]]
118 chans+=[self._corr[p]+g*12]
120 print (
"ERROR: Unkown partition '",partition,
"'")
◆ getChannelSelection()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.getChannelSelection |
( |
|
self, |
|
|
|
partitions, |
|
|
|
gains |
|
) |
| |
Definition at line 151 of file LArExtendedSubDetGrouping.py.
151 def getChannelSelection(self,partitions,gains):
152 return self.makeRange(self.getChannelList(partitions,gains))
◆ getChannelSelectionAllGains()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.getChannelSelectionAllGains |
( |
|
self, |
|
|
|
partitions |
|
) |
| |
Definition at line 154 of file LArExtendedSubDetGrouping.py.
154 def getChannelSelectionAllGains(self,partitions):
157 chans+=self.getChannelList([p],[0,1,2])
158 return self.makeRange(chans)
◆ getGain()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.getGain |
( |
|
self, |
|
|
|
c |
|
) |
| |
◆ makeRange()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.makeRange |
( |
|
self, |
|
|
|
chans |
|
) |
| |
Definition at line 124 of file LArExtendedSubDetGrouping.py.
134 print (
"Duplicated entry",c2)
136 if c2-1 == c1
or c2-1
in self._empty:
140 retVal+=
":"+
str(c1)+
","+
str(c2)
146 if series: retVal+=
":"+
str(c1)
◆ Print()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.Print |
( |
|
self | ) |
|
◆ setWithCorr()
def python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.setWithCorr |
( |
|
self, |
|
|
|
val |
|
) |
| |
◆ _corr
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._corr |
|
private |
◆ _EMBA
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMBA |
|
private |
◆ _EMBAPS
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMBAPS |
|
private |
◆ _EMBC
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMBC |
|
private |
◆ _EMBCPS
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMBCPS |
|
private |
◆ _EMECA
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMECA |
|
private |
◆ _EMECAPS
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMECAPS |
|
private |
◆ _EMECC
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMECC |
|
private |
◆ _EMECCPS
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._EMECCPS |
|
private |
◆ _empty
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._empty |
|
private |
◆ _emptyA
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._emptyA |
|
private |
◆ _emptyC
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._emptyC |
|
private |
◆ _FCALA
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._FCALA |
|
private |
◆ _FCALC
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._FCALC |
|
private |
◆ _HECA
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._HECA |
|
private |
◆ _HECC
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._HECC |
|
private |
◆ _partitions
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._partitions |
|
private |
◆ _revLookup
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._revLookup |
|
private |
◆ _withCorr
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping._withCorr |
|
private |
◆ counts
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.counts |
◆ name
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.name |
◆ size
python.LArExtendedSubDetGrouping.LArExtendedSubDetGrouping.size |
The documentation for this class was generated from the following file: