1 #ifndef CalibCalorimetry_EcalLaserAnalyzer_EcalLaserAnalyzer_h 2 #define CalibCalorimetry_EcalLaserAnalyzer_EcalLaserAnalyzer_h 43 #define NCRYSEB 1700 // Number of crystals per EB supermodule 44 #define NMODEB 9 // Number of EB submodules 45 #define NPNPERMOD 2 // Number of PN per module 48 #define NCRYSEE 830 // Number of crystals per EE supermodule 49 #define NMODEE 22 // Number of EE submodules 51 #define NSIDES 2 // Number of sides 52 #define NREFCHAN 2 // Ref number for APDB 65 int etaG,
int phiG,
int iX,
int iY,
int iZ,
int module,
int tower,
int ch,
int apdRefTT,
int channel,
int lmr);
224 double APD[6],
Time[6],
PN[6],
APDoPN[6],
APDoPNA[6],
APDoPNB[6],
APDoAPDA[6],
APDoAPDB[6],
PNoPN[6],
PNoPNA[6],
TAPD * APDAnal[1700][nColor]
TPN * PNFirstAnal[22][2][nColor]
const std::string digiProducer_
std::vector< int > modules
EcalLaserAnalyzer(const edm::ParameterSet &iConfig)
std::map< int, unsigned int > apdRefMap[2]
const double _ratiomincuthigh
~EcalLaserAnalyzer() override
const unsigned int _nsamplesPN
const edm::EDGetTokenT< EcalRawDataCollection > rawDataToken_
const std::string eventHeaderCollection_
TPN * PNAnal[22][2][nColor]
const double _presamplecut
edm::EDGetTokenT< EBDigiCollection > ebDigiToken_
TTree * RefAPDtrees[2][22]
const unsigned int _nevtmax
const double _ratiomaxcutlow
const unsigned int _niter
const std::string eventHeaderProducer_
std::vector< int > colors
TAPD * APDFirstAnal[1700][nColor]
unsigned int firstChanMod[22]
const unsigned int _timingqualhigh
const std::string digiPNCollection_
const unsigned int _nsamples
unsigned int isFirstChanModFilled[22]
const unsigned int _lastsamplePN
const unsigned int _lastsample
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > mappingToken_
std::map< unsigned int, unsigned int > channelMapEE
unsigned int iModule[1700]
const std::string resdir_
std::string alphainitfile
const unsigned int _timingcutlow
void setGeomEB(int etaG, int phiG, int module, int tower, int strip, int xtal, int apdRefTT, int channel, int lmr)
const bool _saveallevents
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void setGeomEE(int etaG, int phiG, int iX, int iY, int iZ, int module, int tower, int ch, int apdRefTT, int channel, int lmr)
edm::EDGetTokenT< EEDigiCollection > eeDigiToken_
int IsThereDataADC[1700][nColor]
const unsigned int _timingcuthigh
const unsigned int _presamplePN
const edm::EDGetTokenT< EcalPnDiodeDigiCollection > pnDiodeDigiToken_
const unsigned int _firstsample
const unsigned int _firstsamplePN
const double _qualpercent
unsigned int nevtAB[1700]
const std::string digiCollection_
const std::string pncorfile_
const double _ratiomincutlow
const unsigned int _timingquallow
TTree * respntrees[nColor]
const std::string _ecalPart