1 #ifndef RecoParticleFlow_PFClusterProducer_PFHBHeRecHitCreator_h
2 #define RecoParticleFlow_PFClusterProducer_PFHBHeRecHitCreator_h
44 for(
const auto& erh : *recHitHandle ) {
48 double energy = erh.energy();
49 double time = erh.time();
74 <<
"warning detid "<<detid.
rawId()
75 <<
" not found in geometry"<<std::endl;
80 position.SetCoordinates (
point.x(),
86 position.x(), position.y(), position.z(),
93 rh.setNECorner( corners[0].
x(), corners[0].
y(), corners[0].
z());
94 rh.setSECorner( corners[1].
x(), corners[1].
y(), corners[1].
z());
95 rh.setSWCorner( corners[2].
x(), corners[2].
y(), corners[2].
z());
96 rh.setNWCorner( corners[3].
x(), corners[3].
y(), corners[3].
z());
99 bool rcleaned =
false;
104 if (!qtest->test(rh,erh,rcleaned)) {
114 cleaned->push_back(rh);
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual const CaloCellGeometry * getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
uint32_t rawId() const
get the raw id
int depth() const
get the tower depth
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
void setTime(double time)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
PFHBHERecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
static int position[264][3]
void importRecHits(std::auto_ptr< reco::PFRecHitCollection > &out, std::auto_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup)
const CornersVec & getCorners() const
Returns the corner points of this cell's volume.
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit > > recHitToken_
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point