73 static const int nEeX = 100;
77 static const int nEeY = 100;
89 static const int nScX = 20;
93 static const int nScY = 20;
219 int iPhi0 = iPhi - 11;
231 int iTtEta2cIndex(
int iTtEta)
const {
return (iTtEta < 0) ? (iTtEta + 28) : (iTtEta + 27); }
237 int cIndex2iTtEta(
int iTtEta0)
const {
return (iTtEta0 < 28) ? (iTtEta0 - 28) : (iTtEta0 - 27); }
267 void elec2GeomNum(
int ittEta0,
int ittPhi0,
int strip1,
int ch1,
int &iEta0,
int &iPhi0)
const;
328 void fwrite(std::ofstream &
f, uint16_t
data,
int &iword,
bool hpar =
true)
const;
420 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
void genFeData(std::string &basename, int iEvent, const std::vector< uint16_t > adcCount[nEbEta][nEbPhi]) const
static const int nTtSmPhi
void checkGeometry(const edm::EventSetup &eventSetup)
edm::EDGetTokenT< EBSrFlagCollection > ebSrFlagToken_
void elec2GeomNum(int ittEta0, int ittPhi0, int strip1, int ch1, int &iEta0, int &iPhi0) const
void checkTriggerMap(const edm::EventSetup &eventSetup)
static const int nDccEndcap
edm::EDGetTokenT< EcalTrigPrimDigiCollection > trigPrimDigisToken_[2]
void fwrite(std::ofstream &f, uint16_t data, int &iword, bool hpar=true) const
void setHParity(uint16_t &a) const
std::string digiProducer_
std::string eeSrFlagCollection_
std::string getExt() const
static const int nEndcaps
edm::EDGetTokenT< EESrFlagCollection > eeSrFlagToken_
edm::EDGetTokenT< EBDigiCollection > ebDigisToken_
static const int strip2Eta[nTtTypes][ttEdge]
std::string ebDigiCollection_
void getSrfs(const edm::Event &event, int ebSrf[nTtEta][nTtPhi], int eeSrf[nEndcaps][nScX][nScY]) const
static const int nTtPhisPerEbDcc
static const int nTccEndcap
void genSrData(std::string &basename, int iEvent, int ttf[nEbTtEta][nTtPhi]) const
int iEta2cIndex(int iEta) const
std::string ebSrFlagCollection_
static const int nEbTtEta
EcalSimRawData(const edm::ParameterSet &pset)
std::string tcpDigiCollection_
static const int ebTccPhiEdge
static const int ebDccPhiEdge
~EcalSimRawData() override=default
static const int nTtPhisPerEbTcc
const EcalTrigTowerConstituentsMap * theTriggerTowerMap
int cIndex2TtPhi(int iTtPhi0) const
int iTtPhi2cIndex(int iTtPhi) const
std::string eeDigiCollection_
std::string tpDigiCollection_
int iTtEta2cIndex(int iTtEta) const
int cIndex2iTtEta(int iTtEta0) const
void getTp(const edm::Event &event, tokenType type, int tp[nTtEta][nTtPhi]) const
void genTccOut(std::string &basename, int iEvent, const int tps[nTtEta][nTtPhi]) const
char data[epos_bytes_allocation]
std::unique_ptr< EcalSelectiveReadout > esr_
int iPhi2cIndex(int iPhi) const
static const int stripCh2Phi[nTtTypes][ttEdge][ttEdge]
const CaloGeometry * theGeometry
void getEbDigi(const edm::Event &event, std::vector< uint16_t > adc[nEbEta][nEbPhi]) const
static const int nTtSmEta
uint16_t *__restrict__ uint16_t const *__restrict__ adc
static const int ttType[nEbTtEta]
void genTccIn(std::string &basename, int iEvent, const int tps[nTtEta][nTtPhi]) const
static const int nTtTypes