1 #ifndef DataFormats_Luminosity_PixelClusterCounts_h 2 #define DataFormats_Luminosity_PixelClusterCounts_h 27 if (modIndex ==
m_ModID.size()) {
37 if (rocIndex ==
m_RocID.size()) {
48 std::vector<int>
const& countsInEvent = pccInEvent.
counts();
49 std::vector<int>
const& rocCountsInEvent = pccInEvent.
countsRoc();
50 std::vector<int>
const& modIDInEvent = pccInEvent.
modID();
51 std::vector<int>
const& rocIDInEvent = pccInEvent.
rocID();
52 int bxIDInEvent = pccInEvent.
bxID();
54 for (
unsigned int i = 0;
i < modIDInEvent.size();
i++) {
55 increment(modIDInEvent[
i], bxIDInEvent, countsInEvent.at(
i));
57 for (
unsigned int i = 0;
i < rocIDInEvent.size();
i++) {
65 std::vector<int>
const& modIDs = pcc.
readModID();
66 std::vector<int>
const& rocIDs = pcc.
readRocID();
69 for (
unsigned int i = 0;
i < modIDs.size();
i++) {
74 for (
unsigned int i = 0;
i < rocIDs.size();
i++) {
std::vector< int > const & rocID() const
std::vector< int > const & readModID() const
unsigned int const & bxID() const
static const unsigned int numBX
void incrementRoc(int rD, int count)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void add(reco::PixelClusterCountsInEvent const &pccInEvent)
std::vector< int > const & readEvents() const
std::vector< int > m_RocID
std::vector< int > m_events
std::vector< int > const & readRocID() const
void merge(reco::PixelClusterCounts const &pcc)
std::vector< int > const & readCounts() const
void increment(int mD, unsigned int bxID, int count)
std::vector< int > const & readRocCounts() const
std::vector< int > const & modID() const
std::vector< int > m_counts
void eventCounter(unsigned int bxID)
std::vector< int > const & countsRoc() const
std::vector< int > m_countsRoc
std::vector< int > m_ModID
std::vector< int > const & counts() const