CMS 3D CMS Logo

L1AnalysisSimulation.cc
Go to the documentation of this file.
2 
4 
6 
8 
10  if (!(e.eventAuxiliary().isRealData())) {
11  // Grab the pileup information for this event
13  e.getByLabel(edm::InputTag("addPileupInfo"), puInfo);
14 
15  if (puInfo.isValid()) {
16  std::vector<PileupSummaryInfo>::const_iterator pvi;
17 
18  for (pvi = puInfo->begin(); pvi != puInfo->end(); ++pvi) {
19  int bx = pvi->getBunchCrossing();
20 
21  if (bx == 0) {
22  sim_.meanInt = pvi->getTrueNumInteractions();
23  sim_.actualInt = pvi->getPU_NumInteractions();
24  continue;
25  }
26  }
27  }
28  } else {
29  sim_.meanInt = -1.;
30  sim_.actualInt = -1;
31  }
32 }
L1Analysis::L1AnalysisSimulation::~L1AnalysisSimulation
~L1AnalysisSimulation()
Definition: L1AnalysisSimulation.cc:7
PileupSummaryInfo.h
L1AnalysisSimulation.h
edm::Handle
Definition: AssociativeIterator.h:50
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
L1Analysis::L1AnalysisSimulation::L1AnalysisSimulation
L1AnalysisSimulation()
Definition: L1AnalysisSimulation.cc:5
L1Analysis::L1AnalysisSimulation::Set
void Set(const edm::Event &e)
Definition: L1AnalysisSimulation.cc:9
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37