L1GctCand

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#ifndef L1GCTCAND_H
#define L1GCTCAND_H

#include "DataFormats/L1CaloTrigger/interface/L1CaloRegionDetId.h"

/// \class L1GctCand
/// \brief ABC for GCT EM and jet candidates
/// \author Jim Brooke
/// \date July 2006
///

class L1GctCand {
public:
  L1GctCand();

  virtual ~L1GctCand();

  /// access origin of candidate
  virtual L1CaloRegionDetId regionId() const = 0;

  /// empty candidate  - true if object not initialized
  virtual bool empty() const = 0;

  /// \brief get the rank code (6 bits)
  ///
  /// Note that the precise meaning of the bits returned by this method
  /// (ie. the Et scale) may differ depending on the concrete type
  virtual unsigned rank() const = 0;

  /// get eta index (bit 3 is sign, 1 for -ve Z, 0 for +ve Z)
  virtual unsigned etaIndex() const = 0;

  /// get eta sign bit (1 for -ve Z, 0 for +ve Z)
  virtual unsigned etaSign() const = 0;

  /// get phi index (0-17)
  virtual unsigned phiIndex() const = 0;

private:
  /// dummy data member to make derived classes perstistable
  bool dummy_;
};

#endif