Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:50

0001 //-------------------------------------------------
0002 //
0003 /**  \class DTChambThSegm
0004  *
0005  *   Muon Chamber Trigger Theta candidate 
0006  *
0007  *
0008  * 
0009  *   \author C. Grandi
0010  */
0011 //--------------------------------------------------
0012 #ifndef DT_CHAMB_TH_SEGM_H
0013 #define DT_CHAMB_TH_SEGM_H
0014 
0015 //------------------------------------
0016 // Collaborating Class Declarations --
0017 //------------------------------------
0018 
0019 //----------------------
0020 // Base Class Headers --
0021 //----------------------
0022 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0023 #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
0024 #include "DataFormats/MuonDetId/interface/DTLayerId.h"
0025 #include "DataFormats/MuonDetId/interface/DTWireId.h"
0026 #include "L1TriggerConfig/DTTPGConfig/interface/BitArray.h"
0027 #include "L1Trigger/DTUtilities/interface/DTTrigData.h"
0028 
0029 //---------------
0030 // C++ Headers --
0031 //---------------
0032 
0033 //              ---------------------
0034 //              -- Class Interface --
0035 //              ---------------------
0036 
0037 typedef unsigned char myint8;
0038 
0039 class DTChambThSegm : public DTTrigData {
0040 public:
0041   /// Constructor
0042   DTChambThSegm(DTChamberId, int, int*, int*);
0043 
0044   /// Constructor
0045   DTChambThSegm(const DTChambThSegm& seg);
0046 
0047   /// Destructor
0048   ~DTChambThSegm() override;
0049 
0050   /// Assignment operator
0051   DTChambThSegm& operator=(const DTChambThSegm& seg);
0052 
0053   /// Clear
0054   void clear();
0055 
0056   /// Return step number
0057   inline int step() const { return m_step; }
0058 
0059   /// Identifier of the associated chamber
0060   DTChamberId ChamberId() const override { return m_chamberid; }
0061 
0062   /// Print
0063   void print() const override;
0064 
0065   /// Return the code for a given set of 7 BTI
0066   int code(const int i) const;
0067 
0068   /// Return the position for a given set of 7 BTI
0069   int position(const int i) const;
0070 
0071   /// Return the quality for a given set of 7 BTI
0072   int quality(const int i) const;
0073 
0074 private:
0075   /// parent chamber
0076   DTChamberId m_chamberid;
0077 
0078   /// step number
0079   int m_step;
0080 
0081   /// output code
0082   myint8 m_outPos[7];
0083   myint8 m_outQual[7];
0084 };
0085 
0086 #endif