|
|
#include <ME.h>
|
enum | {
iLmfLaserRun,
iLmfLaserConfig,
iLmfLaserPulse,
iLmfLaserPrim,
iLmfLaserPnPrim,
iLmfTestPulseRun,
iLmfTestPulseConfig,
iLmfTestPulsePrim,
iLmfTestPulsePnPrim,
iSizeLmf
} |
|
enum | {
iAPD_FLAG,
iAPD_MEAN,
iAPD_RMS,
iAPD_M3,
iAPD_OVER_PNA_MEAN,
iAPD_OVER_PNA_RMS,
iAPD_OVER_PNA_M3,
iAPD_OVER_PNB_MEAN,
iAPD_OVER_PNB_RMS,
iAPD_OVER_PNB_M3,
iAPD_OVER_PN_MEAN,
iAPD_OVER_PN_RMS,
iAPD_OVER_PN_M3,
iAPD_SHAPE_COR,
iAPD_ALPHA,
iAPD_BETA,
iAPD_TIME_MEAN,
iAPD_TIME_RMS,
iAPD_TIME_M3,
iAPD_TIME_NEVT,
iSizeAPD
} |
|
enum | {
iPN_FLAG,
iPN_MEAN,
iPN_RMS,
iPN_M3,
iPNA_OVER_PNB_MEAN,
iPNA_OVER_PNB_RMS,
iPNA_OVER_PNB_M3,
iSizePN
} |
|
enum | {
iMTQ_FIT_METHOD,
iMTQ_AMPL,
iMTQ_TIME,
iMTQ_RISE,
iMTQ_FWHM,
iMTQ_FW20,
iMTQ_FW80,
iMTQ_SLIDING,
iSizeMTQ
} |
|
enum | {
iTPAPD_FLAG,
iTPAPD_MEAN,
iTPAPD_RMS,
iTPAPD_M3,
iTPAPD_NEVT,
iSizeTPAPD
} |
|
enum | {
iTPPN_GAIN,
iTPPN_MEAN,
iTPPN_RMS,
iTPPN_M3,
iSizeTPPN
} |
|
enum | Color {
iBlue = 0,
iGreen,
iRed,
iIRed,
iLED1,
iLED2,
iSizeC
} |
|
typedef int | DCCid |
|
enum | EcalElec { iElectronicChannel = iSizeG,
iHVChannel,
iLVChannel,
iSizeU
} |
|
enum | EcalRegion {
iEEM = 0,
iEBM,
iEBP,
iEEP,
iSizeE
} |
|
enum | EcalUnit {
iEcalRegion = 0,
iSector,
iLMRegion,
iLMModule,
iSuperCrystal,
iCrystal,
iSizeG
} |
|
enum | Gain { iVfeGain12 = 1,
iVfeGain6,
iVfeGain1,
iSizeVfeGain
} |
|
typedef int | LMMid |
|
typedef int | LMRid |
|
enum | PN { iPNA = 0,
iPNB
} |
|
enum | PNGain { iPnGain1 = 0,
iPnGain16,
iSizePnGain
} |
|
typedef int | PNid |
|
enum | RunType { iLaser = 0,
iTestPulse,
iSizeT
} |
|
typedef unsigned long | Time |
|
typedef unsigned long long | TimeStamp |
|
enum | TUnit {
iDay,
iHour,
iMinute,
iSecond,
iSizeTU
} |
|
|
static std::vector< int > | apdRefChannels (ME::LMMid ilmmod, ME::LMRid ilmr) |
|
static std::pair< int, int > | dccAndSide (int ilmr) |
|
static int | ecalRegion (int ilmr) |
|
static bool | isBarrel (int ilmr) |
|
static TString | lmdataPath (int lmr) |
|
static std::vector< ME::LMMid > | lmmodFromDcc (ME::DCCid idcc) |
|
static std::vector< ME::LMMid > | lmmodFromLmr (ME::LMRid ilmr) |
|
static int | lmr (int idcc, int iside) |
|
static MEChannel * | lmrTree (int ilmr) |
|
static std::vector< ME::DCCid > | memFromDcc (ME::DCCid idcc) |
|
static std::pair< ME::DCCid, ME::DCCid > | memFromLmr (ME::LMRid ilmr) |
|
static TString | path () |
|
static std::pair< ME::DCCid, ME::PNid > | pn (ME::LMRid ilmr, ME::LMMid ilmmod, ME::PN ipn) |
|
static TString | primPath (int lmr) |
|
static void | regionAndSector (int ilmr, int &ireg, int &isect, int &idcc, int &iside) |
|
static MEChannel * | regTree (int ireg) |
|
static TString | rootFileName (ME::Header header, ME::Settings settings) |
|
static TString | runListName (int lmr, int type, int color) |
|
static TString | smName (int ilmr) |
|
static TString | smName (int ireg, int ism) |
|
static TString | smNameFromDcc (int idcc) |
|
static Time | time (float dt, Time t0, int tunit=iHour) |
|
static Time | time_high (TimeStamp t) |
|
static Time | time_low (TimeStamp t) |
|
static float | timeDiff (Time t1, Time t0, int tunit=iHour) |
|
static std::vector< Time > | timeDiff (Time t1, Time t2, short int &sign) |
|
|
static std::vector< MEChannel * > | _trees = std::vector<MEChannel*>(4, (MEChannel*)nullptr) |
|
static TString | APDPrimVar [iSizeAPD] |
|
static TString | color [iSizeC] = {"Blue", "Green", "Red", "IRed", "LED1", "LED2"} |
|
static TString | granularity [iSizeG] = {"R", "SM", "LMR", "LMM", "SC", "C"} |
|
static const TimeStamp | kLowMask = 0xFFFFFFFF |
|
static TString | MTQPrimVar [iSizeMTQ] |
|
static TString | PNPrimVar [iSizePN] |
|
static TString | region [4] = {"EE-", "EB-", "EB+", "EE+"} |
|
static TString | TPAPDPrimVar [iSizeTPAPD] = {"FLAG", "MEAN", "RMS", "M3", "NEVT"} |
|
static TString | TPPNPrimVar [iSizeTPPN] = {"GAIN", "MEAN", "RMS", "M3"} |
|
static TString | type [iSizeT] = {"Laser", "TestPulse"} |
|
static bool | useElectronicNumbering = false |
|
Definition at line 11 of file ME.h.
◆ DCCid
Definition at line 38 of file ME.h.
◆ LMMid
Definition at line 40 of file ME.h.
◆ LMRid
Definition at line 39 of file ME.h.
◆ PNid
Definition at line 41 of file ME.h.
◆ Time
typedef unsigned long ME::Time |
Definition at line 68 of file ME.h.
◆ TimeStamp
typedef unsigned long long ME::TimeStamp |
Definition at line 69 of file ME.h.
◆ anonymous enum
Enumerator |
---|
iLmfLaserRun | |
iLmfLaserConfig | |
iLmfLaserPulse | |
iLmfLaserPrim | |
iLmfLaserPnPrim | |
iLmfTestPulseRun | |
iLmfTestPulseConfig | |
iLmfTestPulsePrim | |
iLmfTestPulsePnPrim | |
iSizeLmf | |
Definition at line 94 of file ME.h.
◆ anonymous enum
Enumerator |
---|
iAPD_FLAG | |
iAPD_MEAN | |
iAPD_RMS | |
iAPD_M3 | |
iAPD_OVER_PNA_MEAN | |
iAPD_OVER_PNA_RMS | |
iAPD_OVER_PNA_M3 | |
iAPD_OVER_PNB_MEAN | |
iAPD_OVER_PNB_RMS | |
iAPD_OVER_PNB_M3 | |
iAPD_OVER_PN_MEAN | |
iAPD_OVER_PN_RMS | |
iAPD_OVER_PN_M3 | |
iAPD_SHAPE_COR | |
iAPD_ALPHA | |
iAPD_BETA | |
iAPD_TIME_MEAN | |
iAPD_TIME_RMS | |
iAPD_TIME_M3 | |
iAPD_TIME_NEVT | |
iSizeAPD | |
Definition at line 108 of file ME.h.
◆ anonymous enum
Enumerator |
---|
iPN_FLAG | |
iPN_MEAN | |
iPN_RMS | |
iPN_M3 | |
iPNA_OVER_PNB_MEAN | |
iPNA_OVER_PNB_RMS | |
iPNA_OVER_PNB_M3 | |
iSizePN | |
Definition at line 134 of file ME.h.
◆ anonymous enum
Enumerator |
---|
iMTQ_FIT_METHOD | |
iMTQ_AMPL | |
iMTQ_TIME | |
iMTQ_RISE | |
iMTQ_FWHM | |
iMTQ_FW20 | |
iMTQ_FW80 | |
iMTQ_SLIDING | |
iSizeMTQ | |
Definition at line 138 of file ME.h.
◆ anonymous enum
Enumerator |
---|
iTPAPD_FLAG | |
iTPAPD_MEAN | |
iTPAPD_RMS | |
iTPAPD_M3 | |
iTPAPD_NEVT | |
iSizeTPAPD | |
Definition at line 142 of file ME.h.
◆ anonymous enum
Enumerator |
---|
iTPPN_GAIN | |
iTPPN_MEAN | |
iTPPN_RMS | |
iTPPN_M3 | |
iSizeTPPN | |
Definition at line 146 of file ME.h.
◆ Color
Enumerator |
---|
iBlue | |
iGreen | |
iRed | |
iIRed | |
iLED1 | |
iLED2 | |
iSizeC | |
Definition at line 64 of file ME.h.
◆ EcalElec
Enumerator |
---|
iElectronicChannel | |
iHVChannel | |
iLVChannel | |
iSizeU | |
Definition at line 18 of file ME.h.
◆ EcalRegion
Enumerator |
---|
iEEM | |
iEBM | |
iEBP | |
iEEP | |
iSizeE | |
Definition at line 14 of file ME.h.
◆ EcalUnit
Enumerator |
---|
iEcalRegion | |
iSector | |
iLMRegion | |
iLMModule | |
iSuperCrystal | |
iCrystal | |
iSizeG | |
Definition at line 16 of file ME.h.
◆ Gain
Enumerator |
---|
iVfeGain12 | |
iVfeGain6 | |
iVfeGain1 | |
iSizeVfeGain | |
Definition at line 65 of file ME.h.
◆ PN
Definition at line 42 of file ME.h.
◆ PNGain
Enumerator |
---|
iPnGain1 | |
iPnGain16 | |
iSizePnGain | |
Definition at line 66 of file ME.h.
◆ RunType
Enumerator |
---|
iLaser | |
iTestPulse | |
iSizeT | |
Definition at line 63 of file ME.h.
◆ TUnit
Enumerator |
---|
iDay | |
iHour | |
iMinute | |
iSecond | |
iSizeTU | |
Definition at line 150 of file ME.h.
◆ ~ME()
Definition at line 167 of file ME.h.
◆ apdRefChannels()
◆ dccAndSide()
std::pair< int, int > ME::dccAndSide |
( |
int |
ilmr | ) |
|
|
static |
◆ ecalRegion()
int ME::ecalRegion |
( |
int |
ilmr | ) |
|
|
static |
◆ isBarrel()
bool ME::isBarrel |
( |
int |
ilmr | ) |
|
|
static |
Definition at line 527 of file ME.cc.
531 else if (reg_ ==
iEBM || reg_ ==
iEBP)
◆ lmdataPath()
TString ME::lmdataPath |
( |
int |
lmr | ) |
|
|
static |
Definition at line 65 of file ME.cc.
66 TString out_(std::getenv(
"MELMDAT"));
References smName().
◆ lmmodFromDcc()
std::vector< int > ME::lmmodFromDcc |
( |
ME::DCCid |
idcc | ) |
|
|
static |
◆ lmmodFromLmr()
std::vector< int > ME::lmmodFromLmr |
( |
ME::LMRid |
ilmr | ) |
|
|
static |
◆ lmr()
int ME::lmr |
( |
int |
idcc, |
|
|
int |
iside |
|
) |
| |
|
static |
◆ lmrTree()
◆ memFromDcc()
std::vector< int > ME::memFromDcc |
( |
ME::DCCid |
idcc | ) |
|
|
static |
◆ memFromLmr()
std::pair< int, int > ME::memFromLmr |
( |
ME::LMRid |
ilmr | ) |
|
|
static |
◆ path()
Definition at line 81 of file ME.cc.
81 {
return TString(std::getenv(
"MUSECAL")) +
"/"; }
◆ pn()
◆ primPath()
TString ME::primPath |
( |
int |
lmr | ) |
|
|
static |
Definition at line 73 of file ME.cc.
74 TString out_(std::getenv(
"MESTORE"));
References smName().
◆ regionAndSector()
void ME::regionAndSector |
( |
int |
ilmr, |
|
|
int & |
ireg, |
|
|
int & |
isect, |
|
|
int & |
idcc, |
|
|
int & |
iside |
|
) |
| |
|
static |
◆ regTree()
Definition at line 409 of file ME.cc.
411 if (
_trees[ireg] !=
nullptr)
414 int iEcalRegion_ = ireg;
418 int iSuperCrystal_ = 0;
423 if (iEcalRegion_ ==
iEBM || iEcalRegion_ ==
iEBP) {
424 for (
int isect = 1; isect <= 18; isect++) {
426 if (iEcalRegion_ ==
iEBM)
428 if (
_trees[iEcalRegion_] ==
nullptr) {
433 tree_ =
_trees[iEcalRegion_];
434 for (
int iX = 0; iX < 17; iX++) {
435 for (
int iY = 0; iY < 4; iY++) {
438 for (
int jx = 0; jx < 5; jx++) {
439 for (
int jy = 0; jy < 5; jy++) {
440 int ix = 5 * iX + jx;
441 int iy = 5 * iY + jy;
448 int ieta = globalCoord.first;
449 int iphi = globalCoord.second;
452 leaf_ = leaf_->getDaughter(
ieta,
iphi, iSector_);
453 leaf_ = leaf_->getDaughter(
ieta,
iphi, iLMRegion_);
454 leaf_ = leaf_->getDaughter(
ieta,
iphi, iLMModule_);
455 leaf_ = leaf_->getDaughter(
ieta,
iphi, iSuperCrystal_);
456 leaf_ = leaf_->getDaughter(
ieta,
iphi, iCrystal_);
462 }
else if (iEcalRegion_ ==
iEEM || iEcalRegion_ ==
iEEP) {
464 if (iEcalRegion_ ==
iEEM)
466 if (
_trees[iEcalRegion_] ==
nullptr) {
471 tree_ =
_trees[iEcalRegion_];
473 for (
int ilmr = 72; ilmr <= 92; ilmr++)
477 for (
int ilmm = 1; ilmm <= 19; ilmm++)
479 for (
int iXX = 1; iXX <= 10; iXX++) {
480 for (
int iside = 1; iside <= 2; iside++)
485 for (
int iY = 1; iY <= 20; iY++) {
491 if (iLMRegion_ != ilmr)
494 if (iLMModule_ != ilmm)
498 for (
int jxx = 1; jxx <= 5; jxx++) {
503 for (
int jy = 1; jy <= 5; jy++) {
504 int ix = 5 * (iX - 1) + jx;
505 int iy = 5 * (iY - 1) + jy;
510 leaf_ = leaf_->getDaughter(ix, iy, iSector_);
511 leaf_ = leaf_->getDaughter(ix, iy, iLMRegion_);
512 leaf_ = leaf_->getDaughter(ix, iy, iLMModule_);
513 leaf_ = leaf_->getDaughter(ix, iy, iSuperCrystal_);
514 leaf_ = leaf_->getDaughter(ix, iy, iCrystal_);
524 return _trees[iEcalRegion_];
References cms::cuda::assert(), MEEEGeom::crystal(), MEEBGeom::crystal_channel(), MEEBGeom::electronic_channel(), MEChannel::getDaughter(), MEEBGeom::globalCoord(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, MEEBGeom::lm_channel(), MEEEGeom::lmmod(), MEEBGeom::lmr(), MEEEGeom::lmr(), MEEEGeom::sc(), MEEEGeom::sm(), and MEEBGeom::tt_channel().
◆ rootFileName()
◆ runListName()
TString ME::runListName |
( |
int |
lmr, |
|
|
int |
type, |
|
|
int |
color |
|
) |
| |
|
static |
Definition at line 119 of file ME.cc.
122 outfile_ +=
"runlist_";
141 outfile_ +=
"runlist_Test_Pulse";
References iBlue, iGreen, iIRed, and iRed.
◆ smName() [1/2]
TString ME::smName |
( |
int |
ilmr | ) |
|
|
static |
◆ smName() [2/2]
TString ME::smName |
( |
int |
ireg, |
|
|
int |
ism |
|
) |
| |
|
static |
◆ smNameFromDcc()
TString ME::smNameFromDcc |
( |
int |
idcc | ) |
|
|
static |
◆ time()
◆ time_high()
◆ time_low()
◆ timeDiff() [1/2]
◆ timeDiff() [2/2]
◆ _trees
Definition at line 169 of file ME.h.
◆ APDPrimVar
Initial value:= {"FLAG",
"MEAN",
"RMS",
"M3",
"APD_OVER_PNA_MEAN",
"APD_OVER_PNA_RMS",
"APD_OVER_PNA_M3",
"APD_OVER_PNB_MEAN",
"APD_OVER_PNB_RMS",
"APD_OVER_PNB_M3",
"APD_OVER_PN_MEAN",
"APD_OVER_PN_RMS",
"APD_OVER_PN_M3",
"SHAPE_COR",
"ALPHA",
"BETA",
"TIME_MEAN",
"TIME_RMS",
"TIME_M3",
"TIME_NEVT"}
Definition at line 131 of file ME.h.
◆ color
TString ME::color = {"Blue", "Green", "Red", "IRed", "LED1", "LED2"} |
|
static |
◆ granularity
TString ME::granularity = {"R", "SM", "LMR", "LMM", "SC", "C"} |
|
static |
◆ kLowMask
Definition at line 70 of file ME.h.
◆ MTQPrimVar
Initial value:= {
"FIT_METHOD", "MTQ_AMPL", "MTQ_TIME", "MTQ_RISE", "MTQ_FWHM", "MTQ_FW20", "MTQ_FW80", "MTQ_SLIDING"}
Definition at line 139 of file ME.h.
◆ PNPrimVar
Initial value:= {
"FLAG",
"MEAN",
"RMS",
"M3",
"PNA_OVER_PNB_MEAN",
"PNA_OVER_PNB_RMS",
"PNA_OVER_PNB_M3",
}
Definition at line 135 of file ME.h.
◆ region
TString ME::region = {"EE-", "EB-", "EB+", "EE+"} |
|
static |
◆ TPAPDPrimVar
TString ME::TPAPDPrimVar = {"FLAG", "MEAN", "RMS", "M3", "NEVT"} |
|
static |
Definition at line 143 of file ME.h.
◆ TPPNPrimVar
TString ME::TPPNPrimVar = {"GAIN", "MEAN", "RMS", "M3"} |
|
static |
Definition at line 147 of file ME.h.
◆ type
TString ME::type = {"Laser", "TestPulse"} |
|
static |
◆ useElectronicNumbering
bool ME::useElectronicNumbering = false |
|
static |
Definition at line 36 of file ME.h.
static std::vector< int > lmmodFromLmr(int ilmr)
static int ecalRegion(int ilmr)
static int sc(SuperCrysCoord iX, SuperCrysCoord iY)
static int electronic_channel(EBLocalCoord ix, EBLocalCoord iy)
static int crystal(CrysCoord ix, CrysCoord iy)
static const TimeStamp kLowMask
static TString color[iSizeC]
static bool useElectronicNumbering
static std::vector< ME::LMMid > lmmodFromLmr(ME::LMRid ilmr)
static int lmr(EBGlobalCoord ieta, EBGlobalCoord iphi)
static std::pair< int, int > pn(int ilmmod)
static EtaPhiCoord globalCoord(int ism, EBLocalCoord ix, EBLocalCoord iy)
static int sm(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
static std::pair< int, int > dccAndSide(int ilmr)
static std::vector< int > apdRefChannels(int ilmmod)
MEChannel * getDescendant(int ig, int ii)
static std::pair< int, int > pn(int dee, int ilmod)
std::pair< EBGlobalCoord, EBGlobalCoord > EtaPhiCoord
static std::pair< ME::DCCid, ME::DCCid > memFromLmr(ME::LMRid ilmr)
static int dee(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
static TString primPath(int lmr)
static std::pair< int, int > memFromLmr(int ilmr)
static std::vector< MEChannel * > _trees
static TString smName(int ilmr)
static std::vector< int > lmmodFromLmr(int ilmr)
static int lm_channel(EBTTLocalCoord iX, EBTTLocalCoord iY)
static std::pair< int, int > memFromLmr(int ilmr)
static int lmmod(SuperCrysCoord iX, SuperCrysCoord iY)
static int lmr(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
int ism(int ieta, int iphi)
static MEChannel * regTree(int ireg)
static bool isBarrel(int ilmr)
static int tt_channel(EBTTLocalCoord iX, EBTTLocalCoord iY)
static std::vector< int > apdRefChannels(int ilmmod)
static int crystal_channel(EBLocalCoord ix, EBLocalCoord iy)
static void regionAndSector(int ilmr, int &ireg, int &isect, int &idcc, int &iside)
static int lmr(int idcc, int iside)