1 #ifndef ALIFMDALTROMAPPING_H 2 #define ALIFMDALTROMAPPING_H 15 #ifndef ALIALTROMAPPING_H 16 # include <AliAltroMapping.h> 65 return (ddl<=2 ? Short_t(ddl + 1) : -1);
73 Char_t
Board2Ring(UShort_t board)
const {
return (board%2)?
'O':
'I'; }
87 UShort_t chan, Char_t& ring,
88 UShort_t& sec, Short_t& str)
const;
100 UShort_t preSamples, UShort_t sampleRate,
101 Short_t& strip, UShort_t& sample)
const;
119 UShort_t timebin, UShort_t preSamples,
121 UShort_t& det, Char_t& ring,
122 UShort_t& sec, Short_t& str,
123 UShort_t& sam)
const;
142 UShort_t altro, UShort_t chan,
143 UShort_t timebin, UShort_t preSamples,
145 UShort_t& det, Char_t& ring,
146 UShort_t& sec, Short_t& str,
147 UShort_t& sam)
const;
178 UShort_t str, UShort_t& board,
179 UShort_t& altro, UShort_t& chan)
const;
191 UShort_t sam, UShort_t preSamples,
192 UShort_t sampleRate)
const;
212 UShort_t sec, UShort_t str,
214 UShort_t preSamples, UShort_t sampleRate,
215 UShort_t& ddl, UShort_t& board,
216 UShort_t& altro, UShort_t& channel,
217 UShort_t& timebin)
const;
234 UShort_t sec, UShort_t str,
236 UShort_t preSamples, UShort_t sampleRate,
237 UShort_t& ddl, UShort_t& hwaddr,
238 UShort_t& timebin)
const;
247 UInt_t
ChannelAddress(UShort_t board, UShort_t altro, UShort_t channel)
const;
256 void ChannelAddress(UShort_t hwaddr, UShort_t& board, UShort_t& altro,
257 UShort_t& channel)
const;
266 Int_t
GetHWAddress(Int_t sector, Int_t str, Int_t ring);
280 Int_t
GetPad(Int_t hwaddr)
const;
293 void Print(Option_t* option=
"hw")
const;
virtual Bool_t CreateInvMapping()
Bool_t Strip2Channel(Char_t ring, UShort_t sec, UShort_t str, UShort_t &board, UShort_t &altro, UShort_t &chan) const
Int_t GetSector(Int_t hwaddr) const
UInt_t ChannelAddress(UShort_t board, UShort_t altro, UShort_t channel) const
Int_t GetPad(Int_t hwaddr) const
Short_t DDL2Detector(UInt_t ddl) const
Bool_t Hardware2Detector(UShort_t ddl, UShort_t hwaddr, UShort_t timebin, UShort_t preSamples, UShort_t sampleRate, UShort_t &det, Char_t &ring, UShort_t &sec, Short_t &str, UShort_t &sam) const
UShort_t Detector2DDL(UShort_t det) const
Int_t GetHWAddress(Int_t sector, Int_t str, Int_t ring)
virtual ~AliFMDAltroMapping()
void Print(Option_t *option="hw") const
UShort_t Strip2Timebin(UShort_t sec, UShort_t strip, UShort_t sam, UShort_t preSamples, UShort_t sampleRate) const
virtual Bool_t ReadMapping()
Bool_t Detector2Hardware(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UShort_t sam, UShort_t preSamples, UShort_t sampleRate, UShort_t &ddl, UShort_t &board, UShort_t &altro, UShort_t &channel, UShort_t &timebin) const
Bool_t Channel2StripBase(UShort_t board, UShort_t altro, UShort_t chan, Char_t &ring, UShort_t &sec, Short_t &str) const
Class that encodes a map to/from ALTRO hardware address to FMD detector coordinates.
Int_t GetPadRow(Int_t hwaddr) const
Char_t Board2Ring(UShort_t board) const
void Timebin2Strip(UShort_t sec, UShort_t timebin, UShort_t preSamples, UShort_t sampleRate, Short_t &strip, UShort_t &sample) const
Short_t Sector2Board(Char_t ring, UShort_t sec) const