13 #include "CLHEP/Units/GlobalSystemOfUnits.h"
24 edm::LogInfo(
"HFShower") <<
"HFFibre:: Speed of light in fibre " << cFibre
30 DDValue ddv1(attribute,value,0);
42 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nBinAtt <<
" attL ";
43 for (
int it=0; it<
nBinAtt; it++)
44 edm::LogInfo(
"HFShower") <<
"HFFibre: attL[" << it <<
"] = "
45 <<
attL[it]*cm <<
"(1/cm)";
49 std::vector<double> nvec =
getDDDArray(
"lambLim",sv,nb);
50 lambLim[0] =
static_cast<int>(nvec[0]);
51 lambLim[1] =
static_cast<int>(nvec[1]);
58 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" Long Fibre Length";
59 for (
int it=0; it<nb; it++)
60 edm::LogInfo(
"HFShower") <<
"HFFibre: longFL[" << it <<
"] = "
64 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" Short Fibre Length";
65 for (
int it=0; it<nb; it++)
66 edm::LogInfo(
"HFShower") <<
"HFFibre: shortFL[" << it <<
"] = "
70 <<
" view for " << attribute <<
" matching "
73 <<
"cannot match " << attribute <<
" to " << name <<
"\n";
77 attribute =
"ReadOutName";
80 DDValue ddv2(attribute,value,0);
91 edm::LogInfo(
"HFShower") <<
"HFFibre: " << nb <<
" gpar (cm)";
92 for (
int i=0;
i<nb;
i++)
94 <<
gpar[
i]/cm <<
" cm";
100 edm::LogInfo(
"HFShower") <<
"HFFibre: radius[" <<
i <<
"] = "
104 <<
" view for " << attribute <<
" matching "
107 <<
"cannot match " << attribute <<
" to " << name <<
"\n";
122 double att =
attL[
j];
124 edm::LogInfo(
"HFShower") <<
"HFFibre::attLength for Lambda " << lambda
125 <<
" index " << i <<
" " << j <<
" Att. Length "
133 double zFibre =
zShift(point, depth, fromEndAbs);
136 edm::LogInfo(
"HFShower") <<
"HFFibre::tShift for point " << point
137 <<
" ( depth = " << depth <<
", traversed length = "
138 << zFibre/cm <<
" cm) = " << time/ns <<
" ns";
146 double hR =
sqrt((point.x())*(point.x())+(point.y())*(point.y()));
148 double length = 250*cm;
149 if (fromEndAbs < 0) {
150 zFibre = 0.5*
gpar[1] - point.z();
161 if (fromEndAbs > 0) {
164 double zz = 0.5*
gpar[1] + point.z();
167 if (depth == 2) zFibre +=
gpar[0];
171 edm::LogInfo(
"HFShower") <<
"HFFibre::zShift for point " << point
172 <<
" (R = " << hR/cm <<
" cm, Index = " << ieta
173 <<
", depth = " << depth <<
", Fibre Length = "
174 << length/cm <<
" cm = " << zFibre/cm
185 LogDebug(
"HFShower") <<
"HFFibre:getDDDArray called for " << str
186 <<
" with nMin " << nmin;
193 const std::vector<double> & fvec = value.
doubles();
194 int nval = fvec.size();
197 edm::LogError(
"HFShower") <<
"HFFibre : # of " << str <<
" bins "
198 << nval <<
" < " << nmin <<
" ==> illegal";
200 <<
"nval < nmin for array " << str <<
"\n";
203 if (nval < 1 && nmin != 0) {
204 edm::LogError(
"HFShower") <<
"HFFibre : # of " << str <<
" bins "
205 << nval <<
" < 1 ==> illegal (nmin="
208 <<
"nval < 1 for array " << str <<
"\n";
215 edm::LogError(
"HFShower") <<
"HFFibre : cannot get array " << str;
217 <<
"cannot get array " << str <<
"\n";
219 std::vector<double> fvec;
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 addFilter(const DDFilter &, log_op op=AND)
double attLength(double lambda)
std::vector< double > radius
type of data representation of DDCompactView
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
double zShift(G4ThreeVector point, int depth, int fromEndAbs=0)
double tShift(G4ThreeVector point, int depth, int fromEndAbs=0)
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
DDsvalues_type mergedSpecifics() const
bool firstChild()
set the current node to the first child ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=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.