13 #include "CLHEP/Units/GlobalSystemOfUnits.h" 14 #include "CLHEP/Units/GlobalPhysicalConstants.h" 25 edm::LogInfo(
"HFShower") <<
"HFFibre:: Speed of light in fibre " << cFibre
40 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nBinAtt <<
" attL ";
41 for (
int it=0; it<
nBinAtt; it++)
42 edm::LogInfo(
"HFShower") <<
"HFFibre: attL[" << it <<
"] = " 43 <<
attL[it]*cm <<
"(1/cm)";
47 std::vector<double> nvec =
getDDDArray(
"lambLim",sv,nb);
48 lambLim[0] =
static_cast<int>(nvec[0]);
49 lambLim[1] =
static_cast<int>(nvec[1]);
56 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" Long Fibre Length";
57 for (
int it=0; it<nb; it++)
58 edm::LogInfo(
"HFShower") <<
"HFFibre: longFL[" << it <<
"] = " 62 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" Short Fibre Length";
63 for (
int it=0; it<nb; it++)
64 edm::LogInfo(
"HFShower") <<
"HFFibre: shortFL[" << it <<
"] = " 68 <<
" view for " << attribute <<
" matching " 71 <<
"cannot match " << attribute <<
" to " << name <<
"\n";
82 for (
unsigned int i=0;
i<
gpar.size();
i++)
84 <<
gpar[
i]/cm <<
" cm";
89 for (
unsigned int i=0;
i<
radius.size();
i++)
103 double att =
attL[j];
105 edm::LogInfo(
"HFShower") <<
"HFFibre::attLength for Lambda " << lambda
106 <<
" index " << i <<
" " << j <<
" Att. Length " 114 double zFibre =
zShift(point, depth, fromEndAbs);
117 edm::LogInfo(
"HFShower") <<
"HFFibre::tShift for point " << point
118 <<
" ( depth = " << depth <<
", traversed length = " 119 << zFibre/cm <<
" cm) = " << time/ns <<
" ns";
127 double hR =
sqrt((point.x())*(point.x())+(point.y())*(point.y()));
129 double length = 250*cm;
130 if (fromEndAbs < 0) {
131 zFibre = 0.5*
gpar[1] - point.z();
142 if (fromEndAbs > 0) {
145 double zz = 0.5*
gpar[1] + point.z();
148 if (depth == 2) zFibre +=
gpar[0];
152 edm::LogInfo(
"HFShower") <<
"HFFibre::zShift for point " << point
153 <<
" (R = " << hR/cm <<
" cm, Index = " << ieta
154 <<
", depth = " << depth <<
", Fibre Length = " 155 << length/cm <<
" cm = " << zFibre/cm
166 LogDebug(
"HFShower") <<
"HFFibre:getDDDArray called for " << str
167 <<
" with nMin " << nmin;
174 const std::vector<double> & fvec = value.
doubles();
175 int nval = fvec.size();
178 edm::LogError(
"HFShower") <<
"HFFibre : # of " << str <<
" bins " 179 << nval <<
" < " << nmin <<
" ==> illegal";
181 <<
"nval < nmin for array " << str <<
"\n";
184 if (nval < 1 && nmin != 0) {
185 edm::LogError(
"HFShower") <<
"HFFibre : # of " << str <<
" bins " 186 << nval <<
" < 1 ==> illegal (nmin=" 189 <<
"nval < 1 for array " << str <<
"\n";
198 <<
"cannot get array " << str <<
"\n";
200 std::vector<double> fvec;
double tShift(const G4ThreeVector &point, int depth, int fromEndAbs=0)
std::vector< double > gpar
T getParameter(std::string const &) const
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &, int &)
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
void initRun(HcalDDDSimConstants *)
double attLength(double lambda)
double zShift(const G4ThreeVector &point, int depth, int fromEndAbs=0)
std::vector< double > radius
type of data representation of DDCompactView
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
HFFibre(const std::string &name, const DDCompactView &cpv, edm::ParameterSet const &p)
const std::vector< double > & getRTableHF() const
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
std::vector< double > shortFL
std::vector< double > attL
const std::vector< double > & getGparHF() const
DDsvalues_type mergedSpecifics() const
bool firstChild()
set the current node to the first child ...
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
std::vector< double > longFL