CMS 3D CMS Logo

CSCSimHitMatcher.h
Go to the documentation of this file.
1 #ifndef Validation_MuonHits_CSCSimHitMatcher_h
2 #define Validation_MuonHits_CSCSimHitMatcher_h
3 
13 
15  public:
16  // constructor
18 
19  // destructor
21 
22  // initialize the event
23  void init(const edm::Event& e, const edm::EventSetup& eventSetup);
24 
25  // do the matching
26  void match(const SimTrack& t, const SimVertex& v);
27 
28  // partitions' detIds with SimHits
29  std::set<unsigned int> detIds(int type = MuonHitHelper::CSC_ALL) const;
30 
31  // chamber detIds with SimHits
32  std::set<unsigned int> chamberIds(int type = MuonHitHelper::CSC_ALL) const;
33 
34  // CSC station detIds with SimHits
35  std::set<unsigned int> chamberIdsStation(int station) const;
36 
37  // was there a hit in a particular CSC station?
38  bool hitStation(int, int) const;
39 
40  // number of stations with hits in at least X layers
41  int nStations(int nl = 4) const;
42 
43  // #layers with hits
44  int nLayersWithHitsInChamber(unsigned int) const;
45 
46  // How many CSC chambers with minimum number of layer with simhits did this
47  // simtrack get?
48  int nCoincidenceChambers(int min_n_layers = 4) const;
49 
50  // calculated the fitted position in a given layer for CSC simhits in a
51  // chamber
52  GlobalPoint simHitPositionKeyLayer(unsigned int chamberid) const;
53 
54  // local bending in a CSC chamber
55  float LocalBendingInChamber(unsigned int detid) const;
56 
57  // calculate average strip number for a provided collection of simhits
58  float simHitsMeanStrip(const edm::PSimHitContainer& sim_hits) const;
59 
60  // calculate average wg number for a provided collection of simhits (for CSC)
61  float simHitsMeanWG(const edm::PSimHitContainer& sim_hits) const;
62 
63  void chamberIdsToString(const std::set<unsigned int>& set) const;
64 
65  // calculate the average position at the second station
67 
68  std::set<int> hitStripsInDetId(unsigned int, int margin_n_strips = 0) const;
69  std::set<int> hitWiregroupsInDetId(unsigned int, int margin_n_wg = 0) const;
70 
71  void camberIdsToString(const std::set<unsigned int>&) const;
72 
73  private:
75 
77 };
78 
79 #endif
type
Definition: HCALResponse.h:21
void match(const SimTrack &t, const SimVertex &v)
do the matching
std::set< unsigned int > detIds(int type=MuonHitHelper::CSC_ALL) const
float LocalBendingInChamber(unsigned int detid) const
float simHitsMeanStrip(const edm::PSimHitContainer &sim_hits) const
CSCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
int nStations(int nl=4) const
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
std::set< int > hitWiregroupsInDetId(unsigned int, int margin_n_wg=0) const
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
float simHitsMeanWG(const edm::PSimHitContainer &sim_hits) const
int nCoincidenceChambers(int min_n_layers=4) const
GlobalPoint simHitsMeanPositionStation(int n) const
std::set< unsigned int > chamberIds(int type=MuonHitHelper::CSC_ALL) const
GlobalPoint simHitPositionKeyLayer(unsigned int chamberid) const
edm::ESHandle< CSCGeometry > csc_geom_
int nLayersWithHitsInChamber(unsigned int) const
void camberIdsToString(const std::set< unsigned int > &) const
void chamberIdsToString(const std::set< unsigned int > &set) const
std::vector< PSimHit > PSimHitContainer
std::set< unsigned int > chamberIdsStation(int station) const
bool hitStation(int, int) const