42 if((Point2).
gp.mag() > (Point1).
gp.mag())
return true;
69 descriptions.
add(
"hltRPCTrigNoSyncFilter",desc);
79 std::vector<RPC4DHit> GlobalRPC4DHits;
80 std::vector<RPC4DHit> GlobalRPC4DHitsNoBx0;
93 if(rpcRecHits->begin() == rpcRecHits->end()){
106 for (recHit = rpcRecHits->begin(); recHit != rpcRecHits->end(); recHit++){
109 const RPCRoll* rollasociated = rpcGeo->
roll(rollId);
111 GlobalPoint RecHitInGlobal = RPCSurface.toGlobal(recHitPos);
113 int BX = recHit->BunchX();
118 ThisHit.
gp = RecHitInGlobal;
120 GlobalRPC4DHits.push_back(ThisHit);
121 if(BX!=0)GlobalRPC4DHitsNoBx0.push_back(ThisHit);
125 if(GlobalRPC4DHitsNoBx0.empty()){
131 if(GlobalRPC4DHitsNoBx0.size()>100){
140 std::vector<L1MuGMTExtendedCand> gmt_candidates = (*gmtrc_handle).getRecord().getGMTCands();
142 std::vector<L1MuGMTExtendedCand>::const_iterator candidate;
145 if(gmt_candidates.empty()){
150 for(candidate=gmt_candidates.begin(); candidate!=gmt_candidates.end(); candidate++) {
151 int qual = candidate->quality();
153 if(qual < 5)
continue;
154 float eta=candidate->etaValue();
155 float phi=candidate->phiValue();
161 std::vector<RPC4DHit> PointsForGMT;
163 for(
auto &
Point : GlobalRPC4DHitsNoBx0){
164 float phiP =
Point.gp.phi();
165 float etaP =
Point.gp.eta();
169 if(fabs(phi-phiP) <=0.1 && fabs(eta-etaP)<=0.20){
170 PointsForGMT.push_back(
Point);
177 if(PointsForGMT.empty()){
188 bool outOfTime =
false;
192 for(
auto point = PointsForGMT.begin();
point < PointsForGMT.end(); ++
point) {
194 outOfTime |= (
point->bx!=0);
195 incr &= (
point->bx>=lastbx);
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
HLTRPCTrigNoSyncFilter(const edm::ParameterSet &)
edm::EDGetTokenT< RPCRecHitCollection > rpcRecHitsToken
const Plane & surface() const
The nominal surface of the GeomDet.
edm::EDGetTokenT< L1MuGMTReadoutCollection > m_GMTInputToken
C::const_iterator const_iterator
constant access iterator type
#define DEFINE_FWK_MODULE(type)
bool bigmag(const RPC4DHit &Point1, const RPC4DHit &Point2)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
edm::InputTag m_GMTInputTag
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Structure Point Contains parameters of Gaussian fits to DMRs.
edm::InputTag rpcRecHitsLabel
~HLTRPCTrigNoSyncFilter() override
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
*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
const RPCRoll * roll(RPCDetId id) const
Return a roll given its id.