CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OMTFinput.h
Go to the documentation of this file.
1 #ifndef OMTF_OMTFinput_H
2 #define OMTF_OMTFinput_H
3 
4 #include <vector>
5 #include <ostream>
6 #include <bitset>
7 
8 class XMLConfigReader;
9 
10 class OMTFinput{
11 
12  public:
13 
14  typedef std::vector<int> vector1D;
15  typedef std::vector<vector1D> vector2D;
16 
17  OMTFinput();
18 
21  bool addLayerHit(unsigned int iLayer,
22  unsigned int iInput,
23  int iPhi, int iEta);
24 
26  void clear();
27 
29  void readData(XMLConfigReader *aReader,
30  unsigned int iEvent=0,
31  unsigned int iProcessor=0);
32 
34  void shiftMyPhi(int phiShift);
35 
38  void mergeData(OMTFinput *aInput);
39 
40  const OMTFinput::vector1D & getLayerData(unsigned int iLayer, bool giveEta=false) const;
41 
42  std::bitset<128> getRefHits(unsigned int iProcessor) const;
43 
44  friend std::ostream & operator << (std::ostream &out, const OMTFinput & aInput);
45 
46  private:
47 
52 
57 
60 
61 };
62 
63 
64 #endif
void clear()
Reset vectors with data.
Definition: OMTFinput.cc:95
vector2D measurementsEta
Definition: OMTFinput.h:56
void shiftMyPhi(int phiShift)
Apply shift to all data.
Definition: OMTFinput.cc:105
friend std::ostream & operator<<(std::ostream &out, const OMTFinput &aInput)
Definition: OMTFinput.cc:127
std::vector< int > vector1D
Definition: OMTFinput.h:14
std::vector< vector1D > vector2D
Definition: OMTFinput.h:15
const OMTFinput::vector1D & getLayerData(unsigned int iLayer, bool giveEta=false) const
Definition: OMTFinput.cc:18
vector1D refHitsEta
RefHitsEta.
Definition: OMTFinput.h:59
int iEvent
Definition: GenABIO.cc:230
std::bitset< 128 > getRefHits(unsigned int iProcessor) const
Definition: OMTFinput.cc:26
void mergeData(OMTFinput *aInput)
Definition: OMTFinput.cc:75
bool addLayerHit(unsigned int iLayer, unsigned int iInput, int iPhi, int iEta)
Definition: OMTFinput.cc:45
void readData(XMLConfigReader *aReader, unsigned int iEvent=0, unsigned int iProcessor=0)
Read data from a XML file.
Definition: OMTFinput.cc:65
vector2D measurementsPhi
Definition: OMTFinput.h:51