71 static const int nEeX = 100;
75 static const int nEeY = 100;
87 static const int nScX = 20;
91 static const int nScY = 20;
209 int iEta2cIndex(
int iEta)
const {
return (iEta < 0) ? iEta + 85 : iEta + 84; }
217 int iPhi0 = iPhi - 11;
229 int iTtEta2cIndex(
int iTtEta)
const {
return (iTtEta < 0) ? (iTtEta + 28) : (iTtEta + 27); }
235 int cIndex2iTtEta(
int iTtEta0)
const {
return (iTtEta0 < 28) ? (iTtEta0 - 28) : (iTtEta0 - 27); }
265 void elec2GeomNum(
int ittEta0,
int ittPhi0,
int strip1,
int ch1,
int &iEta0,
int &iPhi0)
const;
278 void genFeData(
std::string basename,
int iEvent,
const std::vector<uint16_t> adcCount[nEbEta][nEbPhi])
const;
326 void fwrite(std::ofstream &
f, uint16_t
data,
int &iword,
bool hpar =
true)
const;
333 void getSrfs(
const edm::Event &event,
int ebSrf[nTtEta][nTtPhi],
int eeSrf[nEndcaps][nScX][nScY])
const;
418 std::unique_ptr<EcalSelectiveReadout>
esr_;
std::string srDigiProducer_
void analyze(const edm::Event &, const edm::EventSetup &) override
static const int nDccInPhi
static const int nTccInPhi
static const int nEeTtEta
static const int nTtSmPhi
int iPhi2cIndex(int iPhi) const
void checkGeometry(const edm::EventSetup &eventSetup)
void checkTriggerMap(const edm::EventSetup &eventSetup)
static const int nDccEndcap
std::string digiProducer_
void getTp(const edm::Event &event, const std::string &collName, int tp[nTtEta][nTtPhi]) const
std::string eeSrFlagCollection_
std::string getExt() const
int cIndex2iTtEta(int iTtEta0) const
static const int nEndcaps
void setHParity(uint16_t &a) const
int iEta2cIndex(int iEta) const
static const int strip2Eta[nTtTypes][ttEdge]
std::string ebDigiCollection_
void genFeData(std::string basename, int iEvent, const std::vector< uint16_t > adcCount[nEbEta][nEbPhi]) const
static const int nTtPhisPerEbDcc
static const int nTccEndcap
void getSrfs(const edm::Event &event, int ebSrf[nTtEta][nTtPhi], int eeSrf[nEndcaps][nScX][nScY]) const
std::string ebSrFlagCollection_
static const int nEbTtEta
~EcalSimRawData() override
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
EcalSimRawData(const edm::ParameterSet &pset)
std::string tcpDigiCollection_
static const int ebTccPhiEdge
static const int ebDccPhiEdge
void fwrite(std::ofstream &f, uint16_t data, int &iword, bool hpar=true) const
static const int nTtPhisPerEbTcc
void genTccOut(std::string basename, int iEvent, const int tps[nTtEta][nTtPhi]) const
const EcalTrigTowerConstituentsMap * theTriggerTowerMap
void genSrData(std::string basename, int iEvent, int ttf[nEbTtEta][nTtPhi]) const
std::string eeDigiCollection_
void getEbDigi(const edm::Event &event, std::vector< uint16_t > adc[nEbEta][nEbPhi]) const
std::string tpDigiCollection_
void genTccIn(std::string basename, int iEvent, const int tps[nTtEta][nTtPhi]) const
int cIndex2TtPhi(int iTtPhi0) const
char data[epos_bytes_allocation]
std::unique_ptr< EcalSelectiveReadout > esr_
static const int stripCh2Phi[nTtTypes][ttEdge][ttEdge]
const CaloGeometry * theGeometry
void elec2GeomNum(int ittEta0, int ittPhi0, int strip1, int ch1, int &iEta0, int &iPhi0) const
int iTtPhi2cIndex(int iTtPhi) const
int iTtEta2cIndex(int iTtEta) const
static const int nTtSmEta
static const int ttType[nEbTtEta]
static const int nTtTypes