Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From cmssw 6 2 x slhc 2014 06 04 0200 #2

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b505183
Fixed missing line in duplication removal
dnash86 May 27, 2014
66cb8a8
Correct GEN-SIM part for Shashlik
May 29, 2014
3872e12
remove the debug option
May 29, 2014
200e1dd
Clean up the HCal numbering code and add one additional functionality
May 29, 2014
b77f292
added modification for neutron backgound study
civanch May 30, 2014
5ef56e9
added fragments for background study
civanch May 30, 2014
a2296df
First version of HGCal geometry
May 30, 2014
48006cb
Clean up the code
May 30, 2014
53e9760
Add files
Jun 1, 2014
16622f4
Validation of Shashlik SimHits
Jun 2, 2014
734f4e5
More files
Jun 2, 2014
c15d9cf
Merged Phase2-hgx6 from repository bsunanda
Jun 2, 2014
727fb4f
Merged Phase2-hgx7 from repository bsunanda
Jun 2, 2014
b9de411
Reco Geometry for HGCal
Jun 2, 2014
94e0b98
also these files needed
Jun 2, 2014
9cf76c7
added more detailed de-excitation for photo-effect and Compton
civanch Jun 2, 2014
e921613
2 more files
Jun 2, 2014
2aaa968
2 more files
Jun 2, 2014
50a6567
2 more files
Jun 2, 2014
fad28e8
Merge pull request #4054 from civanch/neutron_backgound
cmsbuild Jun 3, 2014
902d2ff
Merge pull request #4022 from dnash86/ME0SegmentMatcher-bugfix
cmsbuild Jun 3, 2014
0715781
Merge pull request #4073 from bsunanda/Phase2-shk24
cmsbuild Jun 3, 2014
5440902
Merge pull request #4050 from bsunanda/Phase2-hcx1
cmsbuild Jun 3, 2014
11cdf3a
Merge pull request #4047 from bsunanda/Phase2-shk23
cmsbuild Jun 3, 2014
024713e
Merge pull request #4079 from bsunanda/Phase2-hgx8
cmsbuild Jun 3, 2014
432d908
Merged neutralBkg_forME0_2Jun from repository mileva
Jun 4, 2014
5a57b60
clean-up
Jun 4, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

from Geometry.CMSCommonData.cmsExtendedGeometry2023HGCalConceptXML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingSLHCGeometry_cfi import *
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
trackerSLHCGeometry.applyAlignment = cms.bool(False)

# Calorimeters
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.HGCalTopology_cfi import *
from Geometry.FCalGeometry.HGCalGeometryESProducer_cfi import *
from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from Geometry.CMSCommonData.cmsExtendedGeometry2023HGCalMuon4EtaXML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingSLHCGeometry_cfi import *
from Geometry.HcalCommonData.hcalSimNumberingInitialization_cfi import *
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
trackerSLHCGeometry.applyAlignment = cms.bool(False)

# Calorimeters
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.HGCalTopology_cfi import *
from Geometry.FCalGeometry.HGCalGeometryESProducer_cfi import *
from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from Geometry.CMSCommonData.cmsExtendedGeometry2023HGCalMuonXML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingSLHCGeometry_cfi import *
from Geometry.HcalCommonData.hcalSimNumberingInitialization_cfi import *
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
trackerSLHCGeometry.applyAlignment = cms.bool(False)

# Calorimeters
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.HGCalTopology_cfi import *
from Geometry.FCalGeometry.HGCalGeometryESProducer_cfi import *
from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from Geometry.CMSCommonData.cmsExtendedGeometry2023HGCalXML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingSLHCGeometry_cfi import *
from Geometry.HcalCommonData.hcalSimNumberingInitialization_cfi import *
from Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi import *
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Calorimeters
from Geometry.HGCalCommonData.shashlikNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.ShashlikTopology_cfi import *
from Geometry.CaloTopology.ShashlikGeometryESProducer_cfi import *
from Geometry.FCalGeometry.ShashlikGeometryESProducer_cfi import *

from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Calorimeters
from Geometry.HGCalCommonData.shashlikNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.ShashlikTopology_cfi import *
from Geometry.CaloTopology.ShashlikGeometryESProducer_cfi import *
from Geometry.FCalGeometry.ShashlikGeometryESProducer_cfi import *

from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Calorimeters
from Geometry.HGCalCommonData.shashlikNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.ShashlikTopology_cfi import *
from Geometry.CaloTopology.ShashlikGeometryESProducer_cfi import *
from Geometry.FCalGeometry.ShashlikGeometryESProducer_cfi import *

from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Calorimeters
from Geometry.HGCalCommonData.shashlikNumberingInitialization_cfi import *
from Geometry.CaloEventSetup.ShashlikTopology_cfi import *
from Geometry.CaloTopology.ShashlikGeometryESProducer_cfi import *
from Geometry.FCalGeometry.ShashlikGeometryESProducer_cfi import *

from Geometry.CaloEventSetup.CaloTopology_cfi import *
from Geometry.CaloEventSetup.CaloGeometryBuilder_cfi import *
Expand Down
5 changes: 5 additions & 0 deletions DataFormats/ForwardDetId/interface/HGCEEDetId.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ class HGCEEDetId : public DetId {
HGCEEDetId(const DetId& id);
/** Assignment from a generic cell id */
HGCEEDetId& operator=(const DetId& id);

/** Converter for a geometry cell id
* @param id full EKDetId
*/
HGCEEDetId geometryCell () const {return HGCEEDetId (subdet(), zside(), layer(), sector(), 0, 0);}

/// get the subdetector
ForwardSubdetector subdet() const { return HGCEE; }
Expand Down
6 changes: 6 additions & 0 deletions DataFormats/ForwardDetId/interface/HGCHEDetId.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#ifndef DataFormats_ForwardDetId_HGCHEDetId_H
#define DataFormats_ForwardDetId_HGCHEDetId_H 1

Expand All @@ -19,6 +20,11 @@ class HGCHEDetId : public DetId {
/** Assignment from a generic cell id */
HGCHEDetId& operator=(const DetId& id);

/** Converter for a geometry cell id
* @param id full EKDetId
*/
HGCHEDetId geometryCell () const;

/// get the subdetector
ForwardSubdetector subdet() const { return (ForwardSubdetector)(subdetId());}

Expand Down
5 changes: 5 additions & 0 deletions DataFormats/ForwardDetId/src/HGCHEDetId.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ HGCHEDetId& HGCHEDetId::operator=(const DetId& gen) {
return (*this);
}

HGCHEDetId HGCHEDetId::geometryCell () const {
int sub = ((subdet() == HGCHEF) ? 0 : ((id_>>18)&0x1));
return HGCHEDetId(subdet(), zside(), layer(), sector(), sub, 0);
}

std::ostream& operator<<(std::ostream& s,const HGCHEDetId& id) {
if (id.subdet() == HGCHEF || id.subdet() == HGCHEB ||
id.subdet() == HGCHET) {
Expand Down
2 changes: 1 addition & 1 deletion Geometry/CaloEventSetup/plugins/CaloGeometryBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "Geometry/EcalAlgo/interface/EcalBarrelGeometry.h"
#include "Geometry/EcalAlgo/interface/EcalEndcapGeometry.h"
#include "Geometry/EcalAlgo/interface/EcalPreshowerGeometry.h"
#include "Geometry/CaloTopology/interface/ShashlikGeometry.h"
#include "Geometry/FCalGeometry/interface/ShashlikGeometry.h"
#include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h"
#include "Geometry/HcalTowerAlgo/interface/CaloTowerGeometry.h"
#include "Geometry/ForwardGeometry/interface/CastorGeometry.h"
Expand Down
4 changes: 4 additions & 0 deletions Geometry/CaloEventSetup/plugins/HGCalTopologyBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include "Geometry/CaloTopology/interface/CaloSubdetectorTopology.h"
#include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h"

//#define DebugLog

//
// class decleration
//
Expand Down Expand Up @@ -93,7 +95,9 @@ HGCalTopologyBuilder::produce(const IdealGeometryRecord& iRecord ) {
const HGCalDDDConstants & hgdc = (*pHGDC);

ReturnType ct ( new HGCalTopology(hgdc, subdet_, halfType_) ) ;
#ifdef DebugLog
std::cout << "Create HGCalTopology(hgdc,subdet,type)" << std::endl;
#endif
return ct ;
}

Expand Down
2 changes: 1 addition & 1 deletion Geometry/CaloEventSetup/python/HGCalTopology_cfi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import FWCore.ParameterSet.Config as cms

#
# This cfi should be included to build the Shashlik Topology
# This cfi should be included to build the HGCal Topologies
#
HGCalEETopologyBuilder = cms.ESProducer("HGCalTopologyBuilder",
Name = cms.untracked.string("HGCalEESensitive"),
Expand Down
6 changes: 3 additions & 3 deletions Geometry/CaloGeometry/interface/CaloCellGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class CaloCellGeometry
virtual const CornersVec& getCorners() const = 0 ;

/// Returns the position of reference for this cell
const GlobalPoint& getPosition() const {return m_refPoint ; }
float etaPos() const { return m_eta;}
float phiPos() const { return m_phi;}
virtual const GlobalPoint& getPosition() const {return m_refPoint ; }
virtual float etaPos() const { return m_eta;}
virtual float phiPos() const { return m_phi;}



Expand Down
88 changes: 88 additions & 0 deletions Geometry/CaloGeometry/interface/FlatTrd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#ifndef GeometryCaloGeometryFlatTrd_h
#define GeometryCaloGeometryFlatTrd_h

#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include <CLHEP/Geometry/Point3D.h>
#include <CLHEP/Geometry/Plane3D.h>
#include <CLHEP/Geometry/Vector3D.h>
#include <CLHEP/Geometry/Transform3D.h>
#include <vector>

/**

\class FlatTrd

\brief A base class to handle the particular shape of HGCal volumes.

*/

class FlatTrd GCC11_FINAL : public CaloCellGeometry {
public:

typedef CaloCellGeometry::CCGFloat CCGFloat ;
typedef CaloCellGeometry::Pt3D Pt3D ;
typedef CaloCellGeometry::Pt3DVec Pt3DVec ;
typedef CaloCellGeometry::Tr3D Tr3D ;

FlatTrd( void );

FlatTrd( const FlatTrd& tr ) ;

FlatTrd& operator=( const FlatTrd& tr ) ;

FlatTrd( const CornersMgr* cMgr ,
const GlobalPoint& fCtr ,
const GlobalPoint& bCtr ,
const GlobalPoint& cor1 ,
const CCGFloat* parV ) ;

FlatTrd( const CornersVec& corn ,
const CCGFloat* par ) ;

FlatTrd( const FlatTrd& tr, const Pt3D& local) ;

virtual ~FlatTrd() ;

virtual const GlobalPoint& getPosition() const { return m_global; }
GlobalPoint getPosition( const Pt3D& local ) const;
virtual float etaPos() const { return m_global.eta(); }
virtual float phiPos() const { return m_global.phi(); }
Pt3D getLocal( const GlobalPoint& global ) const;

virtual const CornersVec& getCorners() const ;

// Return thetaAxis polar angle of axis of the crystal
CCGFloat getThetaAxis() const ;

// Return phiAxis azimuthal angle of axis of the crystal
CCGFloat getPhiAxis() const ;

const GlobalVector& axis() const ;

virtual void vocalCorners( Pt3DVec& vec ,
const CCGFloat* pv ,
Pt3D& ref ) const ;

static void createCorners( const std::vector<CCGFloat>& pv ,
const Tr3D& tr ,
std::vector<GlobalPoint>& co ) ;

static void localCorners( Pt3DVec& vec ,
const CCGFloat* pv ,
Pt3D& ref ) ;

virtual void getTransform( Tr3D& tr, Pt3DVec* lptr ) const ;

private:
GlobalVector makeAxis( void );

const GlobalPoint backCtr( void ) const;
GlobalVector m_axis;
Pt3D m_corOne, m_local;
GlobalPoint m_global;
Tr3D m_tr;
};

std::ostream& operator<<( std::ostream& s, const FlatTrd& cell ) ;

#endif
Loading