3 #include "CLHEP/Random/RandFlat.h"
6 using namespace sistrip;
12 nlayers_(conf.getUntrackedParameter<int>(
"Layers",-1)),
13 global_(conf.getUntrackedParameter<bool>(
"Global",
true)),
14 random_(conf.getUntrackedParameter<bool>(
"Random",
false)),
15 electrons_(conf.getUntrackedParameter<bool>(
"Electrons",
false)),
16 muons_(conf.getUntrackedParameter<bool>(
"Muons",
false)),
17 taujets_(conf.getUntrackedParameter<bool>(
"TauJets",
false)),
18 bjets_(conf.getUntrackedParameter<bool>(
"BJets",
false)),
19 siStripLazyGetter_(conf.getParameter<edm::InputTag>(
"SiStripLazyGetter")),
20 electronBarrelL2_(conf.getParameter<edm::InputTag>(
"ElectronBarrelL2")),
21 electronEndcapL2_(conf.getParameter<edm::InputTag>(
"ElectronEndcapL2")),
22 muonL2_(conf.getParameter<edm::InputTag>(
"MuonL2")),
23 taujetL2_(conf.getParameter<edm::InputTag>(
"TauJetL2")),
24 bjetL2_(conf.getParameter<edm::InputTag>(
"BJetL2")),
25 electrondeta_(conf.getUntrackedParameter<double>(
"ElectronEtaWindow",0.2)),
26 electrondphi_(conf.getUntrackedParameter<double>(
"ElectronPhiWindow",0.2)),
27 muondeta_(conf.getUntrackedParameter<double>(
"MuonEtaWindow",0.2)),
28 muondphi_(conf.getUntrackedParameter<double>(
"MuonPhiWindow",0.2)),
29 taujetdeta_(conf.getUntrackedParameter<double>(
"TauJetEtaWindow",0.2)),
30 taujetdphi_(conf.getUntrackedParameter<double>(
"TauJetPhiWindow",0.2)),
31 bjetdeta_(conf.getUntrackedParameter<double>(
"BJetEtaWindow",0.2)),
32 bjetdphi_(conf.getUntrackedParameter<double>(
"BJetPhiWindow",0.2))
34 produces< RefGetter >();
56 event.put(globalrefgetter);
61 refgetter->reserve(10000);
74 if (barrelcollection.
isValid()) {
75 electrons(*barrelcollection,*refgetter,lazygetter);
77 if (endcapcollection.
isValid()) {
78 electrons(*endcapcollection,*refgetter,lazygetter);
86 event.getByLabel(
muonL2_,collection);
88 muons(*collection,*refgetter,lazygetter);
98 taujets(*collection,*refgetter,lazygetter);
106 event.getByLabel(
bjetL2_,collection);
108 bjets(*collection,*refgetter,lazygetter);
112 event.put(refgetter);
145 uint32_t
required =
static_cast<uint32_t
>(CLHEP::RandFlat::shoot()*(total+1));
146 for (uint32_t iregion = 0; iregion <
required; iregion++) {
159 reco::SuperClusterCollection::const_iterator icollection = collection.begin();
160 for (; icollection!=collection.end(); icollection++) {
174 reco::TrackCollection::const_iterator icollection = collection.begin();
175 for (; icollection!=collection.end(); icollection++) {
176 Position position(icollection->outerPosition().eta(),icollection->outerPosition().phi());
189 reco::CaloJetCollection::const_iterator icollection = collection.begin();
190 for (; icollection!=collection.end(); icollection++) {
204 reco::CaloJetCollection::const_iterator icollection = collection.begin();
205 for (; icollection!=collection.end(); icollection++) {
static const ElementIndex elementIndex(const uint32_t region, const SubDet, const uint32_t layer)
bool physicalLayer(SubDet &, uint32_t &) const
static const uint32_t physicalLayer(const SubDet, const uint32_t layer)
~SiStripRawToClustersRoI()
edm::InputTag electronEndcapL2_
std::vector< Track > TrackCollection
collection of Tracks
void bjets(const reco::CaloJetCollection &, RefGetter &, edm::Handle< LazyGetter > &) const
std::vector< uint32_t > allregions_
const SiStripRegionCabling * cabling_
void muons(const reco::TrackCollection &, RefGetter &, edm::Handle< LazyGetter > &) const
void random(RefGetter &, edm::Handle< LazyGetter > &) const
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void updateSiStripRefGetter(edm::RefGetter< T > &refgetter, const edm::Handle< edm::LazyGetter< T > > &lazygetter, const ElementIndex) const
void updateCabling(const edm::EventSetup &setup)
const Cabling & getRegionCabling() const
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
SiStripRawToClustersRoI(const edm::ParameterSet &)
T const * product() const
void electrons(const reco::SuperClusterCollection &, RefGetter &, edm::Handle< LazyGetter > &) const
edm::InputTag siStripLazyGetter_
SiStripRegionCabling::Position Position
void taujets(const reco::CaloJetCollection &, RefGetter &, edm::Handle< LazyGetter > &) const
static int position[264][3]
edm::RefGetter< SiStripCluster > RefGetter
edm::InputTag electronBarrelL2_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
virtual void beginRun(edm::Run &, const edm::EventSetup &)