12 #include <boost/regex.hpp>
71 nRun(0), nAll(0), nGood(0) {
89 edm::LogInfo(
"HcalIsoTrack") <<
"Parameters read from config file \n"
90 <<
"\t minP of muon " << pMuonMin_
91 <<
"\t input labels " <<
labelBS_ <<
" "
92 << labelVtx_ <<
" " << labelEB_ <<
" " << labelEE_
97 produces<reco::VertexCollection>(labelVtx_.
label());
98 produces<EcalRecHitCollection>(labelEB_.
instance());
99 produces<EcalRecHitCollection>(labelEE_.
instance());
100 produces<HBHERecHitCollection>(labelHBHE_.
label());
101 produces<reco::MuonCollection>(labelMuon_.label());
110 edm::LogInfo(
"HcalHBHEMuon") <<
"AlCaHBHEMuonProducer::Run "
111 << iEvent.
id().
run() <<
" Event "
112 << iEvent.
id().
event() <<
" Luminosity "
137 if (!barrelRecHitsHandle.
isValid()) {
145 if (!endcapRecHitsHandle.
isValid()) {
168 edm::LogInfo(
"HcalHBHEMuon") <<
"AlCaHBHEMuonProducer::Has obtained all the collections";
184 for (reco::VertexCollection::const_iterator vtr=vtx.begin(); vtr!=vtx.end(); ++vtr)
185 outputVColl->push_back(*vtr);
188 outputEBColl->push_back(*ehit);
191 outputEEColl->push_back(*ehit);
193 for (std::vector<HBHERecHit>::const_iterator hhit=hbhecoll.
begin(); hhit!=hbhecoll.
end(); ++hhit)
194 outputHBHEColl->push_back(*hhit);
196 for (reco::MuonCollection::const_iterator
muon=muons.begin();
muon!=muons.end(); ++
muon)
197 outputMColl->push_back(*
muon);
212 <<
nAll <<
" events from " <<
nRun <<
" runs";
227 for (
unsigned int k=0;
k<muons.size(); ++
k) {
T getParameter(std::string const &) const
EventNumber_t event() const
bool select(const reco::MuonCollection &)
AlCaHBHEMuonProducer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::vector< Muon > MuonCollection
collection of Muon objects
double dydz() const
dydz slope
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< HBHERecHitCollection > tok_HBHE_
double BeamWidthX() const
beam width X
double dxdz() const
dxdz slope
const_iterator end() const
T const * product() const
double sigmaZ() const
sigma z
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
edm::EDGetTokenT< reco::BeamSpot > tok_BS_
double covariance(int i, int j) const
(i,j)-th element of error matrix
edm::EDGetTokenT< reco::VertexCollection > tok_Vtx_
const Point & position() const
position
edm::EDGetTokenT< reco::MuonCollection > tok_Muon_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
const_iterator begin() const
BeamType type() const
return beam type
virtual void endRun(edm::Run const &, edm::EventSetup const &)