Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:07

0001 //-------------------------------------------------
0002 //
0003 /**  \class DTTrigData
0004  *     Defines the ability to calculate coordinates of Level1 MuDT Trigger
0005  * objects
0006  *
0007  *   \author C.Grandi
0008  */
0009 //
0010 //--------------------------------------------------
0011 #ifndef DT_TRIG_DATA_H_
0012 #define DT_TRIG_DATA_H_
0013 
0014 //------------------------------------
0015 // Collaborating Class Declarations --
0016 //------------------------------------
0017 
0018 //----------------------
0019 // Base Class Headers --
0020 //----------------------
0021 //#include "Profound/MuNumbering/interface/MuBarIdInclude.h"
0022 // Should become
0023 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0024 #include "DataFormats/MuonDetId/interface/DTLayerId.h"
0025 #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
0026 #include "DataFormats/MuonDetId/interface/DTWireId.h"
0027 //---------------
0028 // C++ Headers --
0029 //---------------
0030 
0031 //              ---------------------
0032 //              -- Class Interface --
0033 //              ---------------------
0034 
0035 class DTTrigData {
0036 public:
0037   ///  Constructor
0038   DTTrigData() {}
0039 
0040   /// Destructor
0041   virtual ~DTTrigData() {}
0042 
0043   /// Identifier of the associated chamber
0044   virtual DTChamberId ChamberId() const = 0;
0045 
0046   /// Return wheel number
0047   inline int wheel() const { return ChamberId().wheel(); }
0048 
0049   /// Return station number
0050   inline int station() const { return ChamberId().station(); }
0051 
0052   /// Return sector number
0053   inline int sector() const { return ChamberId().sector(); }
0054 
0055   /// Print a trigger-data object with also local and global position/direction
0056   virtual void print() const = 0;
0057 };
0058 #endif