CMS 3D CMS Logo

TEBParameters.cc

Go to the documentation of this file.
00001 //----------Author's Name:FX Gentit and B.Fabbro  DAPNIA/SPP CEN Saclay
00002 //----------Copyright:Those valid for CEA software
00003 //----------Modified:07/06/2007
00004 
00005 #include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEBParameters.h"
00006 
00007 ClassImp(TEBParameters)
00008 //____________________________________________________________________________
00009 
00010 TEBParameters::TEBParameters(){
00011 // Constructor without argument. Call to Init()
00012 
00013   Init();
00014 }
00015 
00016 TEBParameters::~TEBParameters() {
00017 //destructor
00018 
00019 }
00020 
00021 void TEBParameters::Init() {
00022 //Set default values in all variables and init the counters fxxxCalc
00023 
00024   //--------------------------------- INIT parameters
00025 
00026   //....................... CMS/ECAL parameters
00027 
00028   fMaxSMInBarPlus  = (Int_t)18;                                // Maximum number of SuperModules in the barrel+
00029   fMaxSMInBarMinus = (Int_t)18;                                // Maximum number of SuperModules in the barrel- 
00030   fMaxSMInBarrel   = fMaxSMInBarPlus + fMaxSMInBarMinus;       // Maximum number of SuperModules in the barrel
00031 
00032   fMaxTowEtaInSM = (Int_t)17;                                  // Maximum number of towers in eta in a SuperModule
00033   fMaxTowPhiInSM = (Int_t)4;                                   // Maximum number of towers in phi in a SuperModule
00034   fMaxTowInSM    = (Int_t)fMaxTowEtaInSM*fMaxTowPhiInSM;       // Maximum number of towers in a SuperModule
00035 
00036   fMaxCrysEtaInTow = (Int_t)5;                                 // Maximum number of crystals in eta in a tower
00037   fMaxCrysPhiInTow = (Int_t)5;                                 // Maximum number of crystals in phi in a tower
00038   fMaxCrysInTow    = (Int_t)fMaxCrysEtaInTow*fMaxCrysPhiInTow; // Maximum number of crystals in a tower 
00039 
00040   fMaxCrysEtaInSM = (Int_t)fMaxTowEtaInSM*fMaxCrysEtaInTow;    // Maximum number of crystals in eta in a SuperModule
00041   fMaxCrysPhiInSM = (Int_t)fMaxTowPhiInSM*fMaxCrysPhiInTow;    // Maximum number of crystals in phi in a SuperModule
00042   fMaxCrysInSM    = (Int_t)fMaxTowInSM*fMaxCrysInTow;          // Maximum number of crystals in a SuperModule
00043 
00044   fMaxSampADC  = (Int_t)10;                                    // Maximum number of samples ADC
00045 
00046   fMaxEvtsInBurstPedRun = (Int_t)150;                          // Maximum number of events per burst in Pedestal Runs
00047 }
00048 
00049 //=========================================================================
00050 //
00051 //                 METHODS TO GET THE PARAMETERS
00052 //
00053 //=========================================================================
00054 
00055 
00056 //----------------------------------------------- max SM in barrel
00057 Int_t TEBParameters::MaxSMInBarPlus()
00058 {
00059 // Gives the maximum number of super-modules in the barrel+
00060 
00061   Int_t MaxSMInBarPlus = fMaxSMInBarPlus;
00062   return MaxSMInBarPlus;
00063 }
00064 
00065 Int_t TEBParameters::MaxSMInBarMinus()
00066 {
00067 // Gives the maximum number of super-modules in the barrel-
00068 
00069   Int_t MaxSMInBarMinus = fMaxSMInBarMinus;
00070   return MaxSMInBarMinus;
00071 }
00072 
00073 Int_t TEBParameters::MaxSMInBarrel()
00074 {
00075 // Gives the maximum number of super-modules in the barrel
00076 
00077   Int_t MaxSMInBarrel = fMaxSMInBarrel;
00078   return MaxSMInBarrel;
00079 }
00080 
00081 
00082 //----------------------------------------------- max tow in SM
00083 Int_t TEBParameters::MaxTowEtaInSM()
00084 {
00085 // Gives the maximum number of towers in eta in a SuperModule
00086 
00087   Int_t MaxSMTowEta = fMaxTowEtaInSM;
00088   return MaxSMTowEta;
00089 }
00090 
00091 Int_t TEBParameters::MaxTowPhiInSM()
00092 {
00093 // Gives the maximum number of towers in phi in a SuperModule
00094 
00095   Int_t MaxSMTowPhi = fMaxTowPhiInSM;
00096   return MaxSMTowPhi;
00097 }
00098 
00099 Int_t TEBParameters::MaxTowInSM()
00100 {
00101 // Gives the maximum number of towers in a SuperModule
00102 
00103   Int_t MaxSMTow = fMaxTowInSM;
00104   return MaxSMTow;
00105 }
00106 
00107 //------------------------------------------------ Max Crys in tower
00108 Int_t TEBParameters::MaxCrysEtaInTow()
00109 {
00110 // Gives the maximum  number of crystals in eta a tower
00111 
00112   Int_t MaxTowEchaEta = fMaxCrysEtaInTow;
00113   return MaxTowEchaEta;
00114 }
00115 
00116 Int_t TEBParameters::MaxCrysPhiInTow()
00117 {
00118 // Gives the maximum  number of crystals in phi in a tower
00119 
00120   Int_t MaxTowEchaPhi = fMaxCrysPhiInTow;
00121   return MaxTowEchaPhi;
00122 }
00123 
00124 Int_t TEBParameters::MaxCrysInTow()
00125 {
00126 // Gives the maximum  number of crystals in a tower
00127 
00128   Int_t MaxTowEcha = fMaxCrysInTow;
00129   return MaxTowEcha;
00130 }
00131 //---------------------------------------------- Max crys in SM
00132 Int_t TEBParameters::MaxCrysEtaInSM()
00133 {
00134 // Gives the maximum  number of crystals in eta a SuperModule
00135 
00136   Int_t MaxSMEchaEta = fMaxCrysEtaInSM;
00137   return MaxSMEchaEta;
00138 }
00139 
00140 Int_t TEBParameters::MaxCrysPhiInSM()
00141 {
00142 // Gives the maximum  number of crystals in phi in a SuperModule
00143 
00144   Int_t MaxSMEchaPhi = fMaxCrysPhiInSM;
00145   return MaxSMEchaPhi;
00146 }
00147 //
00148 Int_t TEBParameters::MaxCrysInSM()
00149 {
00150 // Gives the maximum  number of crystals in a SuperModule
00151 
00152   Int_t MaxSMEcha = fMaxCrysInSM;
00153   return MaxSMEcha;
00154 }
00155 
00156 //------------------------------------------ Max samp ADC
00157 Int_t TEBParameters::MaxSampADC()
00158 {
00159 // Gives the maximum  number of samples ADC
00160 
00161   Int_t MaxSampADC = fMaxSampADC;
00162   return MaxSampADC;
00163 }

Generated on Tue Jun 9 17:25:17 2009 for CMSSW by  doxygen 1.5.4