38 #include "CLHEP/Geometry/Point3D.h" 39 #include "CLHEP/Geometry/Vector3D.h" 40 #include "CLHEP/Units/GlobalSystemOfUnits.h" 41 #include "CLHEP/Units/GlobalPhysicalConstants.h" 200 std::vector<float> hitVtxX = infoLayer->
hitvtxX();
201 std::vector<float> hitVtxY = infoLayer->
hitvtxY();
202 std::vector<float> hitVtxZ = infoLayer->
hitvtxZ();
203 std::vector<unsigned int> hitDet = infoLayer->
hitDets();
204 std::vector<unsigned int> hitIdx = infoLayer->
hitIndex();
207 std::vector<float> edepLayerEE = infoLayer->
eehgcEdep();
208 std::vector<float> edepLayerHE = infoLayer->
hefhgcEdep();
209 std::vector<float> edepLayerHB = infoLayer->
hebhgcEdep();
212 for(i=0; i<edepLayerEE.size(); i++) {
216 for(i=0; i<edepLayerHE.size(); i++) {
220 for(i=0; i<edepLayerHB.size(); i++) {
230 for (
unsigned int i=0; i<hitVtxX.size(); i++) {
232 hitVtxX.at(i) =
mmtocm*hitVtxX.at(i);
233 hitVtxY.at(i) =
mmtocm*hitVtxY.at(i);
234 hitVtxZ.at(i) =
mmtocm*hitVtxZ.at(i);
242 std::pair<float,float>
xy;
244 int subdet, wafer, celltype, cell;
246 layer, wafer, celltype,cell);
256 id.waferV(),
id.cellU(),
257 id.cellV(),
true,
true);
267 if (zside < 0) zz = -
zz;
268 xx = (zside<0) ? -xy.first : xy.first;
289 }
else if (
dtype == 1) {
334 if (zside == 0) zz = -
zz;
335 double rho = zz*
tan(2.0*atan(
exp(-cell.eta)));
336 double xx = rho *
cos(cell.phi);
337 double yy = rho *
sin(cell.phi);
MonitorElement * heedxVsLayer
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * hebdzVsLayer
MonitorElement * hebdyVsY
MonitorElement * hebdxVsX
edm::EDGetTokenT< PHGCalValidInfo > g4Token_
MonitorElement * hebdzVsZ
MonitorElement * hefdxVsLayer
MonitorElement * hefZG4VsId
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
MonitorElement * hebdxVsLayer
MonitorElement * heeZG4VsId
Sin< T >::type sin(const T &t)
MonitorElement * heedzVsLayer
MonitorElement * hebYG4VsId
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HcalCellType::HcalCell cell(const int &det, const int &zside, const int &depth, const int &etaR, const int &iphi) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
MonitorElement * hebdyVsLayer
std::vector< const HGCalDDDConstants * > hgcGeometry_
MonitorElement * heedxVsX
std::vector< float > hitvtxZ() const
void addDefault(ParameterSetDescription const &psetDescription)
MonitorElement * heedyVsY
MonitorElement * heeXG4VsId
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void setCurrentFolder(std::string const &fullpath)
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
MonitorElement * hefTotEdepStep
MonitorElement * hefYG4VsId
std::vector< float > eehgcEdep() const
Cos< T >::type cos(const T &t)
MonitorElement * hefLayerVsEnStep
MonitorElement * book1D(Args &&...args)
MonitorElement * heeLayerVsEnStep
Tan< T >::type tan(const T &t)
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< float > hitvtxX() const
MonitorElement * hebTotEdepStep
std::vector< float > hitvtxY() const
MonitorElement * book2D(Args &&...args)
std::vector< float > hebhgcEdep() const
MonitorElement * hebZG4VsId
MonitorElement * hefdyVsLayer
MonitorElement * hebLayerVsEnStep
MonitorElement * hefdyVsY
const HcalDDDSimConstants * hcons_
MonitorElement * heeYG4VsId
MonitorElement * hefdxVsX
MonitorElement * heedzVsZ
HGCGeometryValidation(const edm::ParameterSet &)
MonitorElement * hefXG4VsId
std::vector< unsigned int > hitIndex() const
MonitorElement * heedyVsLayer
std::vector< std::string > geometrySource_
~HGCGeometryValidation() override
MonitorElement * heeTotEdepStep
T const * product() const
MonitorElement * hefdzVsZ
MonitorElement * hefdzVsLayer
std::vector< unsigned int > hitDets() const
std::vector< float > hefhgcEdep() const
static void unpackHexagonIndex(const uint32_t &idx, int &subdet, int &z, int &lay, int &wafer, int &celltyp, int &cell)
MonitorElement * hebXG4VsId