TrackingTools
TrackAssociator
plugins
HODetIdAssociator.h
Go to the documentation of this file.
1
#ifndef TrackAssociator_HODetIdAssociator_h
2
#define TrackAssociator_HODetIdAssociator_h 1
3
// -*- C++ -*-
4
//
5
// Package: TrackAssociator
6
// Class: HODetIdAssociator
7
//
8
/*
9
10
Description: <one line class summary>
11
12
Implementation:
13
<Notes on implementation>
14
*/
15
//
16
// Original Author: Dmytro Kovalskyi
17
// Created: Fri Apr 21 10:59:41 PDT 2006
18
//
19
//
20
21
#include "
CaloDetIdAssociator.h
"
22
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
23
class
HODetIdAssociator
:
public
CaloDetIdAssociator
{
24
public
:
25
HODetIdAssociator
() :
CaloDetIdAssociator
(72, 30, 0.087, nullptr){};
26
27
using
CaloDetIdAssociator::CaloDetIdAssociator
;
28
29
const
char
*
name
()
const override
{
return
"HO"
; }
30
31
protected
:
32
void
getValidDetIds
(
unsigned
int
subDectorIndex, std::vector<DetId>& validIds)
const override
{
33
if
(subDectorIndex != 0)
34
cms::Exception
(
"FatalError"
)
35
<<
"HO sub-dectors are all handle as one sub-system, but subDetectorIndex is not zero.\n"
;
36
validIds =
geometry_
->
getValidDetIds
(
DetId::Hcal
,
HcalOuter
);
37
}
38
};
39
#endif
HODetIdAssociator
Definition:
HODetIdAssociator.h:23
DetId::Hcal
Definition:
DetId.h:28
CaloDetIdAssociator
Definition:
CaloDetIdAssociator.h:27
HcalOuter
Definition:
HcalAssistant.h:35
HODetIdAssociator::name
const char * name() const override
Definition:
HODetIdAssociator.h:29
CaloDetIdAssociator::CaloDetIdAssociator
CaloDetIdAssociator()
Definition:
CaloDetIdAssociator.h:29
HcalSubdetector.h
CaloDetIdAssociator::geometry_
const CaloGeometry * geometry_
Definition:
CaloDetIdAssociator.h:56
CaloGeometry::getValidDetIds
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition:
CaloGeometry.cc:75
Exception
Definition:
hltDiff.cc:245
HODetIdAssociator::HODetIdAssociator
HODetIdAssociator()
Definition:
HODetIdAssociator.h:25
CaloDetIdAssociator.h
HODetIdAssociator::getValidDetIds
void getValidDetIds(unsigned int subDectorIndex, std::vector< DetId > &validIds) const override
Definition:
HODetIdAssociator.h:32
Generated for CMSSW Reference Manual by
1.8.16