CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
ME Class Reference

#include <ME.h>

Classes

struct  Header
 
struct  Settings
 

Public Types

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
}
 

Public Member Functions

virtual ~ME ()
 

Static Public Member Functions

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::LMMidlmmodFromDcc (ME::DCCid idcc)
 
static std::vector< ME::LMMidlmmodFromLmr (ME::LMRid ilmr)
 
static int lmr (int idcc, int iside)
 
static MEChannellmrTree (int ilmr)
 
static std::vector< ME::DCCidmemFromDcc (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 MEChannelregTree (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 std::vector< TimetimeDiff (Time t1, Time t2, short int &sign)
 
static float timeDiff (Time t1, Time t0, int tunit=iHour)
 

Static Public Attributes

static std::vector< MEChannel * > _trees = std::vector<MEChannel*>(4,(MEChannel*)0)
 
static TString APDPrimVar [iSizeAPD]
 
static TString color [iSizeC]
 
static TString granularity [iSizeG]
 
static const TimeStamp kLowMask =0xFFFFFFFF
 
static TString MTQPrimVar [iSizeMTQ]
 
static TString PNPrimVar [iSizePN]
 
static TString region [4]
 
static TString TPAPDPrimVar [iSizeTPAPD]
 
static TString TPPNPrimVar [iSizeTPPN]
 
static TString type [iSizeT]
 
static bool useElectronicNumbering = false
 

Detailed Description

Definition at line 11 of file ME.h.

Member Typedef Documentation

typedef int ME::DCCid

Definition at line 42 of file ME.h.

typedef int ME::LMMid

Definition at line 44 of file ME.h.

typedef int ME::LMRid

Definition at line 43 of file ME.h.

typedef int ME::PNid

Definition at line 45 of file ME.h.

typedef unsigned long ME::Time

Definition at line 74 of file ME.h.

typedef unsigned long long ME::TimeStamp

Definition at line 75 of file ME.h.

Member Enumeration Documentation

anonymous enum
Enumerator
iLmfLaserRun 
iLmfLaserConfig 
iLmfLaserPulse 
iLmfLaserPrim 
iLmfLaserPnPrim 
iLmfTestPulseRun 
iLmfTestPulseConfig 
iLmfTestPulsePrim 
iLmfTestPulsePnPrim 
iSizeLmf 

Definition at line 91 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 103 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 113 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 119 of file ME.h.

anonymous enum
Enumerator
iTPAPD_FLAG 
iTPAPD_MEAN 
iTPAPD_RMS 
iTPAPD_M3 
iTPAPD_NEVT 
iSizeTPAPD 

Definition at line 126 of file ME.h.

anonymous enum
Enumerator
iTPPN_GAIN 
iTPPN_MEAN 
iTPPN_RMS 
iTPPN_M3 
iSizeTPPN 

Definition at line 131 of file ME.h.

enum ME::Color
Enumerator
iBlue 
iGreen 
iRed 
iIRed 
iLED1 
iLED2 
iSizeC 

Definition at line 70 of file ME.h.

70 { iBlue=0, iGreen, iRed, iIRed, iLED1, iLED2, iSizeC };
Definition: ME.h:70
Definition: ME.h:70
Definition: ME.h:70
Definition: ME.h:70
Definition: ME.h:70
Definition: ME.h:70
Definition: ME.h:70
enum ME::EcalElec
Enumerator
iElectronicChannel 
iHVChannel 
iLVChannel 
iSizeU 

Definition at line 21 of file ME.h.

enum ME::EcalRegion
Enumerator
iEEM 
iEBM 
iEBP 
iEEP 
iSizeE 

Definition at line 16 of file ME.h.

16 { iEEM=0, iEBM, iEBP, iEEP, iSizeE };
Definition: ME.h:16
Definition: ME.h:16
Definition: ME.h:16
Definition: ME.h:16
Definition: ME.h:16
enum ME::EcalUnit
Enumerator
iEcalRegion 
iSector 
iLMRegion 
iLMModule 
iSuperCrystal 
iCrystal 
iSizeG 

Definition at line 18 of file ME.h.

enum ME::Gain
Enumerator
iVfeGain12 
iVfeGain6 
iVfeGain1 
iSizeVfeGain 

Definition at line 71 of file ME.h.

enum ME::PN
Enumerator
iPNA 
iPNB 

Definition at line 46 of file ME.h.

46 { iPNA=0, iPNB };
Definition: ME.h:46
Definition: ME.h:46
enum ME::PNGain
Enumerator
iPnGain1 
iPnGain16 
iSizePnGain 

Definition at line 72 of file ME.h.

enum ME::RunType
Enumerator
iLaser 
iTestPulse 
iSizeT 

Definition at line 69 of file ME.h.

69 { iLaser=0, iTestPulse, iSizeT };
Definition: ME.h:69
Definition: ME.h:69
enum ME::TUnit
Enumerator
iDay 
iHour 
iMinute 
iSecond 
iSizeTU 

Definition at line 136 of file ME.h.

Definition: ME.h:136
Definition: ME.h:136

Constructor & Destructor Documentation

virtual ME::~ME ( )
inlinevirtual

Definition at line 154 of file ME.h.

154 {}

Member Function Documentation

std::vector< int > ME::apdRefChannels ( ME::LMMid  ilmmod,
ME::LMRid  ilmr 
)
static

Definition at line 588 of file ME.cc.

std::pair< int, int > ME::dccAndSide ( int  ilmr)
static

Definition at line 313 of file ME.cc.

int ME::ecalRegion ( int  ilmr)
static

Definition at line 249 of file ME.cc.

bool ME::isBarrel ( int  ilmr)
static

Definition at line 569 of file ME.cc.

TString ME::lmdataPath ( int  lmr)
static

Definition at line 62 of file ME.cc.

std::vector< int > ME::lmmodFromDcc ( ME::DCCid  idcc)
static

Definition at line 623 of file ME.cc.

std::vector< int > ME::lmmodFromLmr ( ME::LMRid  ilmr)
static

Definition at line 598 of file ME.cc.

int ME::lmr ( int  idcc,
int  iside 
)
static

Definition at line 261 of file ME.cc.

MEChannel * ME::lmrTree ( int  ilmr)
static

Definition at line 435 of file ME.cc.

std::vector< int > ME::memFromDcc ( ME::DCCid  idcc)
static

Definition at line 608 of file ME.cc.

Referenced by TMem::init().

std::pair< int, int > ME::memFromLmr ( ME::LMRid  ilmr)
static

Definition at line 579 of file ME.cc.

Referenced by TMem::Mem().

TString ME::path ( )
static

Definition at line 82 of file ME.cc.

std::pair< int, int > ME::pn ( ME::LMRid  ilmr,
ME::LMMid  ilmmod,
ME::PN  ipn 
)
static

Definition at line 648 of file ME.cc.

TString ME::primPath ( int  lmr)
static

Definition at line 72 of file ME.cc.

void ME::regionAndSector ( int  ilmr,
int &  ireg,
int &  isect,
int &  idcc,
int &  iside 
)
static

Definition at line 348 of file ME.cc.

MEChannel * ME::regTree ( int  ireg)
static

Definition at line 441 of file ME.cc.

TString ME::rootFileName ( ME::Header  header,
ME::Settings  settings 
)
static

Definition at line 88 of file ME.cc.

TString ME::runListName ( int  lmr,
int  type,
int  color 
)
static

Definition at line 118 of file ME.cc.

TString ME::smName ( int  ilmr)
static

Definition at line 415 of file ME.cc.

TString ME::smName ( int  ireg,
int  ism 
)
static

Definition at line 387 of file ME.cc.

TString ME::smNameFromDcc ( int  idcc)
static

Definition at line 428 of file ME.cc.

ME::Time ME::time ( float  dt,
Time  t0,
int  tunit = iHour 
)
static

Definition at line 208 of file ME.cc.

ME::Time ME::time_high ( TimeStamp  t)
static

Definition at line 238 of file ME.cc.

ME::Time ME::time_low ( TimeStamp  t)
static

Definition at line 232 of file ME.cc.

std::vector< ME::Time > ME::timeDiff ( Time  t1,
Time  t2,
short int &  sign 
)
static

Definition at line 142 of file ME.cc.

float ME::timeDiff ( Time  t1,
Time  t0,
int  tunit = iHour 
)
static

Definition at line 176 of file ME.cc.

Member Data Documentation

std::vector< MEChannel * > ME::_trees = std::vector<MEChannel*>(4,(MEChannel*)0)
static

Definition at line 156 of file ME.h.

TString ME::APDPrimVar
static
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 110 of file ME.h.

TString ME::color
static
Initial value:
= {
"Blue", "Green", "Red", "IRed", "LED1", "LED2"
}

Definition at line 145 of file ME.h.

TString ME::granularity
static
Initial value:
= {
"R", "SM", "LMR", "LMM", "SC", "C"
}

Definition at line 60 of file ME.h.

const ME::TimeStamp ME::kLowMask =0xFFFFFFFF
static

Definition at line 76 of file ME.h.

TString ME::MTQPrimVar
static
Initial value:
= {
"FIT_METHOD",
"MTQ_AMPL", "MTQ_TIME", "MTQ_RISE",
"MTQ_FWHM", "MTQ_FW20", "MTQ_FW80", "MTQ_SLIDING"
}

Definition at line 123 of file ME.h.

TString ME::PNPrimVar
static
Initial value:
= {
"FLAG", "MEAN", "RMS", "M3",
"PNA_OVER_PNB_MEAN", "PNA_OVER_PNB_RMS", "PNA_OVER_PNB_M3",
}

Definition at line 116 of file ME.h.

TString ME::region
static
Initial value:
= {
"EE-", "EB-", "EB+", "EE+"
}

Definition at line 57 of file ME.h.

TString ME::TPAPDPrimVar
static
Initial value:
= {
"FLAG", "MEAN", "RMS", "M3", "NEVT"
}

Definition at line 128 of file ME.h.

TString ME::TPPNPrimVar
static
Initial value:
= {
"GAIN", "MEAN", "RMS", "M3"
}

Definition at line 133 of file ME.h.

TString ME::type
static
Initial value:
= {
"Laser", "TestPulse"
}

Definition at line 144 of file ME.h.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

bool ME::useElectronicNumbering = false
static

Definition at line 40 of file ME.h.