--- DarthVader/AnticounterLevel2/src/AcLevel2.cpp 2007/02/12 08:17:21 1.6 +++ DarthVader/AnticounterLevel2/src/AcLevel2.cpp 2007/03/15 12:56:27 1.7 @@ -1,12 +1,22 @@ +/** + * \file src/AcLevel2.cpp + * \author Petter Hofverberg +**/ #include #include ClassImp(AcLevel2); +/** + * AcLevel2 constructor +**/ AcLevel2::AcLevel2() { this->Clear(); } +/** + * Clear variables +**/ void AcLevel2::Clear(){ status[0]=0; hitmap[0]=0; @@ -19,6 +29,9 @@ unpackError=0; } +/** + * checks if detector what is hit +**/ bool AcLevel2::IsHit(TString what){ char* cabl[] = {"CARD4","CAT2","CAS1","ND","CARD2","CAT4","CAS4","ND", @@ -37,7 +50,9 @@ return answer; } - +/** + * is CAS hit? +**/ bool AcLevel2::CAShit(TString card) { if(card.Contains("main") || card.CompareTo("")==0 ) @@ -57,7 +72,9 @@ return false; } - +/** + * is CAT hit? +**/ bool AcLevel2::CAThit(TString card) { if(card.Contains("main") || card.CompareTo("")==0 ) @@ -77,7 +94,9 @@ return false; } - +/** + * is CARD hit? +**/ bool AcLevel2::CARDhit(TString card) { if(card.Contains("main") || card.CompareTo("")==0 ) @@ -97,7 +116,9 @@ return false; } - +/** + * is AC hit? +**/ bool AcLevel2::AChit(TString card) { if(this->CAThit(card) || this->CARDhit(card) || this->CAShit(card)) return true;