Typedefs | |
| typedef enum CalDetParticleType::ECalDetParticleType | CalDetParticleType_t |
Enumerations | |
| enum | ECalDetParticleType { kUnknown = 0x00, kElectron = 0x01, kMuon = 0x02, kPion = 0x04, kKaon = 0x08, kProton = 0x10 } |
Functions | |
| const Char_t * | AsString (CalDetParticleType_t type) |
| std::string | AsString (Int_t) |
|
|
|
|
|
Definition at line 27 of file CalDetParticleType.h. 00027 {
00028 kUnknown = 0x00,
00029 kElectron = 0x01,
00030 kMuon = 0x02,
00031 kPion = 0x04,
00032 kKaon = 0x08,
00033 kProton = 0x10
00034 } CalDetParticleType_t;
|
|
|
Definition at line 6 of file CalDetParticleType.cxx. References AsString(), and s(). 00007 {
00008 bool found_one=false;
00009 std::string s;
00010 if(t&CalDetParticleType::kElectron){
00011 s+=CalDetParticleType::AsString(CalDetParticleType::kElectron);
00012 found_one=true;
00013 }
00014 if(t&CalDetParticleType::kMuon){
00015 if(found_one) s+=" or ";
00016 s+=CalDetParticleType::AsString(CalDetParticleType::kMuon);
00017 found_one=true;
00018 }
00019 if(t&CalDetParticleType::kPion){
00020 if(found_one) s+=" or ";
00021 s+=CalDetParticleType::AsString(CalDetParticleType::kPion);
00022 found_one=true;
00023 }
00024 if(t&CalDetParticleType::kKaon){
00025 if(found_one) s+=" or ";
00026 s+=CalDetParticleType::AsString(CalDetParticleType::kKaon);
00027 found_one=true;
00028 }
00029 if(t&CalDetParticleType::kProton){
00030 if(found_one) s+=" or ";
00031 s+=CalDetParticleType::AsString(CalDetParticleType::kProton);
00032 found_one=true;
00033 }
00034
00035 if(!found_one){
00036 s+=CalDetParticleType::AsString(CalDetParticleType::kUnknown);
00037 }
00038
00039 return s;
00040
00041 }
|
|
|
Definition at line 38 of file CalDetParticleType.h. References kElectron, kKaon, kMuon, kPion, kProton, and kUnknown. Referenced by ParticleFilterModule::Ana(), CandCalDetPIDHandle::AsString(), AsString(), NtpCalDetPID::Print(), and AlgCalDetPID::RunAlg(). 00038 {
00039 switch (type) {
00040 case kUnknown: return "Unknown"; break;
00041 case kElectron: return "Electron"; break;
00042 case kMuon: return "Muon"; break;
00043 case kPion: return "Pion"; break;
00044 case kKaon: return "Kaon"; break;
00045 case kProton: return "Proton"; break;
00046 default: return "?Unknown?"; break;
00047 }
00048 return "?Unknown?";
00049 }
|
1.3.9.1