Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:20

0001 // Authors: Felice Pantaleo, Marco Rovere
0002 // Emails: felice.pantaleo@cern.ch, marco.rovere@cern.ch
0003 // Date: 06/2019
0004 
0005 #ifndef DataFormats_HGCalReco_TICLSeedingRegion_h
0006 #define DataFormats_HGCalReco_TICLSeedingRegion_h
0007 
0008 #include "DataFormats/HGCalReco/interface/Common.h"
0009 #include "DataFormats/Math/interface/normalizedPhi.h"
0010 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0011 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
0012 #include "DataFormats/Provenance/interface/ProductID.h"
0013 
0014 struct TICLSeedingRegion {
0015   GlobalPoint origin;
0016   GlobalVector directionAtOrigin;
0017 
0018   // zSide can be either 0(neg) or 1(pos)
0019   int zSide;
0020   // the index in the seeding collection
0021   // with index = -1 indicating a global seeding region.
0022   // For track-based seeding, the index of the track inside the track
0023   // collection identified by the next ProductID.
0024   int index;
0025   // collectionID = 0 used for global seeding collection
0026   // For track-based seeding, the ProductID of the track-collection used to
0027   // create the seeding region.
0028   edm::ProductID collectionID;
0029 
0030   TICLSeedingRegion() {}
0031 
0032   TICLSeedingRegion(GlobalPoint o, GlobalVector d, int zS, int idx, edm::ProductID id) {
0033     origin = o;
0034     directionAtOrigin = d;
0035     zSide = zS;
0036     index = idx;
0037     collectionID = id;
0038   }
0039 };
0040 
0041 #endif