71 static const int nEeX = 100;
75 static const int nEeY = 100;
87 static const int nScX = 20;
91 static const int nScY = 20;
212 return (iEta<0)?iEta+85:iEta+84;
221 int iPhi0 = iPhi -11;
222 if(iPhi0<0) iPhi0+=
nEbPhi;
233 return (iTtEta<0)?(iTtEta+28):(iTtEta+27);
241 return (iTtEta0<28)?(iTtEta0-28):(iTtEta0-27);
277 int ch1,
int& iEta0,
int& iPhi0)
const;
291 const std::vector<uint16_t> adcCount[nEbEta][nEbPhi])
const;
301 const int tps[nTtEta][nTtPhi])
const;
310 const int tps[nTtEta][nTtPhi])
const;
319 std::vector<uint16_t>
adc[nEbEta][nEbPhi])
const;
331 int tp[nTtEta][nTtPhi])
const;
348 void fwrite(std::ofstream&
f, uint16_t
data,
int& iword,
349 bool hpar =
true)
const;
358 int eeSrf[nEndcaps][nScX][nScY])
const;
367 int ttf[nEbTtEta][nTtPhi])
const;
445 std::unique_ptr<EcalSelectiveReadout>
esr_;
int adc(sample_type sample)
get the ADC sample (12 bits)
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
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