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 taujetdeta_(conf.getUntrackedParameter<double>(
"tjetEtaWindow",0.2)),
20 taujetdphi_(conf.getUntrackedParameter<double>(
"tjetPhiWindow",0.2)),
21 ptrackEta_(conf.getUntrackedParameter<double>(
"ptrackEtaWindow",0.3)),
22 ptrackPhi_(conf.getUntrackedParameter<double>(
"ptrackPhiWindow",0.3))
29 produces< RefGetter >();
42 for (uint32_t iregion=0;iregion<
cabling_->getRegionCabling().size();iregion++) {
43 for (uint32_t isubdet=0;isubdet<
cabling_->getRegionCabling()[iregion].size();isubdet++) {
44 for (uint32_t ilayer=0;ilayer<
cabling_->getRegionCabling()[iregion][isubdet].size();ilayer++) {
61 event.put(globalrefgetter);
66 refgetter->reserve(10000);
77 taujets(*collection,*refgetter,lazygetter);
85 ptracks(*collection,*refgetter,lazygetter);
92 uint32_t signedlayer = 0;
104 uint32_t
required =
static_cast<uint32_t
>(CLHEP::RandFlat::shoot()*(total+1));
105 for (uint32_t iregion = 0; iregion <
required; iregion++) {
119 l1extra::L1JetParticleCollection::const_iterator icollection = collection.begin();
120 for (; icollection!=collection.end(); icollection++) {
135 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
137 for (uint32_t
p=0 ;
p<isoPixTrackRefs.size();
p++) {
static const ElementIndex elementIndex(const uint32_t region, const SubDet, const uint32_t layer)
T getParameter(std::string const &) const
void ptracks(const trigger::TriggerFilterObjectWithRefs &, RefGetter &, edm::Handle< LazyGetter > &) const
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
void taujets(const l1extra::L1JetParticleCollection &, RefGetter &, edm::Handle< LazyGetter > &) const
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tok_ptrack_
~HITSiStripRawToClustersRoI()
SiStripRegionCabling::Position Position
edm::EDGetTokenT< LazyGetter > tok_siStrip_
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_tauL1_
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
static int position[264][3]
std::vector< uint32_t > allregions_
edm::RefGetter< SiStripCluster > RefGetter
HITSiStripRawToClustersRoI(const edm::ParameterSet &)
volatile std::atomic< bool > shutdown_flag false
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")