Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimCalorimetry
HcalSimAlgos
interface
HBHEHitFilter.h
Go to the documentation of this file.
1
#ifndef HcalSimAlgos_HBHEHitFilter_h
2
#define HcalSimAlgos_HBHEHitFilter_h
3
4
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVHitFilter.h
"
5
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
6
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
7
8
9
10
class
HBHEHitFilter
:
public
CaloVHitFilter
{
11
virtual
bool
accepts
(
const
PCaloHit
&
hit
)
const
{
12
HcalDetId
hcalDetId(hit.
id
());
13
return
(hcalDetId.subdet() ==
HcalBarrel
|| hcalDetId.subdet() ==
HcalEndcap
);
14
}
15
};
16
17
#endif
18
HBHEHitFilter
Definition:
HBHEHitFilter.h:10
PCaloHit
Definition:
PCaloHit.h:8
HBHEHitFilter::accepts
virtual bool accepts(const PCaloHit &hit) const
Definition:
HBHEHitFilter.h:11
HcalSubdetector.h
CaloVHitFilter
Definition:
CaloVHitFilter.h:7
CaloVHitFilter.h
HcalEndcap
Definition:
HcalAssistant.h:31
HcalDetId
Definition:
HcalDetId.h:16
HcalDetId.h
HcalBarrel
Definition:
HcalAssistant.h:31
PCaloHit::id
unsigned int id() const
Definition:
PCaloHit.h:43
hit
Definition:
SiStripHitEffFromCalibTree.cc:79
Generated for CMSSW Reference Manual by
1.8.5