23 CSCAlgo.vIT_HLTBit = iConfig.
getParameter< std::vector< edm::InputTag> >(
"HLTBitLabel");
47 CSCAlgo.SetDetaThreshold( (
float) iConfig.
getParameter<
double>(
"DetaParam"));
48 CSCAlgo.SetDphiThreshold( (
float) iConfig.
getParameter<
double>(
"DphiParam"));
49 CSCAlgo.SetMinMaxInnerRadius( (
float) iConfig.
getParameter<
double>(
"InnerRMinParam") , (
float) iConfig.
getParameter<
double>(
"InnerRMaxParam") );
50 CSCAlgo.SetMinMaxOuterRadius( (
float) iConfig.
getParameter<
double>(
"OuterRMinParam"), (
float) iConfig.
getParameter<
double>(
"OuterRMaxParam"));
51 CSCAlgo.SetNormChi2Threshold( (
float) iConfig.
getParameter<
double>(
"NormChi2Param") );
54 CSCAlgo.SetMaxSegmentRDiff( (
float) iConfig.
getParameter<
double>(
"MaxSegmentRDiff") );
55 CSCAlgo.SetMaxSegmentPhiDiff( (
float) iConfig.
getParameter<
double>(
"MaxSegmentPhiDiff") );
56 CSCAlgo.SetMaxSegmentTheta( (
float) iConfig.
getParameter<
double>(
"MaxSegmentTheta") );
59 CSCAlgo.SetMaxDtMuonSegment( (
float) iConfig.
getParameter<
double>(
"MaxDtMuonSegment") );
60 CSCAlgo.SetMaxFreeInverseBeta( (
float) iConfig.
getParameter<
double>(
"MaxFreeInverseBeta") );
61 CSCAlgo.SetExpectedBX( (
short int) iConfig.
getParameter<
int>(
"ExpectedBX") );
62 CSCAlgo.SetRecHitTime0( (
float) iConfig.
getParameter<
double>(
"RecHitTime0") );
63 CSCAlgo.SetRecHitTimeWindow( (
float) iConfig.
getParameter<
double>(
"RecHitTimeWindow") );
64 CSCAlgo.SetMinMaxOuterMomentumTheta( (
float)iConfig.
getParameter<
double>(
"MinOuterMomentumTheta"), (
float)iConfig.
getParameter<
double>(
"MaxOuterMomentumTheta") );
65 CSCAlgo.SetMatchingDPhiThreshold( (
float)iConfig.
getParameter<
double>(
"MatchingDPhiThreshold") );
66 CSCAlgo.SetMatchingDEtaThreshold( (
float)iConfig.
getParameter<
double>(
"MatchingDEtaThreshold") );
67 CSCAlgo.SetMatchingDWireThreshold(iConfig.
getParameter<
int>(
"MatchingDWireThreshold") );
69 cosmicmuon_token_ = consumes<reco::MuonCollection>(IT_CosmicMuon);
70 csctimemap_token_ = consumes<reco::MuonTimeExtraMap>(
edm::InputTag(IT_CosmicMuon.
label(),
"csc"));
71 muon_token_ = consumes<reco::MuonCollection>(IT_Muon);
72 cscsegment_token_ = consumes<CSCSegmentCollection>(IT_CSCSegment);
73 cscrechit_token_ = consumes<CSCRecHit2DCollection>(IT_CSCRecHit);
74 cscalct_token_ = consumes<CSCALCTDigiCollection>(IT_ALCT);
75 l1mugmtro_token_ = consumes<L1MuGMTReadoutCollection>(IT_L1MuGMTReadout);
76 hbhereco_token_ = consumes<HBHERecHitCollection>(IT_HBHErh);
77 EcalRecHitsEB_token_ = consumes<EcalRecHitCollection>(IT_ECALBrh);
78 EcalRecHitsEE_token_ = consumes<EcalRecHitCollection>(IT_ECALErh);
79 hltresult_token_ = consumes<edm::TriggerResults>(IT_HLTResult);
81 produces<CSCHaloData>();
93 iEvent.
getByToken(cosmicmuon_token_, TheCosmics);
98 iEvent.
getByToken(csctimemap_token_, TheCSCTimeMap);
108 iEvent.
getByToken(cscsegment_token_, TheCSCSegments);
113 iEvent.
getByToken(cscrechit_token_, TheCSCRecHits);
118 iEvent.
getByToken(l1mugmtro_token_, TheL1GMTReadout);
129 iEvent.
getByToken(EcalRecHitsEB_token_, ecalebhits);
131 iEvent.
getByToken(EcalRecHitsEE_token_,ecaleehits);
138 iEvent.
getByToken(hltresult_token_, TheHLTResults);
145 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) ) );
147 iEvent.
put(TheCSCData);
151 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.