23 CSCAlgo.vIT_HLTBit = iConfig.
getParameter< std::vector< edm::InputTag> >(
"HLTBitLabel");
45 CSCAlgo.SetDetaThreshold( (
float) iConfig.
getParameter<
double>(
"DetaParam"));
46 CSCAlgo.SetDphiThreshold( (
float) iConfig.
getParameter<
double>(
"DphiParam"));
47 CSCAlgo.SetMinMaxInnerRadius( (
float) iConfig.
getParameter<
double>(
"InnerRMinParam") , (
float) iConfig.
getParameter<
double>(
"InnerRMaxParam") );
48 CSCAlgo.SetMinMaxOuterRadius( (
float) iConfig.
getParameter<
double>(
"OuterRMinParam"), (
float) iConfig.
getParameter<
double>(
"OuterRMaxParam"));
49 CSCAlgo.SetNormChi2Threshold( (
float) iConfig.
getParameter<
double>(
"NormChi2Param") );
52 CSCAlgo.SetMaxSegmentRDiff( (
float) iConfig.
getParameter<
double>(
"MaxSegmentRDiff") );
53 CSCAlgo.SetMaxSegmentPhiDiff( (
float) iConfig.
getParameter<
double>(
"MaxSegmentPhiDiff") );
54 CSCAlgo.SetMaxSegmentTheta( (
float) iConfig.
getParameter<
double>(
"MaxSegmentTheta") );
57 CSCAlgo.SetMaxDtMuonSegment( (
float) iConfig.
getParameter<
double>(
"MaxDtMuonSegment") );
58 CSCAlgo.SetMaxFreeInverseBeta( (
float) iConfig.
getParameter<
double>(
"MaxFreeInverseBeta") );
59 CSCAlgo.SetExpectedBX( (
short int) iConfig.
getParameter<
int>(
"ExpectedBX") );
60 CSCAlgo.SetRecHitTime0( (
float) iConfig.
getParameter<
double>(
"RecHitTime0") );
61 CSCAlgo.SetRecHitTimeWindow( (
float) iConfig.
getParameter<
double>(
"RecHitTimeWindow") );
62 CSCAlgo.SetMinMaxOuterMomentumTheta( (
float)iConfig.
getParameter<
double>(
"MinOuterMomentumTheta"), (
float)iConfig.
getParameter<
double>(
"MaxOuterMomentumTheta") );
63 CSCAlgo.SetMatchingDPhiThreshold( (
float)iConfig.
getParameter<
double>(
"MatchingDPhiThreshold") );
64 CSCAlgo.SetMatchingDEtaThreshold( (
float)iConfig.
getParameter<
double>(
"MatchingDEtaThreshold") );
65 CSCAlgo.SetMatchingDWireThreshold(iConfig.
getParameter<
int>(
"MatchingDWireThreshold") );
67 cosmicmuon_token_ = consumes<reco::MuonCollection>(IT_CosmicMuon);
68 csctimemap_token_ = consumes<reco::MuonTimeExtraMap>(
edm::InputTag(IT_CosmicMuon.
label(),
"csc"));
69 muon_token_ = consumes<reco::MuonCollection>(IT_Muon);
70 cscsegment_token_ = consumes<CSCSegmentCollection>(IT_CSCSegment);
71 cscrechit_token_ = consumes<CSCRecHit2DCollection>(IT_CSCRecHit);
72 cscalct_token_ = consumes<CSCALCTDigiCollection>(IT_ALCT);
73 l1mugmtro_token_ = consumes<L1MuGMTReadoutCollection>(IT_L1MuGMTReadout);
74 hbhereco_token_ = consumes<HBHERecHitCollection>(IT_HBHErh);
75 EcalRecHitsEB_token_ = consumes<EcalRecHitCollection>(IT_ECALBrh);
76 EcalRecHitsEE_token_ = consumes<EcalRecHitCollection>(IT_ECALErh);
77 hltresult_token_ = consumes<edm::TriggerResults>(IT_HLTResult);
79 produces<CSCHaloData>();
91 iEvent.
getByToken(cosmicmuon_token_, TheCosmics);
96 iEvent.
getByToken(csctimemap_token_, TheCSCTimeMap);
106 iEvent.
getByToken(cscsegment_token_, TheCSCSegments);
111 iEvent.
getByToken(cscrechit_token_, TheCSCRecHits);
116 iEvent.
getByToken(l1mugmtro_token_, TheL1GMTReadout);
127 iEvent.
getByToken(EcalRecHitsEB_token_, ecalebhits);
129 iEvent.
getByToken(EcalRecHitsEE_token_,ecaleehits);
134 iEvent.
getByToken(hltresult_token_, TheHLTResults);
141 std::auto_ptr<CSCHaloData> TheCSCData(
new CSCHaloData( CSCAlgo.Calculate(*TheCSCGeometry, TheCosmics, TheCSCTimeMap, TheMuons, TheCSCSegments, TheCSCRecHits, TheL1GMTReadout, hbhehits,ecalebhits,ecaleehits,TheHLTResults, triggerNames, TheALCTs, TheMatcher, iEvent, iSetup) ) );
143 iEvent.
put(TheCSCData);
147 CSCHaloDataProducer::~CSCHaloDataProducer(){}
T getParameter(std::string const &) const
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.