Changeset 764 for trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
- Timestamp:
- 04/23/01 15:12:45 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r749 r764 38 38 ClassImp(MCerPhotEvt) 39 39 40 // -------------------------------------------------------------------------- 41 // 42 // Creates a MCerPhotPix object for each pixel in the event 43 // 40 44 MCerPhotEvt::MCerPhotEvt(const char *name, const char *title) : fNumPixels(0) 41 45 { 42 // the default constructor 43 44 46 45 47 *fName = name ? name : "MCerPhotEvt"; 46 48 *fTitle = name ? name : "(Number of Photon)-Event Information"; … … 54 56 } 55 57 58 // -------------------------------------------------------------------------- 59 // 60 // This is not yet implemented like it should. 61 // 56 62 void MCerPhotEvt::Draw(Option_t* option) 57 63 { … … 68 74 } 69 75 76 // -------------------------------------------------------------------------- 77 // 78 // add a new pixel to the list and increase the number 79 // of valid pixels in the list by one 80 // 70 81 void MCerPhotEvt::AddPixel(Int_t id, Float_t nph, Float_t err) 71 82 { 72 //73 // add a new pixel to the list and increase the number74 // of valid pixels in the list by one75 //76 77 83 // TClonesArray -> 'operator new with placement' should be used 78 84 new ((*fPixels)[fNumPixels++]) MCerPhotPix( id, nph, err); 79 85 } 80 86 87 // -------------------------------------------------------------------------- 88 // 89 // reset counter and delete netries in list. 90 // 81 91 void MCerPhotEvt::Clear(Option_t *) 82 92 { 83 //84 // reset counter and delete netries in list.85 //86 93 fNumPixels = 0 ; 87 94 fPixels->Clear() ; 88 95 } 89 96 97 // -------------------------------------------------------------------------- 98 // 99 // Dump the cerenkov photon event to *fLog 100 // 90 101 void MCerPhotEvt::Print(Option_t *) 91 102 { … … 101 112 } 102 113 114 // -------------------------------------------------------------------------- 115 // 116 // Checks if in the pixel list is an entry with pixel id 117 // 103 118 Bool_t MCerPhotEvt::IsPixelExisting(Int_t id) 104 119 { 105 //106 // Checks if in the pixel list is an entry with pixel id107 //108 120 const Int_t entries = fPixels->GetEntries(); 109 121 … … 117 129 } 118 130 131 // -------------------------------------------------------------------------- 132 // 133 // Checks if in the pixel list is an entry with pixel id 134 // 119 135 Bool_t MCerPhotEvt::IsPixelUsed(Int_t id) 120 136 { 121 //122 // Checks if in the pixel list is an entry with pixel id123 //124 137 const Int_t entries = fPixels->GetEntries(); 125 138 … … 135 148 } 136 149 150 // -------------------------------------------------------------------------- 151 // 152 // Checks if in the pixel list is an entry with pixel id 153 // 137 154 Bool_t MCerPhotEvt::IsPixelCore(Int_t id) 138 155 { 139 //140 // Checks if in the pixel list is an entry with pixel id141 //142 156 const Int_t entries = fPixels->GetEntries(); 143 157 … … 153 167 } 154 168 169 // -------------------------------------------------------------------------- 170 // 171 // get the minimum number of photons of all valid pixels in the list 172 // 155 173 Float_t MCerPhotEvt::GetNumPhotonsMin() 156 174 { 157 //158 // get the minimum number of photons of all valid pixels in the list159 //160 175 if (fNumPixels <= 0) 161 176 return -5. ; … … 175 190 } 176 191 192 // -------------------------------------------------------------------------- 193 // 194 // get the maximum number of photons of all valid pixels in the list 195 // 177 196 Float_t MCerPhotEvt::GetNumPhotonsMax() 178 197 { 179 //180 // get the maximum number of photons of all valid pixels in the list181 //182 198 if (fNumPixels <= 0) 183 199 return 50.;
Note:
See TracChangeset
for help on using the changeset viewer.