23 CSCAlgo.vIT_HLTBit = iConfig.
getParameter< std::vector< edm::InputTag> >(
"HLTBitLabel");
43 CSCAlgo.SetDetaThreshold( (
float) iConfig.
getParameter<
double>(
"DetaParam"));
44 CSCAlgo.SetDphiThreshold( (
float) iConfig.
getParameter<
double>(
"DphiParam"));
45 CSCAlgo.SetMinMaxInnerRadius( (
float) iConfig.
getParameter<
double>(
"InnerRMinParam") , (
float) iConfig.
getParameter<
double>(
"InnerRMaxParam") );
46 CSCAlgo.SetMinMaxOuterRadius( (
float) iConfig.
getParameter<
double>(
"OuterRMinParam"), (
float) iConfig.
getParameter<
double>(
"OuterRMaxParam"));
47 CSCAlgo.SetNormChi2Threshold( (
float) iConfig.
getParameter<
double>(
"NormChi2Param") );
50 CSCAlgo.SetMaxSegmentRDiff( (
float) iConfig.
getParameter<
double>(
"MaxSegmentRDiff") );
51 CSCAlgo.SetMaxSegmentPhiDiff( (
float) iConfig.
getParameter<
double>(
"MaxSegmentPhiDiff") );
52 CSCAlgo.SetMaxSegmentTheta( (
float) iConfig.
getParameter<
double>(
"MaxSegmentTheta") );
55 CSCAlgo.SetMaxDtMuonSegment( (
float) iConfig.
getParameter<
double>(
"MaxDtMuonSegment") );
56 CSCAlgo.SetMaxFreeInverseBeta( (
float) iConfig.
getParameter<
double>(
"MaxFreeInverseBeta") );
57 CSCAlgo.SetExpectedBX( (
short int) iConfig.
getParameter<
int>(
"ExpectedBX") );
58 CSCAlgo.SetRecHitTime0( (
float) iConfig.
getParameter<
double>(
"RecHitTime0") );
59 CSCAlgo.SetRecHitTimeWindow( (
float) iConfig.
getParameter<
double>(
"RecHitTimeWindow") );
60 CSCAlgo.SetMinMaxOuterMomentumTheta( (
float)iConfig.
getParameter<
double>(
"MinOuterMomentumTheta"), (
float)iConfig.
getParameter<
double>(
"MaxOuterMomentumTheta") );
61 CSCAlgo.SetMatchingDPhiThreshold( (
float)iConfig.
getParameter<
double>(
"MatchingDPhiThreshold") );
62 CSCAlgo.SetMatchingDEtaThreshold( (
float)iConfig.
getParameter<
double>(
"MatchingDEtaThreshold") );
63 CSCAlgo.SetMatchingDWireThreshold(iConfig.
getParameter<
int>(
"MatchingDWireThreshold") );
65 cosmicmuon_token_ = consumes<reco::MuonCollection>(IT_CosmicMuon);
66 csctimemap_token_ = consumes<reco::MuonTimeExtraMap>(
edm::InputTag(IT_CosmicMuon.
label(),
"csc"));
67 muon_token_ = consumes<reco::MuonCollection>(IT_Muon);
68 cscsegment_token_ = consumes<CSCSegmentCollection>(IT_CSCSegment);
69 cscrechit_token_ = consumes<CSCRecHit2DCollection>(IT_CSCRecHit);
70 cscalct_token_ = consumes<CSCALCTDigiCollection>(IT_ALCT);
71 l1mugmtro_token_ = consumes<L1MuGMTReadoutCollection>(IT_L1MuGMTReadout);
72 hltresult_token_ = consumes<edm::TriggerResults>(IT_HLTResult);
74 produces<CSCHaloData>();
86 iEvent.
getByToken(cosmicmuon_token_, TheCosmics);
91 iEvent.
getByToken(csctimemap_token_, TheCSCTimeMap);
101 iEvent.
getByToken(cscsegment_token_, TheCSCSegments);
106 iEvent.
getByToken(cscrechit_token_, TheCSCRecHits);
111 iEvent.
getByToken(l1mugmtro_token_, TheL1GMTReadout);
121 iEvent.
getByToken(hltresult_token_, TheHLTResults);
128 std::auto_ptr<CSCHaloData> TheCSCData(
new CSCHaloData( CSCAlgo.Calculate(*TheCSCGeometry, TheCosmics, TheCSCTimeMap, TheMuons, TheCSCSegments, TheCSCRecHits, TheL1GMTReadout, TheHLTResults, triggerNames, TheALCTs, TheMatcher, iEvent) ) );
130 iEvent.
put(TheCSCData);
134 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.