4 #include "CLHEP/Random/RandFlat.h"
8 using namespace sistrip;
14 nlayers_(conf.getUntrackedParameter<int>(
"layers",-1)),
15 global_(conf.getUntrackedParameter<bool>(
"doGlobal",
true)),
16 random_(conf.getUntrackedParameter<bool>(
"random",
false)),
17 taujets_(conf.getUntrackedParameter<bool>(
"useTauJets",
false)),
18 ptrack_(conf.getUntrackedParameter<bool>(
"usePixelTracks",
true)),
19 siStripLazyGetter_(conf.getParameter<edm::InputTag>(
"siStripLazyGetter")),
20 taujetL1_(conf.getParameter<edm::InputTag>(
"l1tauJetLabel")),
21 ptrackLabel_(conf.getParameter<edm::InputTag>(
"pixelTrackLabel")),
22 taujetdeta_(conf.getUntrackedParameter<double>(
"tjetEtaWindow",0.2)),
23 taujetdphi_(conf.getUntrackedParameter<double>(
"tjetPhiWindow",0.2)),
24 ptrackEta_(conf.getUntrackedParameter<double>(
"ptrackEtaWindow",0.3)),
25 ptrackPhi_(conf.getUntrackedParameter<double>(
"ptrackPhiWindow",0.3))
28 produces< RefGetter >();
41 for (uint32_t iregion=0;iregion<
cabling_->getRegionCabling().size();iregion++) {
42 for (uint32_t isubdet=0;isubdet<
cabling_->getRegionCabling()[iregion].size();isubdet++) {
43 for (uint32_t ilayer=0;ilayer<
cabling_->getRegionCabling()[iregion][isubdet].size();ilayer++) {
60 event.put(globalrefgetter);
65 refgetter->reserve(10000);
76 taujets(*collection,*refgetter,lazygetter);
84 ptracks(*collection,*refgetter,lazygetter);
98 uint32_t required =
static_cast<uint32_t
>(CLHEP::RandFlat::shoot()*(total+1));
99 for (uint32_t iregion = 0; iregion < required; iregion++) {
113 l1extra::L1JetParticleCollection::const_iterator icollection = collection.begin();
114 for (; icollection!=collection.end(); icollection++) {
129 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
131 for (uint32_t
p=0 ;
p<isoPixTrackRefs.size();
p++) {
static const ElementIndex elementIndex(const uint32_t region, const SubDet, const uint32_t layer)
void ptracks(const trigger::TriggerFilterObjectWithRefs &, RefGetter &, edm::Handle< LazyGetter > &) const
static const uint32_t physicalLayer(const SubDet, const uint32_t layer)
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
void taujets(const l1extra::L1JetParticleCollection &, RefGetter &, edm::Handle< LazyGetter > &) const
~HITSiStripRawToClustersRoI()
SiStripRegionCabling::Position Position
static int position[TOTALCHAMBERS][3]
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::ESHandle< SiStripRegionCabling > cabling_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void random(RefGetter &, edm::Handle< LazyGetter > &) const
bool physicalLayer(SubDet &, uint32_t &) const
std::vector< uint32_t > allregions_
edm::RefGetter< SiStripCluster > RefGetter
HITSiStripRawToClustersRoI(const edm::ParameterSet &)
edm::InputTag ptrackLabel_
edm::InputTag siStripLazyGetter_