|
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 5 of file LArExtendedFTGrouping.py.
◆ __init__()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.__init__ |
( |
|
self | ) |
|
Definition at line 6 of file LArExtendedFTGrouping.py.
8 self._EMBA=
range(35,67)
9 self._EMBCPS=
range(117,149)
10 self._EMBAPS=
range(149,181)
13 EMEC=(67, 68, 69, 71, 72, 74, 75, 76, 78, 79, 80, 81, 82, 84, 85, 86, 87, 88, 90, 91)
14 self._EMECC=EMEC+(231,233,235,237)
18 self._EMECA+=(232,234,236,238)
23 self._EMECCPS+=(i+114,)
24 self._EMECAPS+=(i+139,)
26 self._HECC=(70,77,83,89)
34 self._emptyC=(184,187,191,197,203)
35 self._emptyA=(209,212,216,222,228)
36 self._empty=self._emptyC + self._emptyA
41 self._partitions=dict()
42 self._partitions[
'EMBAPS'] = self._EMBAPS
43 self._partitions[
'EMBCPS'] = self._EMBCPS
44 self._partitions[
'EMECAPS'] = self._EMECAPS
45 self._partitions[
'EMECCPS'] = self._EMECCPS
46 self._partitions[
'EMBA'] = self._EMBA
47 self._partitions[
'EMBC'] = self._EMBC
48 self._partitions[
'EMECA']= self._EMECA
49 self._partitions[
'EMECC'] = self._EMECC
50 self._partitions[
'HECA'] = self._HECA
51 self._partitions[
'HECC'] = self._HECC
52 self._partitions[
'FCALA'] = self._FCALA
53 self._partitions[
'FCALC'] = self._FCALC
54 self._partitions[
'EMPTYA'] = self._emptyA
55 self._partitions[
'EMPTYC'] = self._emptyC
59 self._corr[
'EMBAPS'] = 1001
60 self._corr[
'EMBCPS'] = 1002
61 self._corr[
'EMECAPS'] = 1003
62 self._corr[
'EMECCPS'] = 1004
63 self._corr[
'EMBA'] = 1005
64 self._corr[
'EMBC'] = 1006
65 self._corr[
'EMECA'] = 1007
66 self._corr[
'EMECC'] = 1008
67 self._corr[
'HECA'] = 1009
68 self._corr[
'HECC'] = 1010
69 self._corr[
'FCALA'] = 1011
70 self._corr[
'FCALC'] = 1012
73 self._revLookup=dict()
74 for (p, chs)
in self._partitions.
iteritems():
◆ channelsPerPartition()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.channelsPerPartition |
( |
|
self, |
|
|
|
chans, |
|
|
|
show = True |
|
) |
| |
Definition at line 179 of file LArExtendedFTGrouping.py.
179 def channelsPerPartition(self,chans,show=True):
186 self.counts[g]=1+self.counts[g]
189 print(
"%7s: " % self.name, end=
"")
190 print(
"HIGH:%2i/%2i" % (self.counts[0],self.size),)
191 if self.counts[0] != self.size:
195 print (
"MED:%2i/%2i" % (self.counts[1],self.size),)
196 if self.counts[1] != self.size:
200 print (
"LOW:%2i/%2i" % (self.counts[2],self.size),)
201 if self.counts[2] != self.size:
207 for (p, chs)
in self._partitions.
iteritems():
208 partCounter[p]=counterElem(len(chs),p)
211 (gain,cs)=self.getGain(c)
213 print(
"ERROR: Unkown channel",c)
216 p=self._revLookup[cs]
217 partCounter[p].inc(gain)
◆ getChannelList()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getChannelList |
( |
|
self, |
|
|
|
partitions, |
|
|
|
gains = [0] |
|
) |
| |
Definition at line 87 of file LArExtendedFTGrouping.py.
87 def getChannelList(self,partitions,gains=[0]):
91 print(
"ERROR: Unkown gain",g)
95 for partition
in partitions:
98 extPart+=[
"EMECCPS",
"EMECC",
"HECC",
"FCALC"]
100 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA"]
102 extPart+=[
"EMECAPS",
"EMECA",
"HECA",
"FCALA",
103 "EMECCPS",
"EMECC",
"HECC",
"FCALC"]
105 extPart+=[
"EMBA",
"EMBAPS",
"EMBC",
"EMBCPS"]
110 if p
in self._partitions:
112 for c
in self._partitions[p]:
116 chans+=[self._corr[p]+g*12]
118 print(
"ERROR: Unkown partition '",partition,
"'")
◆ getChannelSelection()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getChannelSelection |
( |
|
self, |
|
|
|
partitions, |
|
|
|
gains |
|
) |
| |
Definition at line 149 of file LArExtendedFTGrouping.py.
149 def getChannelSelection(self,partitions,gains):
150 return self.makeRange(self.getChannelList(partitions,gains))
◆ getChannelSelectionAllGains()
def python.LArExtendedFTGrouping.LArExtendedFTGrouping.getChannelSelectionAllGains |
( |
|
self, |
|
|
|
partitions |
|
) |
| |
Definition at line 152 of file LArExtendedFTGrouping.py.
152 def getChannelSelectionAllGains(self,partitions):
155 chans+=self.getChannelList([p],[0,1,2])
156 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: