test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TBPositionCalc.h
Go to the documentation of this file.
1 #ifndef TBPositionCalc_h
2 #define TBPositionCalc_h
3 
4 #include "CLHEP/Vector/ThreeVector.h"
5 #include "CLHEP/Vector/Rotation.h"
6 #include "Rtypes.h"
7 
8 #include <fstream>
9 #include <vector>
10 #include <cmath>
11 #include <map>
12 
21 
23 #include "CLHEP/Units/GlobalSystemOfUnits.h"
24 
25 
27 {
28  public:
29 
30  TBPositionCalc(const std::map<std::string,double>& providedParameters, const std::string& mapFile, const CaloSubdetectorGeometry *passedGeometry);
31 
33 
35 
36  CLHEP::Hep3Vector CalculateTBPos(const std::vector<EBDetId>& passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap);
37 
38  CLHEP::Hep3Vector CalculateCMSPos(const std::vector<EBDetId>& passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap);
39 
40  void computeRotation(int myCrystal, CLHEP::HepRotation & CMStoTB );
41 
42 
43  private:
45  Double32_t param_X0_;
46  Double32_t param_T0_;
47  Double32_t param_W0_;
48 
50 
52 };
53 
54 #endif
55 
56 
void computeRotation(int myCrystal, CLHEP::HepRotation &CMStoTB)
Double32_t param_X0_
CLHEP::Hep3Vector CalculateTBPos(const std::vector< EBDetId > &passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap)
Double32_t param_W0_
const CaloSubdetectorGeometry * theGeometry_
EcalTBCrystalMap * theTestMap
CLHEP::Hep3Vector CalculateCMSPos(const std::vector< EBDetId > &passedDetIds, int myCrystal, EcalRecHitCollection const *passedRecHitsMap)
Double32_t param_T0_