|
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 4 of file LArExtendedFTGrouping.py.
◆ __init__()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.__init__ |
( |
|
self | ) |
|
Definition at line 5 of file LArExtendedFTGrouping.py.
7 self._EMBA=
range(35,67)
8 self._EMBCPS=
range(117,149)
9 self._EMBAPS=
range(149,181)
12 EMEC=(67, 68, 69, 71, 72, 74, 75, 76, 78, 79, 80, 81, 82, 84, 85, 86, 87, 88, 90, 91)
13 self._EMECC=EMEC+(231,233,235,237)
17 self._EMECA+=(232,234,236,238)
22 self._EMECCPS+=(i+114,)
23 self._EMECAPS+=(i+139,)
25 self._HECC=(70,77,83,89)
33 self._emptyC=(184,187,191,197,203)
34 self._emptyA=(209,212,216,222,228)
35 self._empty=self._emptyC + self._emptyA
40 self._partitions=dict()
41 self._partitions[
'EMBAPS'] = self._EMBAPS
42 self._partitions[
'EMBCPS'] = self._EMBCPS
43 self._partitions[
'EMECAPS'] = self._EMECAPS
44 self._partitions[
'EMECCPS'] = self._EMECCPS
45 self._partitions[
'EMBA'] = self._EMBA
46 self._partitions[
'EMBC'] = self._EMBC
47 self._partitions[
'EMECA']= self._EMECA
48 self._partitions[
'EMECC'] = self._EMECC
49 self._partitions[
'HECA'] = self._HECA
50 self._partitions[
'HECC'] = self._HECC
51 self._partitions[
'FCALA'] = self._FCALA
52 self._partitions[
'FCALC'] = self._FCALC
53 self._partitions[
'EMPTYA'] = self._emptyA
54 self._partitions[
'EMPTYC'] = self._emptyC
58 self._corr[
'EMBAPS'] = 1001
59 self._corr[
'EMBCPS'] = 1002
60 self._corr[
'EMECAPS'] = 1003
61 self._corr[
'EMECCPS'] = 1004
62 self._corr[
'EMBA'] = 1005
63 self._corr[
'EMBC'] = 1006
64 self._corr[
'EMECA'] = 1007
65 self._corr[
'EMECC'] = 1008
66 self._corr[
'HECA'] = 1009
67 self._corr[
'HECC'] = 1010
68 self._corr[
'FCALA'] = 1011
69 self._corr[
'FCALC'] = 1012
72 self._revLookup=dict()
73 for (p, chs)
in self._partitions.
iteritems():
◆ channelsPerPartition()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.channelsPerPartition |
( |
|
self, |
|
|
|
chans, |
|
|
|
show = True |
|
) |
| |
Definition at line 178 of file LArExtendedFTGrouping.py.
178 def channelsPerPartition(self,chans,show=True):
185 self.counts[g]=1+self.counts[g]
188 print(
"%7s: " % self.name, end=
"")
189 print(
"HIGH:%2i/%2i" % (self.counts[0],self.size),)
190 if self.counts[0] != self.size:
194 print (
"MED:%2i/%2i" % (self.counts[1],self.size),)
195 if self.counts[1] != self.size:
199 print (
"LOW:%2i/%2i" % (self.counts[2],self.size),)
200 if self.counts[2] != self.size:
206 for (p, chs)
in self._partitions.
iteritems():
207 partCounter[p]=counterElem(len(chs),p)
210 (gain,cs)=self.getGain(c)
212 print(
"ERROR: Unkown channel",c)
215 p=self._revLookup[cs]
216 partCounter[p].inc(gain)
◆ getChannelList()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getChannelList |
( |
|
self, |
|
|
|
partitions, |
|
|
|
gains = [0] |
|
) |
| |
Definition at line 86 of file LArExtendedFTGrouping.py.
86 def getChannelList(self,partitions,gains=[0]):
90 print(
"ERROR: Unkown gain",g)
94 for partition
in partitions:
97 extPart+=[
"EMECCPS",
"EMECC",
"HECC",
"FCALC"]
99 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA"]
101 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA",
102 "EMECCPS",
"EMECC",
"HECC",
"FCALC"]
104 extPart+=[
"EMBA",
"EMBAPS",
"EMBC",
"EMBCPS"]
109 if p
in self._partitions:
111 for c
in self._partitions[p]:
115 chans+=[self._corr[p]+g*12]
117 print(
"ERROR: Unkown partition '",partition,
"'")
◆ getChannelSelection()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getChannelSelection |
( |
|
self, |
|
|
|
partitions, |
|
|
|
gains |
|
) |
| |
Definition at line 148 of file LArExtendedFTGrouping.py.
148 def getChannelSelection(self,partitions,gains):
149 return self.makeRange(self.getChannelList(partitions,gains))
◆ getChannelSelectionAllGains()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getChannelSelectionAllGains |
( |
|
self, |
|
|
|
partitions |
|
) |
| |
Definition at line 151 of file LArExtendedFTGrouping.py.
151 def getChannelSelectionAllGains(self,partitions):
154 chans+=self.getChannelList([p],[0,1,2])
155 return self.makeRange(chans)
◆ getGain()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getGain |
( |
|
self, |
|
|
|
c |
|
) |
| |
◆ makeRange()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.makeRange |
( |
|
self, |
|
|
|
chans |
|
) |
| |
◆ Print()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.Print |
( |
|
self | ) |
|
◆ setWithCorr()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.setWithCorr |
( |
|
self, |
|
|
|
val |
|
) |
| |
◆ _corr
python.LArExtendedFTGrouping.LArExtendedFTGrouping._corr |
|
private |
◆ _EMBA
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMBA |
|
private |
◆ _EMBAPS
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMBAPS |
|
private |
◆ _EMBC
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMBC |
|
private |
◆ _EMBCPS
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMBCPS |
|
private |
◆ _EMECA
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMECA |
|
private |
◆ _EMECAPS
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMECAPS |
|
private |
◆ _EMECC
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMECC |
|
private |
◆ _EMECCPS
python.LArExtendedFTGrouping.LArExtendedFTGrouping._EMECCPS |
|
private |
◆ _empty
python.LArExtendedFTGrouping.LArExtendedFTGrouping._empty |
|
private |
◆ _emptyA
python.LArExtendedFTGrouping.LArExtendedFTGrouping._emptyA |
|
private |
◆ _emptyC
python.LArExtendedFTGrouping.LArExtendedFTGrouping._emptyC |
|
private |
◆ _FCALA
python.LArExtendedFTGrouping.LArExtendedFTGrouping._FCALA |
|
private |
◆ _FCALC
python.LArExtendedFTGrouping.LArExtendedFTGrouping._FCALC |
|
private |
◆ _HECA
python.LArExtendedFTGrouping.LArExtendedFTGrouping._HECA |
|
private |
◆ _HECC
python.LArExtendedFTGrouping.LArExtendedFTGrouping._HECC |
|
private |
◆ _partitions
python.LArExtendedFTGrouping.LArExtendedFTGrouping._partitions |
|
private |
◆ _revLookup
python.LArExtendedFTGrouping.LArExtendedFTGrouping._revLookup |
|
private |
◆ _withCorr
python.LArExtendedFTGrouping.LArExtendedFTGrouping._withCorr |
|
private |
◆ counts
python.LArExtendedFTGrouping.LArExtendedFTGrouping.counts |
◆ name
python.LArExtendedFTGrouping.LArExtendedFTGrouping.name |
◆ size
python.LArExtendedFTGrouping.LArExtendedFTGrouping.size |
The documentation for this class was generated from the following file: