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
#ifndef EgammaReco_ElectronFwd_h
#define EgammaReco_ElectronFwd_h
#include <vector>
#include "DataFormats/Common/interface/Ref.h"
#include "DataFormats/Common/interface/RefProd.h"
#include "DataFormats/Common/interface/RefVector.h"

namespace reco {
  class Electron;

  /// collectin of Electron objects
  typedef std::vector<Electron> ElectronCollection;

  /// reference to an object in a collection of Electron objects
  typedef edm::Ref<ElectronCollection> ElectronRef;

  /// reference to a collection of Electron objects
  typedef edm::RefProd<ElectronCollection> ElectronRefProd;

  /// vector of objects in the same collection of Electron objects
  typedef edm::RefVector<ElectronCollection> ElectronRefVector;

  /// iterator over a vector of reference to Electron objects
  typedef ElectronRefVector::iterator electron_iterator;
}  // namespace reco

#endif