+//_______________________________________________________________
+
+Int_t
+AliTOFFEEReader::GetMatchingWindow(Int_t iDDL, Int_t iTRM, Int_t iChain, Int_t iTDC, Int_t iChannel) const
+{
+ /*
+ *
+ * get matching window
+ *
+ * checks whether a FEE channel is enabled using the
+ * TOF FEE config object and return the associated
+ * matching window
+ *
+ */
+
+ AliTOFFEEConfig *feeConfig;
+ AliTOFCrateConfig *crateConfig;
+ AliTOFTRMConfig *trmConfig;
+
+ iChain = 0; iTDC = 0; iChannel = 0; /* dummy for the time being */
+
+ /* get and check fee config */
+ if (!(feeConfig = GetFEEConfig()))
+ return 0;
+
+ /* get and check crate config */
+ if (!(crateConfig = feeConfig->GetCrateConfig(iDDL)))
+ return 0;
+
+ /* get and check TRM config */
+ if (!(trmConfig = crateConfig->GetTRMConfig(iTRM - 3)))
+ return 0;
+
+ /* check DRM enabled */
+ if (!crateConfig->IsDRMEnabled())
+ return 0;
+
+ /* check TRM enabled */
+ if (!crateConfig->IsTRMEnabled(iTRM - 3))
+ return 0;
+
+ return trmConfig->GetMatchingWindow();
+}
+