TICLSeedingRegion

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
// Authors: Felice Pantaleo, Marco Rovere
// Emails: felice.pantaleo@cern.ch, marco.rovere@cern.ch
// Date: 06/2019

#ifndef DataFormats_HGCalReco_TICLSeedingRegion_h
#define DataFormats_HGCalReco_TICLSeedingRegion_h

#include "DataFormats/HGCalReco/interface/Common.h"
#include "DataFormats/Math/interface/normalizedPhi.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/Provenance/interface/ProductID.h"

struct TICLSeedingRegion {
  GlobalPoint origin;
  GlobalVector directionAtOrigin;

  // zSide can be either 0(neg) or 1(pos)
  int zSide;
  // the index in the seeding collection
  // with index = -1 indicating a global seeding region.
  // For track-based seeding, the index of the track inside the track
  // collection identified by the next ProductID.
  int index;
  // collectionID = 0 used for global seeding collection
  // For track-based seeding, the ProductID of the track-collection used to
  // create the seeding region.
  edm::ProductID collectionID;

  TICLSeedingRegion() {}

  TICLSeedingRegion(GlobalPoint o, GlobalVector d, int zS, int idx, edm::ProductID id) {
    origin = o;
    directionAtOrigin = d;
    zSide = zS;
    index = idx;
    collectionID = id;
  }
};

#endif