13 #include "CLHEP/Units/GlobalSystemOfUnits.h"
14 #include "CLHEP/Units/GlobalPhysicalConstants.h"
25 edm::LogInfo(
"HFShower") <<
"HFFibre:: Speed of light in fibre " << cFibre
31 DDValue ddv1(attribute,value,0);
43 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nBinAtt <<
" attL ";
44 for (
int it=0; it<
nBinAtt; it++)
45 edm::LogInfo(
"HFShower") <<
"HFFibre: attL[" << it <<
"] = "
46 <<
attL[it]*cm <<
"(1/cm)";
50 std::vector<double> nvec =
getDDDArray(
"lambLim",sv,nb);
51 lambLim[0] =
static_cast<int>(nvec[0]);
52 lambLim[1] =
static_cast<int>(nvec[1]);
59 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" Long Fibre Length";
60 for (
int it=0; it<nb; it++)
61 edm::LogInfo(
"HFShower") <<
"HFFibre: longFL[" << it <<
"] = "
65 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" Short Fibre Length";
66 for (
int it=0; it<nb; it++)
67 edm::LogInfo(
"HFShower") <<
"HFFibre: shortFL[" << it <<
"] = "
71 <<
" view for " << attribute <<
" matching "
74 <<
"cannot match " << attribute <<
" to " << name <<
"\n";
85 for (
unsigned int i=0;
i<
gpar.size();
i++)
87 <<
gpar[
i]/cm <<
" cm";
92 for (
unsigned int i=0;
i<
radius.size();
i++)
106 double att =
attL[
j];
108 edm::LogInfo(
"HFShower") <<
"HFFibre::attLength for Lambda " << lambda
109 <<
" index " << i <<
" " << j <<
" Att. Length "
117 double zFibre =
zShift(point, depth, fromEndAbs);
120 edm::LogInfo(
"HFShower") <<
"HFFibre::tShift for point " << point
121 <<
" ( depth = " << depth <<
", traversed length = "
122 << zFibre/cm <<
" cm) = " << time/ns <<
" ns";
130 double hR =
sqrt((point.x())*(point.x())+(point.y())*(point.y()));
132 double length = 250*cm;
133 if (fromEndAbs < 0) {
134 zFibre = 0.5*
gpar[1] - point.z();
145 if (fromEndAbs > 0) {
148 double zz = 0.5*
gpar[1] + point.z();
151 if (depth == 2) zFibre +=
gpar[0];
155 edm::LogInfo(
"HFShower") <<
"HFFibre::zShift for point " << point
156 <<
" (R = " << hR/cm <<
" cm, Index = " << ieta
157 <<
", depth = " << depth <<
", Fibre Length = "
158 << length/cm <<
" cm = " << zFibre/cm
169 LogDebug(
"HFShower") <<
"HFFibre:getDDDArray called for " << str
170 <<
" with nMin " << nmin;
177 const std::vector<double> & fvec = value.
doubles();
178 int nval = fvec.size();
181 edm::LogError(
"HFShower") <<
"HFFibre : # of " << str <<
" bins "
182 << nval <<
" < " << nmin <<
" ==> illegal";
184 <<
"nval < nmin for array " << str <<
"\n";
187 if (nval < 1 && nmin != 0) {
188 edm::LogError(
"HFShower") <<
"HFFibre : # of " << str <<
" bins "
189 << nval <<
" < 1 ==> illegal (nmin="
192 <<
"nval < 1 for array " << str <<
"\n";
199 edm::LogError(
"HFShower") <<
"HFFibre : cannot get array " << str;
201 <<
"cannot get array " << str <<
"\n";
203 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 *)
void addFilter(const DDFilter &, DDLogOp op=DDLogOp::AND)
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 *.
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::...
HFFibre(std::string &name, const DDCompactView &cpv, edm::ParameterSet const &p)
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 ...
void setCriteria(const DDValue &nameVal, DDCompOp, DDLogOp l=DDLogOp::AND, bool asString=true, bool merged=true)
*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
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.