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