Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part 1 of MTD Tracking Integration: Topologies and Geometries
- Loading branch information
Showing
211 changed files
with
12,790 additions
and
559 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
CondFormats/AlignmentRecord/interface/MTDAlignmentErrorExtendedRcd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef MTDALIGNMENTERROREXTENDEDRCD_H | ||
#define MTDALIGNMENTERROREXTENDEDRCD_H | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class MTDAlignmentErrorExtendedRcd : public edm::eventsetup::EventSetupRecordImplementation<MTDAlignmentErrorExtendedRcd> {}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef MTDALIGNMENTERRORRCD_H | ||
#define MTDALIGNMENTERRORRCD_H | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class MTDAlignmentErrorRcd : public edm::eventsetup::EventSetupRecordImplementation<MTDAlignmentErrorRcd> {}; | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef MTDALIGNMENTRCD_H | ||
#define MTDALIGNMENTRCD_H | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class MTDAlignmentRcd : public edm::eventsetup::EventSetupRecordImplementation<MTDAlignmentRcd> {}; | ||
|
||
#endif | ||
|
8 changes: 8 additions & 0 deletions
8
CondFormats/AlignmentRecord/interface/MTDSurfaceDeformationRcd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef MTDSURFACEDEFORMATIONRCD_H | ||
#define MTDSURFACEDEFORMATIONRCD_H | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class MTDSurfaceDeformationRcd : public edm::eventsetup::EventSetupRecordImplementation<MTDSurfaceDeformationRcd> {}; | ||
|
||
#endif |
3 changes: 3 additions & 0 deletions
3
CondFormats/AlignmentRecord/src/MTDAlignmentErrorExtendedRcd.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "CondFormats/AlignmentRecord/interface/MTDAlignmentErrorExtendedRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
EVENTSETUP_RECORD_REG(MTDAlignmentErrorExtendedRcd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: MTDGeometry | ||
// Class : MTDAlignmentErrorRecord | ||
// | ||
// Implementation: | ||
// <Notes on implementation> | ||
// | ||
|
||
#include "CondFormats/AlignmentRecord/interface/MTDAlignmentErrorRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
EVENTSETUP_RECORD_REG(MTDAlignmentErrorRcd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: MTDGeometry | ||
// Class : MTDAlignmentRecord | ||
// | ||
// Implementation: | ||
// <Notes on implementation> | ||
// | ||
|
||
#include "CondFormats/AlignmentRecord/interface/MTDAlignmentRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
EVENTSETUP_RECORD_REG(MTDAlignmentRcd); |
12 changes: 12 additions & 0 deletions
12
CondFormats/AlignmentRecord/src/MTDSurfaceDeformationRcd.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: MTDGeometry | ||
// Class : MTDSurfaceDeformationRecord | ||
// | ||
// Implementation: | ||
// <Notes on implementation> | ||
// | ||
|
||
#include "CondFormats/AlignmentRecord/interface/MTDSurfaceDeformationRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
EVENTSETUP_RECORD_REG(MTDSurfaceDeformationRcd); |
57 changes: 57 additions & 0 deletions
57
CondFormats/GeometryObjects/interface/PGeometricTimingDet.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#ifndef CondFormats_PGeometricTimingDet_h | ||
#define CondFormats_PGeometricTimingDet_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include <vector> | ||
#include <string> | ||
|
||
class PGeometricTimingDet{ | ||
|
||
public: | ||
PGeometricTimingDet() { }; | ||
~PGeometricTimingDet() { }; | ||
|
||
struct Item{ | ||
std::string name_; // save only the name, not the namespace. | ||
std::string ns_; // save only the name, not the namespace. | ||
|
||
double x_; | ||
double y_; | ||
double z_; | ||
double phi_; | ||
double rho_; | ||
// fill as you will but intent is rotation matrix A where first number is row and second number is column | ||
double a11_, a12_, a13_, a21_, a22_, a23_, a31_, a32_, a33_; | ||
double params_0,params_1,params_2,params_3,params_4,params_5,params_6,params_7,params_8,params_9,params_10; | ||
double radLength_; | ||
double xi_; | ||
double pixROCRows_; | ||
double pixROCCols_; | ||
double pixROCx_; | ||
double pixROCy_; | ||
double siliconAPVNum_; | ||
|
||
int level_; // goes like 1, 2, 3, 4, 4, 4, 3, 4, 4, 3, 4, 4, 4, 1, 2, 3, etc. | ||
int shape_; | ||
// nav_type _ddd; DO NOT SAVE! | ||
// DDName _ddname; DO NOT SAVE! | ||
int type_; | ||
|
||
int numnt_; | ||
int nt0_, nt1_, nt2_, nt3_, nt4_, nt5_, nt6_, nt7_, nt8_, nt9_, nt10_; | ||
|
||
int geographicalID_; // to be converted to DetId | ||
bool stereo_; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
std::vector<Item> pgeomdets_; | ||
|
||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif | ||
|
35 changes: 35 additions & 0 deletions
35
CondFormats/GeometryObjects/interface/PGeometricTimingDetExtra.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef CondFormats_PGeometricTimingDetExtra_h | ||
#define CondFormats_PGeometricTimingDetExtra_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include <vector> | ||
#include <string> | ||
|
||
class PGeometricTimingDetExtra{ | ||
|
||
public: | ||
PGeometricTimingDetExtra() { }; | ||
~PGeometricTimingDetExtra() { }; | ||
|
||
struct Item{ | ||
int geographicalId_; // to be converted to DetId | ||
// std::vector< DDExpandedNode > parents_; DO NOT SAVE! | ||
//GeoHistory _parents; | ||
double volume_; | ||
double density_; | ||
double weight_; | ||
int copy_; | ||
std::string material_; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
std::vector<Item> pgdes_; | ||
|
||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef CondFormats_GeometryObjects_PMTDParameters_h | ||
#define CondFormats_GeometryObjects_PMTDParameters_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
class PMTDParameters | ||
{ | ||
public: | ||
PMTDParameters( void ) { } | ||
~PMTDParameters( void ) { } | ||
|
||
struct Item | ||
{ | ||
int id_; | ||
std::vector<int> vpars_; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
std::vector<Item> vitems_; | ||
std::vector<int> vpars_; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif |
5 changes: 5 additions & 0 deletions
5
CondFormats/GeometryObjects/src/T_EventSetup_PGeometricTimingDet.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "CondFormats/GeometryObjects/interface/PGeometricTimingDet.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(PGeometricTimingDet); | ||
|
5 changes: 5 additions & 0 deletions
5
CondFormats/GeometryObjects/src/T_EventSetup_PGeometricTimingDetExtra.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "CondFormats/GeometryObjects/interface/PGeometricTimingDetExtra.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(PGeometricTimingDetExtra); | ||
|
4 changes: 4 additions & 0 deletions
4
CondFormats/GeometryObjects/src/T_EventSetup_PMTDParameters.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "CondFormats/GeometryObjects/interface/PMTDParameters.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(PMTDParameters); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#include "CondFormats/GeometryObjects/interface/PGeometricDet.h" | ||
#include "CondFormats/GeometryObjects/interface/PGeometricDetExtra.h" | ||
#include "CondFormats/GeometryObjects/interface/PGeometricTimingDet.h" | ||
#include "CondFormats/GeometryObjects/interface/PGeometricTimingDetExtra.h" | ||
#include "CondFormats/GeometryObjects/interface/PCaloGeometry.h" | ||
#include "CondFormats/GeometryObjects/interface/RecoIdealGeometry.h" | ||
#include "CondFormats/GeometryObjects/interface/CSCRecoDigiParameters.h" | ||
#include "CondFormats/GeometryObjects/interface/PTrackerParameters.h" | ||
#include "CondFormats/GeometryObjects/interface/PMTDParameters.h" | ||
#include "CondFormats/GeometryObjects/interface/HcalParameters.h" | ||
#include "CondFormats/GeometryObjects/interface/PHGCalParameters.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#ifndef DataFormats_FTLRecHit_FTLTrackingRecHit_h | ||
#define DataFormats_FTLRecHit_FTLTrackingRecHit_h | ||
|
||
/// Basic template class for a RecHit wrapping a Ref to an object | ||
|
||
#include <cassert> | ||
#include "DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h" | ||
|
||
template<typename ObjRef> | ||
class FTLTrackingRecHit : public RecHit2DLocalPos { | ||
public: | ||
typedef ObjRef ref_type; | ||
typedef typename ObjRef::value_type obj_type; | ||
|
||
FTLTrackingRecHit() {} | ||
FTLTrackingRecHit(DetId id, const ObjRef &objref, const LocalPoint &pos, const LocalError &err): | ||
RecHit2DLocalPos(id), | ||
objref_(objref), | ||
pos_(pos), err_(err) {} | ||
|
||
FTLTrackingRecHit<ObjRef> * clone() const override { return new FTLTrackingRecHit<ObjRef>(*this); } | ||
|
||
LocalPoint localPosition() const override { return pos_; } | ||
LocalError localPositionError() const override { return err_; } | ||
|
||
const ObjRef & objRef() const { return objref_; } | ||
|
||
float energy() const { return objref_->energy(); } | ||
|
||
float time() const { return objref_->time(); } | ||
float timeError() const { return objref_->timeError(); } | ||
|
||
bool sharesInput( const TrackingRecHit* other, SharedInputType what) const override { assert(false); } | ||
protected: | ||
ObjRef objref_; | ||
LocalPoint pos_; | ||
LocalError err_; | ||
}; | ||
|
||
|
||
// Instantiations and specializations for FTLRecHitRef and reco::CaloClusterPtr | ||
#include "DataFormats/FTLRecHit/interface/FTLRecHitCollections.h" | ||
#include "DataFormats/CaloRecHit/interface/CaloClusterFwd.h" | ||
typedef FTLTrackingRecHit<FTLRecHitRef> FTLTrackingRecHitFromHit; | ||
typedef std::vector<FTLTrackingRecHitFromHit> FTLTrackingRecHitCollection; | ||
|
||
template<> | ||
bool FTLTrackingRecHit<FTLRecHitRef>::sharesInput( const TrackingRecHit* other, SharedInputType what) const ; | ||
|
||
#endif |
Oops, something went wrong.