38 #include "CLHEP/Geometry/Point3D.h" 39 #include "CLHEP/Geometry/Vector3D.h" 40 #include "CLHEP/Units/GlobalSystemOfUnits.h" 41 #include "CLHEP/Units/GlobalPhysicalConstants.h" 202 std::vector<float> hitVtxX = infoLayer->
hitvtxX();
203 std::vector<float> hitVtxY = infoLayer->
hitvtxY();
204 std::vector<float> hitVtxZ = infoLayer->
hitvtxZ();
205 std::vector<unsigned int> hitDet = infoLayer->
hitDets();
206 std::vector<unsigned int> hitIdx = infoLayer->
hitIndex();
209 std::vector<float> edepLayerEE = infoLayer->
eehgcEdep();
210 std::vector<float> edepLayerHE = infoLayer->
hefhgcEdep();
211 std::vector<float> edepLayerHB = infoLayer->
hebhgcEdep();
214 for(i=0; i<edepLayerEE.size(); i++) {
218 for(i=0; i<edepLayerHE.size(); i++) {
222 for(i=0; i<edepLayerHB.size(); i++) {
232 for (
unsigned int i=0; i<hitVtxX.size(); i++) {
234 hitVtxX.at(i) =
mmtocm*hitVtxX.at(i);
235 hitVtxY.at(i) =
mmtocm*hitVtxY.at(i);
236 hitVtxZ.at(i) =
mmtocm*hitVtxZ.at(i);
244 std::pair<float,float>
xy;
246 int subdet, wafer, celltype, cell;
248 layer, wafer, celltype,cell);
258 id.waferV(),
id.cellU(),
259 id.cellV(),
true,
true);
269 if (zside < 0) zz = -
zz;
270 xx = (zside<0) ? -xy.first : xy.first;
291 }
else if (
dtype == 1) {
336 if (zside == 0) zz = -
zz;
337 double rho = zz*
tan(2.0*atan(
exp(-cell.eta)));
338 double xx = rho *
cos(cell.phi);
339 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
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
#define DEFINE_FWK_MODULE(type)
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