Changeset 7125 for trunk/MagicSoft/Mars/mhflux
- Timestamp:
- 06/02/05 15:24:33 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhflux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHThetaSq.cc
r7091 r7125 158 158 return static_cast<const MParameterD*>(fParameter)->GetVal(); 159 159 } 160 161 // -------------------------------------------------------------------------- 162 // 163 // You can use this function if you want to use a MHMatrix instead of 164 // MMcEvt. This function adds all necessary columns to the 165 // given matrix. Afterward you should fill the matrix with the corresponding 166 // data (eg from a file by using MHMatrix::Fill). If you now loop 167 // through the matrix (eg using MMatrixLoop) MHHadronness::Fill 168 // will take the values from the matrix instead of the containers. 169 // 170 // It takes fSkipHist* into account! 171 // 172 void MHThetaSq::InitMapping(MHMatrix *mat, Int_t type) 173 { 174 if (fMatrix) 175 return; 176 177 fMatrix = mat; 178 179 fMap[0] = -1; 180 fMap[1] = -1; 181 fMap[2] = -1; 182 fMap[3] = -1; 183 fMap[4] = -1; 184 185 if (!fSkipHistEnergy) 186 if (type==0) 187 { 188 fMap[1] = fMatrix->AddColumn("MEnergyEst.fVal"); 189 fMap[2] = -1; 190 } 191 else 192 { 193 fMap[1] = -1; 194 fMap[2] = fMatrix->AddColumn("MHillas.fSize"); 195 } 196 197 if (!fSkipHistTheta) 198 fMap[3] = fMatrix->AddColumn("MPointingPos.fZd"); 199 200 // if (!fSkipHistTime) 201 // fMap[4] = fMatrix->AddColumn("MTime.GetAxisTime"); 202 } -
trunk/MagicSoft/Mars/mhflux/MHThetaSq.h
r7064 r7125 21 21 22 22 Bool_t SetupFill(const MParList *pl); 23 void InitMapping(MHMatrix *mat, Int_t type=0); 23 24 24 25 public:
Note:
See TracChangeset
for help on using the changeset viewer.