CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/SimDataFormats/CaloHit/interface/CastorShowerEvent.h

Go to the documentation of this file.
00001 #ifndef CastorShowerEvent_h
00002 #define CastorShowerEvent_h
00003 
00004 #include "TROOT.h"
00005 #include "Rtypes.h"
00006 #include "TObject.h"
00007 #include "TClass.h"
00008 #include "TDictionary.h"
00009 
00010 #include "DataFormats/Math/interface/Point3D.h"
00011 #include <vector>
00012 #include <string>
00013 
00014   // class CastorShowerEvent {
00015   class CastorShowerEvent : public TObject {
00016   
00017   public:
00018   
00020     typedef math::XYZPoint Point;
00021 
00022     CastorShowerEvent();
00023     ~CastorShowerEvent();
00024     
00025     void Clear();
00026     
00027 //  private:
00028   
00029     // Data members
00030     unsigned int              nhit;
00031     std::vector<unsigned int> detID;
00032     std::vector<Point>        hitPosition;
00033     std::vector<float>        nphotons;
00034     std::vector<float>        time;
00035     float                     primaryEnergy;
00036     float                     primEta , primPhi;
00037     float                     primX , primY , primZ;
00038     
00039     // Setters
00040     void setNhit(unsigned int i)   { nhit = i; };
00041     void setDetID(unsigned int id) { detID.push_back(id); };
00042     void setHitPosition(Point p)   { hitPosition.push_back(p); };
00043     void setNphotons(float np)     { nphotons.push_back(np); };
00044     void setTime(float t)          { time.push_back(t); };
00045     void setPrimE(float e)         { primaryEnergy = e; };
00046     void setPrimEta(float eta)     { primEta = eta; };
00047     void setPrimPhi(float phi)     { primPhi = phi; };
00048     void setPrimX(float x)         { primX = x; };
00049     void setPrimY(float y)         { primY = y; };
00050     void setPrimZ(float z)         { primZ = z; };
00051     
00052     // Accessors
00053     unsigned int getNhit()       { return nhit; };
00054     unsigned int getDetID(int i) { return detID[i]; };
00055     Point getHitPosition(int i)  { return hitPosition[i]; };
00056     float getNphotons(int i)     { return nphotons[i]; };
00057     float getTime(int i)         { return time[i]; };
00058     float getPrimE()             { return primaryEnergy; };
00059     float getPrimEta()           { return primEta; };
00060     float getPrimPhi()           { return primPhi; };
00061     float getPrimX()             { return primX; };
00062     float getPrimY()             { return primY; };
00063     float getPrimZ()             { return primZ; };
00064     
00065     ClassDef(CastorShowerEvent,1)
00066     
00067   };
00068 
00069 #endif