TrackingTools
TrackAssociator
plugins
PreshowerDetIdAssociator.h
Go to the documentation of this file.
1
#ifndef TrackAssociator_PreshowerDetIdAssociator_h
2
#define TrackAssociator_PreshowerDetIdAssociator_h 1
3
// -*- C++ -*-
4
//
5
// Package: TrackAssociator
6
// Class: PreshowerDetIdAssociator
7
//
8
/*
9
10
Description: <one line class summary>
11
12
Implementation:
13
<Notes on implementation>
14
*/
15
//
16
// Original Author: Dmytro Kovalskyi
17
//
18
//
19
20
#include "
CaloDetIdAssociator.h
"
21
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
22
23
class
PreshowerDetIdAssociator
:
public
CaloDetIdAssociator
{
24
public
:
25
PreshowerDetIdAssociator
() :
CaloDetIdAssociator
(30, 60, 0.1, nullptr){};
26
27
using
CaloDetIdAssociator::CaloDetIdAssociator
;
28
29
const
char
*
name
()
const override
{
return
"Preshower"
; }
30
31
protected
:
32
void
getValidDetIds
(
unsigned
int
subDetectorIndex, std::vector<DetId>& validIds)
const override
{
33
if
(subDetectorIndex != 0)
34
throw
cms::Exception
(
"FatalError"
) <<
"Preshower has only one sub-detector for geometry. Abort."
;
35
validIds =
geometry_
->
getValidDetIds
(
DetId::Ecal
,
EcalPreshower
);
36
};
37
};
38
#endif
PreshowerDetIdAssociator::getValidDetIds
void getValidDetIds(unsigned int subDetectorIndex, std::vector< DetId > &validIds) const override
Definition:
PreshowerDetIdAssociator.h:32
PreshowerDetIdAssociator
Definition:
PreshowerDetIdAssociator.h:23
CaloDetIdAssociator
Definition:
CaloDetIdAssociator.h:27
EcalSubdetector.h
PreshowerDetIdAssociator::name
const char * name() const override
Definition:
PreshowerDetIdAssociator.h:29
PreshowerDetIdAssociator::PreshowerDetIdAssociator
PreshowerDetIdAssociator()
Definition:
PreshowerDetIdAssociator.h:25
CaloDetIdAssociator::CaloDetIdAssociator
CaloDetIdAssociator()
Definition:
CaloDetIdAssociator.h:29
DetId::Ecal
Definition:
DetId.h:27
CaloDetIdAssociator::geometry_
const CaloGeometry * geometry_
Definition:
CaloDetIdAssociator.h:56
EcalPreshower
Definition:
EcalSubdetector.h:10
CaloGeometry::getValidDetIds
std::vector< DetId > getValidDetIds() const
Get the list of all valid detector ids.
Definition:
CaloGeometry.cc:75
Exception
Definition:
hltDiff.cc:245
CaloDetIdAssociator.h
Generated for CMSSW Reference Manual by
1.8.16