Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimCalorimetry
CastorSim
src
CastorHitFilter.h
Go to the documentation of this file.
1
#ifndef CastorSim_CastorHitFilter_h
2
#define CastorSim_CastorHitFilter_h
3
4
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVHitFilter.h
"
5
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
6
#include "
DataFormats/HcalDetId/interface/HcalCastorDetId.h
"
7
8
class
CastorHitFilter
:
public
CaloVHitFilter
{
9
virtual
bool
accepts
(
const
PCaloHit
&
hit
)
const
{
10
DetId
detId(hit.
id
());
11
return
(detId.det()==
DetId::Calo
&& detId.subdetId()==
HcalCastorDetId::SubdetectorId
);
12
}
13
};
14
15
#endif
16
DetId::Calo
Definition:
DetId.h:26
PCaloHit
Definition:
PCaloHit.h:8
HcalSubdetector.h
CastorHitFilter
Definition:
CastorHitFilter.h:8
CaloVHitFilter
Definition:
CaloVHitFilter.h:7
CaloVHitFilter.h
PCaloHit::id
unsigned int id() const
Definition:
PCaloHit.h:40
HcalCastorDetId::SubdetectorId
static const int SubdetectorId
Definition:
HcalCastorDetId.h:30
DetId
Definition:
DetId.h:20
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
HcalCastorDetId.h
CastorHitFilter::accepts
virtual bool accepts(const PCaloHit &hit) const
Definition:
CastorHitFilter.h:9
Generated for CMSSW Reference Manual by
1.8.5