CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Enumerations | Functions
hgcal Namespace Reference

Namespaces

 backend
 
 econd
 

Classes

struct  caloParticleOnALayer
 
struct  caloParticleOnLayer
 
class  ClusterTools
 
struct  detIdInfoInCluster
 
struct  detIdInfoInMultiCluster
 
struct  detIdInfoInTrackster
 
class  EGammaPCAHelper
 
class  HGCalFrameGenerator
 A S-link/ECON-D payload generator helper. More...
 
class  LayerClusterToCaloParticleAssociator
 
class  LayerClusterToCaloParticleAssociatorBaseImpl
 
class  LayerClusterToSimClusterAssociator
 
class  LayerClusterToSimClusterAssociatorBaseImpl
 
class  LayerClusterToSimTracksterAssociator
 
class  LayerClusterToSimTracksterAssociatorBaseImpl
 
struct  lcInfoInTrackster
 
class  LongDeps
 
class  MultiClusterToCaloParticleAssociator
 
class  MultiClusterToCaloParticleAssociatorBaseImpl
 
class  RecHitTools
 
class  ShowerDepth
 
struct  simClusterOnBLayer
 
struct  simClusterOnCLayer
 
struct  simTracksterOnLayer
 
class  Spot
 
class  TracksterToSimClusterAssociator
 
class  TracksterToSimClusterAssociatorBaseImpl
 
class  TracksterToSimTracksterAssociator
 
class  TracksterToSimTracksterAssociatorBaseImpl
 
class  TracksterToSimTracksterHitLCAssociator
 
class  TracksterToSimTracksterHitLCAssociatorBaseImpl
 

Typedefs

typedef std::tuple< layerClusterToCaloParticle, caloParticleToLayerClusterassociation
 
typedef std::tuple< sharedEnergyAndScore_t, sharedEnergyAndScore_tassociation_t
 
typedef std::vector< std::vector< hgcal::caloParticleOnLayer > > caloParticleToLayerCluster
 
typedef std::vector< std::vector< hgcal::caloParticleOnALayer > > caloParticleToMultiCluster
 
typedef std::vector< std::vector< std::pair< unsigned int, float > > > layerClusterToCaloParticle
 
typedef std::vector< std::vector< std::pair< unsigned int, float > > > layerClusterToSimCluster
 
typedef std::vector< std::vector< std::pair< unsigned int, float > > > multiClusterToCaloParticle
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< reco::CaloClusterCollection, CaloParticleCollection, float > > RecoToSimCollection
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< ticl::TracksterCollection, ticl::TracksterCollection, std::pair< float, float > > > RecoToSimCollectionSimTracksters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< ticl::TracksterCollection, SimClusterCollection, float > > RecoToSimCollectionTracksters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< reco::HGCalMultiClusterCollection, CaloParticleCollection, float > > RecoToSimCollectionWithMultiClusters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< reco::CaloClusterCollection, SimClusterCollection, float > > RecoToSimCollectionWithSimClusters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< reco::CaloClusterCollection, ticl::TracksterCollection, float > > RecoToSimTracksterCollection
 
typedef std::vector< std::vector< std::pair< float, float > > > sharedEnergyAndScore_t
 
typedef std::vector< std::vector< hgcal::simClusterOnCLayer > > simClusterToLayerCluster
 
typedef std::vector< hgcal::simClusterOnBLayersimClusterToTrackster
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< CaloParticleCollection, reco::CaloClusterCollection, std::pair< float, float > > > SimToRecoCollection
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< ticl::TracksterCollection, ticl::TracksterCollection, std::pair< float, float > > > SimToRecoCollectionSimTracksters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< SimClusterCollection, ticl::TracksterCollection, std::pair< float, float > > > SimToRecoCollectionTracksters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< CaloParticleCollection, reco::HGCalMultiClusterCollection, std::pair< float, float > > > SimToRecoCollectionWithMultiClusters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< SimClusterCollection, reco::CaloClusterCollection, std::pair< float, float > > > SimToRecoCollectionWithSimClusters
 
typedef edm::AssociationMap< edm::OneToManyWithQualityGeneric< ticl::TracksterCollection, reco::CaloClusterCollection, std::pair< float, float > > > SimTracksterToRecoCollection
 
typedef std::vector< hgcal::simTracksterOnLayersimTracksterToTrackster
 
typedef std::vector< std::vector< std::pair< unsigned int, float > > > tracksterToSimCluster
 
typedef std::vector< std::vector< std::pair< unsigned int, std::pair< float, float > > > > tracksterToSimTrackster
 

Enumerations

enum  BACKEND_FRAME {
  CAPTUREBLOCK_RESERVED_MASK = 0x7f, CAPTUREBLOCK_RESERVED_POS = 25, CAPTUREBLOCK_BC_MASK = 0xfff, CAPTUREBLOCK_BC_POS = 13,
  CAPTUREBLOCK_EC_MASK = 0x7f, CAPTUREBLOCK_EC_POS = 7, CAPTUREBLOCK_OC_MASK = 0x7, CAPTUREBLOCK_OC_POS = 4,
  SLINK_BOE_MASK = 0xff, SLINK_BOE_POS = 23, SLINK_V_MASK = 0xf, SLINK_V_POS = 19,
  SLINK_R8_MASK = 0xff, SLINK_R8_POS = 11, SLINK_GLOBAL_EVENTID_MSB_MASK = 0xfff, SLINK_GLOBAL_EVENTID_MSB_POS = 0,
  SLINK_GLOBAL_EVENTID_LSB_MASK = 0xffffffff, SLINK_GLOBAL_EVENTID_LSB_POS = 0, SLINK_R6_MASK = 0x3f, SLINK_R6_POS = 25,
  SLINK_CONTENTID_MASK = 0x3FFFFFF, SLINK_CONTENTID_POS = 0, SLINK_SOURCEID_MASK = 0xffffffff, SLINK_SOURCEID_POS = 0,
  SLINK_EOE_MASK = 0xff, SLINK_EOE_POS = 23, SLINK_DAQCRC_MASK = 0xffff, SLINK_DAQCRC_POS = 7,
  SLINK_TRAILERR_MASK = 0xff, SLINK_TRAILERR_POS = 0, SLINK_EVLENGTH_MASK = 0xfffff, SLINK_EVLENGTH_POS = 11,
  SLINK_BXID_MASK = 0xfff, SLINK_BXID_POS = 0, SLINK_ORBID_MASK = 0xffffffff, SLINK_ORBID_POS = 0,
  SLINK_CRC_MASK = 0xffff, SLINK_CRC_POS = 15, SLINK_STATUS_MASK = 0xffff, SLINK_STATUS_POS = 0
}
 
enum  ECOND_FRAME {
  HEADER_POS = 23, HEADER_MASK = 0x1ff, PAYLOAD_POS = 14, PAYLOAD_MASK = 0x1ff,
  BITP_POS = 13, BITE_POS = 12, HT_MASK = 0x3, HT_POS = 10,
  EBO_MASK = 0x3, EBO_POS = 8, BITM_POS = 7, BITT_POS = 6,
  EHHAM_MASK = 0x3f, EHHAM_POS = 0, BX_POS = 20, BX_MASK = 0xfff,
  L1A_POS = 14, L1A_MASK = 0x3f, ORBIT_POS = 11, ORBIT_MASK = 0x7,
  BITS_POS = 10, RR_MASK = 0x3, RR_POS = 8, EHCRC_MASK = 0xff,
  EHCRC_POS = 0, ERXSTAT_POS = 29, ERXSTAT_MASK = 0x7, ERXHAM_POS = 26,
  ERXHAM_MASK = 0x7, ERXFORMAT_POS = 25, ERXFORMAT_MASK = 0x1, COMMONMODE0_POS = 15,
  COMMONMODE0_MASK = 0x3ff, COMMONMODE1_POS = 5, COMMONMODE1_MASK = 0x3ff, CHMAP32_POS = 0,
  CHMAP32_MASK = 0x1f, CHMAP0_POS = 0, CHMAP0_MASK = 0xffffffff, ERX_E_POS = 4,
  ERX_E_MASK = 1
}
 
enum  validationType { Linking = 0, PatternRecognition, PatternRecognition_CP }
 

Functions

template<typename T >
void printWords (edm::MessageSender &os, const std::string &name, const std::vector< T > vec)
 
static std::vector< uint64_t > to128bit (const std::vector< uint64_t > &in)
 
static std::vector< uint64_t > to64bit (const std::vector< uint32_t > &in)
 

Typedef Documentation

◆ association

Definition at line 62 of file LCToCPAssociatorByEnergyScoreImpl.h.

◆ association_t

◆ caloParticleToLayerCluster

Definition at line 58 of file LCToCPAssociatorByEnergyScoreImpl.h.

◆ caloParticleToMultiCluster

Definition at line 43 of file MultiClusterAssociatorByEnergyScoreImpl.h.

◆ layerClusterToCaloParticle

typedef std::vector<std::vector<std::pair<unsigned int, float> > > hgcal::layerClusterToCaloParticle

Definition at line 55 of file LCToCPAssociatorByEnergyScoreImpl.h.

◆ layerClusterToSimCluster

typedef std::vector<std::vector<std::pair<unsigned int, float> > > hgcal::layerClusterToSimCluster

Definition at line 52 of file LCToSCAssociatorByEnergyScoreImpl.h.

◆ multiClusterToCaloParticle

typedef std::vector<std::vector<std::pair<unsigned int, float> > > hgcal::multiClusterToCaloParticle

Definition at line 42 of file MultiClusterAssociatorByEnergyScoreImpl.h.

◆ RecoToSimCollection

◆ RecoToSimCollectionSimTracksters

Definition at line 27 of file TracksterToSimTracksterAssociatorBaseImpl.h.

◆ RecoToSimCollectionTracksters

Definition at line 26 of file TracksterToSimClusterAssociatorBaseImpl.h.

◆ RecoToSimCollectionWithMultiClusters

◆ RecoToSimCollectionWithSimClusters

Definition at line 25 of file LayerClusterToSimClusterAssociatorBaseImpl.h.

◆ RecoToSimTracksterCollection

◆ sharedEnergyAndScore_t

typedef std::vector<std::vector<std::pair<float, float> > > hgcal::sharedEnergyAndScore_t

◆ simClusterToLayerCluster

typedef std::vector<std::vector<hgcal::simClusterOnCLayer> > hgcal::simClusterToLayerCluster

Definition at line 55 of file LCToSCAssociatorByEnergyScoreImpl.h.

◆ simClusterToTrackster

Definition at line 36 of file TSToSCAssociatorByEnergyScoreImpl.h.

◆ SimToRecoCollection

◆ SimToRecoCollectionSimTracksters

Definition at line 24 of file TracksterToSimTracksterAssociatorBaseImpl.h.

◆ SimToRecoCollectionTracksters

Definition at line 24 of file TracksterToSimClusterAssociatorBaseImpl.h.

◆ SimToRecoCollectionWithMultiClusters

◆ SimToRecoCollectionWithSimClusters

Definition at line 23 of file LayerClusterToSimClusterAssociatorBaseImpl.h.

◆ SimTracksterToRecoCollection

◆ simTracksterToTrackster

Definition at line 62 of file TSToSimTSAssociatorByEnergyScoreImpl.h.

◆ tracksterToSimCluster

typedef std::vector<std::vector<std::pair<unsigned int, float> > > hgcal::tracksterToSimCluster

Definition at line 35 of file TSToSCAssociatorByEnergyScoreImpl.h.

◆ tracksterToSimTrackster

typedef std::vector<std::vector<std::pair<unsigned int, std::pair<float, float> > > > hgcal::tracksterToSimTrackster

Definition at line 59 of file TSToSimTSAssociatorByEnergyScoreImpl.h.

Enumeration Type Documentation

◆ BACKEND_FRAME

Enumerator
CAPTUREBLOCK_RESERVED_MASK 
CAPTUREBLOCK_RESERVED_POS 
CAPTUREBLOCK_BC_MASK 
CAPTUREBLOCK_BC_POS 
CAPTUREBLOCK_EC_MASK 
CAPTUREBLOCK_EC_POS 
CAPTUREBLOCK_OC_MASK 
CAPTUREBLOCK_OC_POS 
SLINK_BOE_MASK 
SLINK_BOE_POS 
SLINK_V_MASK 
SLINK_V_POS 
SLINK_R8_MASK 
SLINK_R8_POS 
SLINK_GLOBAL_EVENTID_MSB_MASK 
SLINK_GLOBAL_EVENTID_MSB_POS 
SLINK_GLOBAL_EVENTID_LSB_MASK 
SLINK_GLOBAL_EVENTID_LSB_POS 
SLINK_R6_MASK 
SLINK_R6_POS 
SLINK_CONTENTID_MASK 
SLINK_CONTENTID_POS 
SLINK_SOURCEID_MASK 
SLINK_SOURCEID_POS 
SLINK_EOE_MASK 
SLINK_EOE_POS 
SLINK_DAQCRC_MASK 
SLINK_DAQCRC_POS 
SLINK_TRAILERR_MASK 
SLINK_TRAILERR_POS 
SLINK_EVLENGTH_MASK 
SLINK_EVLENGTH_POS 
SLINK_BXID_MASK 
SLINK_BXID_POS 
SLINK_ORBID_MASK 
SLINK_ORBID_POS 
SLINK_CRC_MASK 
SLINK_CRC_POS 
SLINK_STATUS_MASK 
SLINK_STATUS_POS 

Definition at line 52 of file HGCalRawDataDefinitions.h.

52  {
55  CAPTUREBLOCK_BC_MASK = 0xfff,
57  CAPTUREBLOCK_EC_MASK = 0x7f,
61  SLINK_BOE_MASK = 0xff,
62  SLINK_BOE_POS = 23,
63  SLINK_V_MASK = 0xf,
64  SLINK_V_POS = 19,
65  SLINK_R8_MASK = 0xff,
66  SLINK_R8_POS = 11,
69  SLINK_GLOBAL_EVENTID_LSB_MASK = 0xffffffff,
71  SLINK_R6_MASK = 0x3f,
72  SLINK_R6_POS = 25,
73  SLINK_CONTENTID_MASK = 0x3FFFFFF,
75  SLINK_SOURCEID_MASK = 0xffffffff,
77  SLINK_EOE_MASK = 0xff,
78  SLINK_EOE_POS = 23,
79  SLINK_DAQCRC_MASK = 0xffff,
80  SLINK_DAQCRC_POS = 7,
81  SLINK_TRAILERR_MASK = 0xff,
83  SLINK_EVLENGTH_MASK = 0xfffff,
84  SLINK_EVLENGTH_POS = 11,
85  SLINK_BXID_MASK = 0xfff,
86  SLINK_BXID_POS = 0,
87  SLINK_ORBID_MASK = 0xffffffff,
88  SLINK_ORBID_POS = 0,
89  SLINK_CRC_MASK = 0xffff,
90  SLINK_CRC_POS = 15,
91  SLINK_STATUS_MASK = 0xffff,
92  SLINK_STATUS_POS = 0,
93  };

◆ ECOND_FRAME

Enumerator
HEADER_POS 
HEADER_MASK 
PAYLOAD_POS 
PAYLOAD_MASK 
BITP_POS 
BITE_POS 
HT_MASK 
HT_POS 
EBO_MASK 
EBO_POS 
BITM_POS 
BITT_POS 
EHHAM_MASK 
EHHAM_POS 
BX_POS 
BX_MASK 
L1A_POS 
L1A_MASK 
ORBIT_POS 
ORBIT_MASK 
BITS_POS 
RR_MASK 
RR_POS 
EHCRC_MASK 
EHCRC_POS 
ERXSTAT_POS 
ERXSTAT_MASK 
ERXHAM_POS 
ERXHAM_MASK 
ERXFORMAT_POS 
ERXFORMAT_MASK 
COMMONMODE0_POS 
COMMONMODE0_MASK 
COMMONMODE1_POS 
COMMONMODE1_MASK 
CHMAP32_POS 
CHMAP32_MASK 
CHMAP0_POS 
CHMAP0_MASK 
ERX_E_POS 
ERX_E_MASK 

Definition at line 8 of file HGCalRawDataDefinitions.h.

8  {
9  HEADER_POS = 23,
10  HEADER_MASK = 0x1ff,
11  PAYLOAD_POS = 14,
12  PAYLOAD_MASK = 0x1ff,
13  BITP_POS = 13,
14  BITE_POS = 12,
15  HT_MASK = 0x3,
16  HT_POS = 10,
17  EBO_MASK = 0x3,
18  EBO_POS = 8,
19  BITM_POS = 7,
20  BITT_POS = 6,
21  EHHAM_MASK = 0x3f,
22  EHHAM_POS = 0,
23  BX_POS = 20,
24  BX_MASK = 0xfff,
25  L1A_POS = 14,
26  L1A_MASK = 0x3f,
27  ORBIT_POS = 11,
28  ORBIT_MASK = 0x7,
29  BITS_POS = 10,
30  RR_MASK = 0x3,
31  RR_POS = 8,
32  EHCRC_MASK = 0xff,
33  EHCRC_POS = 0,
34  ERXSTAT_POS = 29,
35  ERXSTAT_MASK = 0x7,
36  ERXHAM_POS = 26,
37  ERXHAM_MASK = 0x7,
38  ERXFORMAT_POS = 25,
39  ERXFORMAT_MASK = 0x1,
40  COMMONMODE0_POS = 15,
41  COMMONMODE0_MASK = 0x3ff,
42  COMMONMODE1_POS = 5,
43  COMMONMODE1_MASK = 0x3ff,
44  CHMAP32_POS = 0,
45  CHMAP32_MASK = 0x1f,
46  CHMAP0_POS = 0,
47  CHMAP0_MASK = 0xffffffff,
48  ERX_E_POS = 4,
49  ERX_E_MASK = 1
50  };

◆ validationType

Function Documentation

◆ printWords()

template<typename T >
void hgcal::printWords ( edm::MessageSender os,
const std::string &  name,
const std::vector< T vec 
)

Definition at line 26 of file HGCalFrameGenerator.cc.

References TauDecayModes::dec, mps_fire::i, and Skims_PA_cff::name.

Referenced by hgcal::HGCalFrameGenerator::generateERxData(), hgcal::HGCalFrameGenerator::produceCaptureBlockEvent(), hgcal::HGCalFrameGenerator::produceECONEvent(), and hgcal::HGCalFrameGenerator::produceSlinkEvent().

26  {
27  os << "Dump of the '" << name << "' words:\n";
28  for (size_t i = 0; i < vec.size(); ++i)
29  os << std::dec << std::setfill(' ') << std::setw(4) << i << ": 0x" << std::hex << std::setfill('0')
30  << std::setw(sizeof(T) * 2) << vec.at(i) << "\n";
31  }
long double T

◆ to128bit()

static std::vector<uint64_t> hgcal::to128bit ( const std::vector< uint64_t > &  in)
static

Definition at line 42 of file HGCalFrameGenerator.cc.

References mps_fire::i, recoMuon::in, and MillePedeFileConverter_cfg::out.

Referenced by hgcal::HGCalFrameGenerator::produceCaptureBlockEvent(), and hgcal::HGCalFrameGenerator::produceSlinkEvent().

42  {
43  std::vector<uint64_t> out;
44  for (size_t i = 0; i < in.size(); i += 2) {
45  out.emplace_back(in.at(i));
46  out.emplace_back((i + 1 < in.size()) ? in.at(i + 1) : 0u);
47  }
48  return out;
49  }

◆ to64bit()

static std::vector<uint64_t> hgcal::to64bit ( const std::vector< uint32_t > &  in)
static

Definition at line 33 of file HGCalFrameGenerator.cc.

References mps_fire::i, recoMuon::in, and MillePedeFileConverter_cfg::out.

Referenced by hgcal::HGCalFrameGenerator::produceCaptureBlockEvent(), hgcal::HGCalFrameGenerator::produceECONEvent(), and hgcal::HGCalFrameGenerator::produceSlinkEvent().

33  {
34  std::vector<uint64_t> out;
35  for (size_t i = 0; i < in.size(); i += 2) {
36  uint64_t word1 = (i < in.size()) ? in.at(i) : 0ul, word2 = (i + 1 < in.size()) ? in.at(i + 1) : 0ul;
37  out.emplace_back(((word2 & 0xffffffff) << 32) | (word1 & 0xffffffff));
38  }
39  return out;
40  }
unsigned long long uint64_t
Definition: Time.h:13