1 #ifndef DataFormats_Luminosity_PixelClusterCounts_h 2 #define DataFormats_Luminosity_PixelClusterCounts_h 27 if (modIndex ==
m_ModID.size()) {
36 if (rocIndex ==
m_RocID.size()) {
46 std::vector<int>
const& countsInEvent = pccInEvent.
counts();
47 std::vector<int>
const& rocCountsInEvent = pccInEvent.
countsRoc();
48 std::vector<int>
const& modIDInEvent = pccInEvent.
modID();
49 std::vector<int>
const& rocIDInEvent = pccInEvent.
rocID();
50 int bxIDInEvent = pccInEvent.
bxID();
51 for (
unsigned int i = 0;
i < modIDInEvent.size();
i++) {
52 increment(modIDInEvent[
i], bxIDInEvent, countsInEvent.at(
i));
54 for (
unsigned int i = 0;
i < rocIDInEvent.size();
i++) {
55 incrementRoc(rocIDInEvent[
i], bxIDInEvent, rocCountsInEvent.at(
i));
62 std::vector<int>
const& modIDs = pcc.
readModID();
63 std::vector<int>
const& rocIDs = pcc.
readRocID();
65 for (
unsigned int i = 0;
i < modIDs.size();
i++) {
70 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 find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void incrementRoc(int rD, unsigned int bxID, int count)
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