Skip to content
Snippets Groups Projects
Commit 3cc45316 authored by Alexandru Bercuci's avatar Alexandru Bercuci
Browse files

clang format and documentation

parent e20fc09e
No related branches found
No related tags found
1 merge request!1228Rebasing MR1179
...@@ -39,10 +39,10 @@ const CbmTrdParFaspChannel* CbmTrdParFasp::GetChannel(Int_t ch_address) const ...@@ -39,10 +39,10 @@ const CbmTrdParFaspChannel* CbmTrdParFasp::GetChannel(Int_t ch_address) const
} }
//___________________________________________________________________ //___________________________________________________________________
bool CbmTrdParFasp::IsChannelMasked(int ch_address) const bool CbmTrdParFasp::IsChannelMasked(int chId) const
{ {
if (ch_address < 0 || ch_address >= NFASPCH) return false; if (chId < 0 || chId >= NFASPCH) return false;
return fCalib[ch_address].IsMasked(); return fCalib[chId].IsMasked();
} }
//___________________________________________________________________ //___________________________________________________________________
......
...@@ -84,12 +84,22 @@ class CbmTrdParFasp : public CbmTrdParAsic { ...@@ -84,12 +84,22 @@ class CbmTrdParFasp : public CbmTrdParAsic {
public: public:
CbmTrdParFasp(Int_t address = 0, Int_t FebGrouping = -1, Double_t x = 0, Double_t y = 0, Double_t z = 0); CbmTrdParFasp(Int_t address = 0, Int_t FebGrouping = -1, Double_t x = 0, Double_t y = 0, Double_t z = 0);
virtual ~CbmTrdParFasp() { ; } virtual ~CbmTrdParFasp() { ; }
/** \brief Query the calibration for one FASP RO channel
* \param pad_address the index of the pad on the module [row*ncol+col]
* \param pair 0 for tilt and 1 for rect
*/
const CbmTrdParFaspChannel* GetChannel(Int_t pad_address, UChar_t pair) const; const CbmTrdParFaspChannel* GetChannel(Int_t pad_address, UChar_t pair) const;
const CbmTrdParFaspChannel* GetChannel(Int_t ch_address) const; /** \brief Query the calibration for one FASP RO channel
* \param chId the index of the channel in the current FASP [0 - 15]
*/
const CbmTrdParFaspChannel* GetChannel(Int_t chId) const;
virtual Int_t GetNchannels() const { return NFASPCH; }; virtual Int_t GetNchannels() const { return NFASPCH; };
virtual Int_t GetChannelAddress(Int_t ich) const /** \brief Return the global RO channel for curent FASP and channel index
* \param chId the index of the channel in the current FASP [0 - 15]
*/
virtual Int_t GetChannelAddress(Int_t chId) const
{ {
return ((ich < 0 || ich >= GetNchannels()) ? 0 : fChannelAddresses[ich]); return ((chId < 0 || chId >= GetNchannels()) ? 0 : fChannelAddresses[chId]);
} }
virtual uint32_t GetChannelMask() const; virtual uint32_t GetChannelMask() const;
virtual bool IsChannelMasked(int ch) const; virtual bool IsChannelMasked(int ch) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment