/afs/hep.man.ac.uk/u/markowen/ATLAS/SFrameProof/2011EPS/topUtils/src/egammaPIDdefs.h

00001 #ifndef EGAMMAEVENT_EGAMMAPIDDEFS_H
00002 #define EGAMMAEVENT_EGAMMAPIDDEFS_H
00003 
00037 namespace egammaPID { 
00038   
00040   enum PID {
00042     IsEM                = 0,
00044     ElectronWeight,
00046     BgWeight,
00047     NeuralNet,
00048     Hmatrix,
00049     Hmatrix5,
00051     SofteIsEM,
00053     SofteElectronWeight,
00055     SofteBgWeight,
00056     SofteNeuralNet,
00058     IsolationLikelihood_jets,
00060     IsolationLikelihood_HQDelectrons,
00061     AdaBoost,
00063     PhotonWeight,
00065     BgPhotonWeight,
00067     FisherScore, 
00069     IsGoodOQ,
00071     LastEgammaPID
00072   };
00073 
00074   //const double EgPidUndefined = -999.;
00075   const double EgPidUndefined = 0.;
00076 
00079   enum BitDefElectron {
00081     ClusterEtaRange_Electron        =  0,
00082     
00084     ConversionMatch_Electron        =  1,
00085     
00087     ClusterHadronicLeakage_Electron =  2,
00089     ClusterMiddleEnergy_Electron    =  3, 
00091     ClusterMiddleEratio37_Electron  =  4,
00093     ClusterMiddleEratio33_Electron  =  5,
00095     ClusterMiddleWidth_Electron     =  6,
00096 
00098     ClusterStripsEratio_Electron    =  8,
00100     ClusterStripsDeltaEmax2_Electron =  9,
00102     ClusterStripsDeltaE_Electron    = 10,
00104     ClusterStripsWtot_Electron      = 11,
00106     ClusterStripsFracm_Electron     = 12,
00108     ClusterStripsWeta1c_Electron    = 13,
00109 
00111     ClusterStripsDEmaxs1_Electron   = 15,
00113     TrackBlayer_Electron            = 16,
00115     TrackPixel_Electron             = 17,
00117     TrackSi_Electron                = 18,
00119     TrackA0_Electron                = 19,
00121     TrackMatchEta_Electron          = 20,
00123     TrackMatchPhi_Electron          = 21,
00125     TrackMatchEoverP_Electron       = 22,
00127     TrackTRThits_Electron           = 24,
00129     TrackTRTratio_Electron          = 25,
00131     TrackTRTratio90_Electron        = 26,
00132 
00134     TrackA0Tight_Electron           = 27,
00136     TrackMatchEtaTight_Electron     = 28,
00137 
00139     Isolation_Electron              = 29,
00141     ClusterIsolation_Electron       = 30,
00143     TrackIsolation_Electron         = 31
00144   };
00145 
00148   enum BitDefPhoton {
00150     ClusterEtaRange_Photon        =  0,
00152     ClusterEtaRange_PhotonLoose   =  1,
00153 
00154     // selection for Loose photons
00156     ClusterHadronicLeakage_PhotonLoose =  2,
00158     ClusterMiddleEnergy_PhotonLoose    =  3, 
00160     ClusterMiddleEratio37_PhotonLoose  =  4,
00162     ClusterMiddleEratio33_PhotonLoose  =  5,
00164     ClusterMiddleWidth_PhotonLoose     =  6,
00165 
00166     // selection for tight photons
00168     ClusterHadronicLeakage_Photon =  10,
00170     ClusterMiddleEnergy_Photon    =  11, 
00172     ClusterMiddleEratio37_Photon  =  12,
00174     ClusterMiddleEratio33_Photon  =  13,
00176     ClusterMiddleWidth_Photon     =  14,
00177 
00179     ClusterStripsEratio_Photon    =  15,
00181     ClusterStripsDeltaEmax2_Photon =  16,
00183     ClusterStripsDeltaE_Photon    = 17,
00185     ClusterStripsWtot_Photon      = 18,
00187     ClusterStripsFracm_Photon     = 19,
00189     ClusterStripsWeta1c_Photon    = 20,
00191     ClusterStripsDEmaxs1_Photon  = 21,
00192 
00194     TrackMatchEoverP_Photon       = 22,
00195     
00197     AmbiguityResolution_Photon    = 23,
00198 
00200     Isolation_Photon              = 29,
00202     ClusterIsolation_Photon       = 30,
00204     TrackIsolation_Photon         = 31
00205   };
00206 
00207 
00208   //
00209   // cut definition for electrons
00210   //
00212   const unsigned int HADLEAKETA_ELECTRON = 
00213     0x1 << ClusterEtaRange_Electron        | 
00214     0x1 << ClusterHadronicLeakage_Electron;
00216   const unsigned int CALOSTRIPSOLD_ELECTRON =
00217     0x1 << ClusterStripsEratio_Electron     |
00218     0x1 << ClusterStripsDeltaEmax2_Electron |
00219     0x1 << ClusterStripsDeltaE_Electron     |
00220     0x1 << ClusterStripsWtot_Electron       |
00221     0x1 << ClusterStripsFracm_Electron      |
00222     0x1 << ClusterStripsWeta1c_Electron     ;
00224   const unsigned int CALOSTRIPS_ELECTRON =
00225     0x1 << ClusterStripsEratio_Electron     |
00226     0x1 << ClusterStripsDeltaEmax2_Electron |
00227     0x1 << ClusterStripsDeltaE_Electron     |
00228     0x1 << ClusterStripsWtot_Electron       |
00229     0x1 << ClusterStripsFracm_Electron      |
00230     0x1 << ClusterStripsWeta1c_Electron     |
00231     0x1 << ClusterStripsDEmaxs1_Electron    ;
00233   const unsigned int CALOMIDDLE_ELECTRON =    
00234     0x1 << ClusterMiddleEnergy_Electron     |
00235     0x1 << ClusterMiddleEratio37_Electron   |
00236     0x1 << ClusterMiddleWidth_Electron     ;
00238   const unsigned int CALORIMETRICISOLATION_ELECTRON = 
00239     0x1 << ClusterIsolation_Electron ;
00240 
00242   const unsigned int CALONOISOOLD_ELECTRON = HADLEAKETA_ELECTRON | CALOSTRIPSOLD_ELECTRON | CALOMIDDLE_ELECTRON ;
00244   const unsigned int CALOOLD_ELECTRON = CALONOISOOLD_ELECTRON | CALORIMETRICISOLATION_ELECTRON;
00246   const unsigned int CALO_ELECTRON = HADLEAKETA_ELECTRON | CALOSTRIPS_ELECTRON | CALOMIDDLE_ELECTRON ;
00247 
00249   const unsigned int TRACKINGNOBLAYER_ELECTRON =     
00250     0x1 << TrackPixel_Electron   |
00251     0x1 << TrackSi_Electron      |
00252     0x1 << TrackA0_Electron;
00254   const unsigned int TRACKING_ELECTRON = 
00255     TRACKINGNOBLAYER_ELECTRON |  
00256     0x1 << TrackBlayer_Electron;
00258   const unsigned int TRACKMATCHDETA_ELECTRON =
00259     0x1 << TrackMatchEta_Electron;
00261   const unsigned int TRACKMATCHNOEOVERP_ELECTRON =
00262     0x1 << TrackMatchEta_Electron      |
00263     0x1 << TrackMatchPhi_Electron;
00265   const unsigned int TRACKMATCH_ELECTRON =
00266     0x1 << TrackMatchEta_Electron      |
00267     0x1 << TrackMatchPhi_Electron      |
00268     0x1 << TrackMatchEoverP_Electron  ;
00270   const unsigned int TRACKMATCHTIGHT_ELECTRON =
00271     0x1 << TrackMatchEtaTight_Electron      |
00272     0x1 << TrackA0Tight_Electron;
00274   const unsigned int CONVMATCH_ELECTRON =
00275     0x1 << ConversionMatch_Electron;
00276 
00278   const unsigned int TRT_ELECTRON = 
00279     0x1 << TrackTRThits_Electron   |
00280     0x1 << TrackTRTratio_Electron;
00282   const unsigned int TRT90_ELECTRON = 
00283     0x1 << TrackTRThits_Electron   |
00284     0x1 << TrackTRTratio90_Electron;
00285 
00287   const unsigned int TRACKINGISOLATION_ELECTRON = 
00288     0x1 << TrackIsolation_Electron;
00290   const unsigned int ISOLATION_ELECTRON = 
00291     0x1 << Isolation_Electron ;
00293   const unsigned int CALOTRACKISOLATION_ELECTRON = 
00294     CALORIMETRICISOLATION_ELECTRON | TRACKINGISOLATION_ELECTRON;
00295 
00297   const unsigned int ALLNOTRT_ELECTRON = 
00298     TRACKING_ELECTRON | TRACKMATCH_ELECTRON | CALO_ELECTRON;
00300   const unsigned int ALLNOTRTOLD_ELECTRON = 
00301     TRACKING_ELECTRON | TRACKMATCH_ELECTRON | CALOOLD_ELECTRON;
00303   const unsigned int ALL_ELECTRON = 
00304     ALLNOTRT_ELECTRON | TRT_ELECTRON;
00306   const unsigned int ALLOLD_ELECTRON = 
00307     ALLNOTRTOLD_ELECTRON | TRT_ELECTRON;
00308 
00309   // old definitions of cuts as in rel<15.2.0
00310   const unsigned int ElectronLooseOLD = 
00311     CALOMIDDLE_ELECTRON | HADLEAKETA_ELECTRON;
00312   const unsigned int ElectronMediumOLD = 
00313     CALOOLD_ELECTRON | TRACKINGNOBLAYER_ELECTRON | TRACKMATCHDETA_ELECTRON;
00314   const unsigned int ElectronMediumNoIsoOLD = 
00315     CALONOISOOLD_ELECTRON | TRACKINGNOBLAYER_ELECTRON | TRACKMATCHDETA_ELECTRON;
00316   const unsigned int ElectronTightOLD = 
00317     ALLOLD_ELECTRON;
00318   const unsigned int ElectronTightTRTNoIsoOLD = 
00319     TRACKING_ELECTRON | TRACKMATCH_ELECTRON | CALONOISOOLD_ELECTRON | TRT90_ELECTRON ;
00320   const unsigned int ElectronTightNoIsolationOLD = ElectronTightTRTNoIsoOLD;
00321 
00322 
00323   // new definitions of cuts as in rel>=15.2.0
00324   // since 15.7.0 also Tight selection contains 
00325   //     TRACKMATCHTIGHT_ELECTRON 
00326   //     CONVMATCH_ELECTRON
00327   // since rel 16.0.0 definition of ElectronTight has changed
00328 
00330   const unsigned int ElectronLoose = 
00331     CALOMIDDLE_ELECTRON | HADLEAKETA_ELECTRON;
00333   const unsigned int ElectronMedium_WithoutTrackMatch = 
00334     CALO_ELECTRON | TRACKINGNOBLAYER_ELECTRON;
00336   const unsigned int ElectronMediumIso_WithoutTrackMatch = 
00337     ElectronMedium_WithoutTrackMatch | 
00338     ISOLATION_ELECTRON;
00340   const unsigned int ElectronMedium_WithTrackMatch = 
00341     CALO_ELECTRON | TRACKINGNOBLAYER_ELECTRON | TRACKMATCHDETA_ELECTRON;
00343   const unsigned int ElectronMediumIso_WithTrackMatch = 
00344     ElectronMedium_WithTrackMatch | 
00345     ISOLATION_ELECTRON;
00347   const unsigned int ElectronMedium = ElectronMedium_WithTrackMatch;
00349   const unsigned int ElectronMediumIso = ElectronMediumIso_WithTrackMatch;
00351   const unsigned int ElectronMediumNoIso = ElectronMedium;
00352            
00353 
00356   const unsigned int ElectronTight_WithoutTrackMatch = 
00357     CALO_ELECTRON | 
00358     TRACKING_ELECTRON | 
00359     0x1 << TrackMatchEoverP_Electron | 
00360     0x1 << TrackA0Tight_Electron |
00361     CONVMATCH_ELECTRON | 
00362     TRT_ELECTRON ;
00363 
00365   const unsigned int ElectronTight_WithoutTrackMatch_NoConvCut = 
00366     CALO_ELECTRON | 
00367     TRACKING_ELECTRON | 
00368     0x1 << TrackMatchEoverP_Electron | 
00369     0x1 << TrackA0Tight_Electron |
00370     TRT_ELECTRON ;
00371 
00373   const unsigned int ElectronTightIso_WithoutTrackMatch = 
00374     ElectronTight_WithoutTrackMatch | 
00375     ISOLATION_ELECTRON;
00376 
00377 
00379   const unsigned int ElectronTight_WithTrackMatch = 
00380     CALO_ELECTRON | TRACKING_ELECTRON | TRACKMATCH_ELECTRON | 
00381     TRACKMATCHTIGHT_ELECTRON | CONVMATCH_ELECTRON | TRT_ELECTRON ;
00382 
00384   const unsigned int ElectronTight_WithTrackMatch_NoConvCut = 
00385     CALO_ELECTRON | TRACKING_ELECTRON | TRACKMATCH_ELECTRON | 
00386     TRACKMATCHTIGHT_ELECTRON | TRT_ELECTRON ;
00387 
00389   const unsigned int ElectronTightIso_WithTrackMatch = 
00390     ElectronTight_WithTrackMatch | 
00391     ISOLATION_ELECTRON;
00392 
00394   const unsigned int ElectronTight = ElectronTight_WithTrackMatch;
00396   const unsigned int ElectronTight_NoConvCut = ElectronTight_WithTrackMatch_NoConvCut;
00398   const unsigned int ElectronTightIso = ElectronTightIso_WithTrackMatch;
00399 
00401   const unsigned int ElectronTightTRTNoIso = ElectronTight;
00403   const unsigned int ElectronTightNoIsolation = ElectronTight;
00404 
00407   const unsigned int ElectronTight_WithLooseEtaTrackMatch = 
00408     CALO_ELECTRON | 
00409     TRACKING_ELECTRON | 
00410     TRACKMATCHDETA_ELECTRON |
00411     0x1 << TrackMatchEoverP_Electron | 
00412     0x1 << TrackA0Tight_Electron |
00413     CONVMATCH_ELECTRON | 
00414     TRT_ELECTRON ;
00415 
00418   const unsigned int ElectronTight_WithTightEtaTrackMatch = 
00419     CALO_ELECTRON | 
00420     TRACKING_ELECTRON | 
00421     TRACKMATCHDETA_ELECTRON |
00422     TRACKMATCHTIGHT_ELECTRON |
00423     0x1 << TrackMatchEoverP_Electron | 
00424     CONVMATCH_ELECTRON | 
00425     TRT_ELECTRON ;
00426 
00428   const unsigned int ElectronTightIso_WithLooseEtaTrackMatch = 
00429     ElectronTight_WithLooseEtaTrackMatch |
00430     ISOLATION_ELECTRON;
00431 
00433   const unsigned int ElectronTightIso_WithTightEtaTrackMatch = 
00434     ElectronTight_WithTightEtaTrackMatch |
00435     ISOLATION_ELECTRON;
00436 
00438   const unsigned int ElectronTightRobust = ElectronTight_WithLooseEtaTrackMatch;
00439 
00440 
00441   //
00442   // for photon selection
00443   //
00445   const unsigned int HADLEAKETA_PHOTONLOOSE = 
00446     0x1 << ClusterEtaRange_PhotonLoose  | 
00447     0x1 << ClusterHadronicLeakage_PhotonLoose;
00449   const unsigned int HADLEAKETA_PHOTON = 
00450     0x1 << ClusterEtaRange_Photon        | 
00451     0x1 << ClusterHadronicLeakage_Photon;
00453   const unsigned int CALOMIDDLE_PHOTONLOOSE=    
00454     0x1 << ClusterMiddleEnergy_PhotonLoose     |
00455     0x1 << ClusterMiddleEratio37_PhotonLoose   |
00456     0x1 << ClusterMiddleEratio33_PhotonLoose   |
00457     0x1 << ClusterMiddleWidth_PhotonLoose     ;
00459   const unsigned int CALOMIDDLE_PHOTON =    
00460     0x1 << ClusterMiddleEnergy_Photon     |
00461     0x1 << ClusterMiddleEratio37_Photon   |
00462     0x1 << ClusterMiddleEratio33_Photon   |
00463     0x1 << ClusterMiddleWidth_Photon     ;
00465   const unsigned int CALOSTRIPSOLD_PHOTON =
00466     0x1 << ClusterStripsEratio_Photon     |
00467     0x1 << ClusterStripsDeltaEmax2_Photon |
00468     0x1 << ClusterStripsDeltaE_Photon     |
00469     0x1 << ClusterStripsWtot_Photon       |
00470     0x1 << ClusterStripsFracm_Photon      |
00471     0x1 << ClusterStripsWeta1c_Photon     ;
00473   const unsigned int CALOSTRIPS_PHOTON =
00474     0x1 << ClusterStripsEratio_Photon     |
00475     0x1 << ClusterStripsDeltaEmax2_Photon |
00476     0x1 << ClusterStripsDeltaE_Photon     |
00477     0x1 << ClusterStripsWtot_Photon       |
00478     0x1 << ClusterStripsFracm_Photon      |
00479     0x1 << ClusterStripsWeta1c_Photon     |
00480     0x1 << ClusterStripsDEmaxs1_Photon    ;
00481 
00483   const unsigned int CALORIMETRICISOLATION_PHOTON = 
00484     0x1 << ClusterIsolation_Photon;
00486   const unsigned int CALONOISOOLD_PHOTON = 
00487     HADLEAKETA_PHOTON | CALOSTRIPSOLD_PHOTON | CALOMIDDLE_PHOTON ;
00489   const unsigned int CALO_PHOTON = 
00490     HADLEAKETA_PHOTON | CALOSTRIPS_PHOTON | CALOMIDDLE_PHOTON;
00491 
00493   const unsigned int TRACKINGISOLATION_PHOTON = 
00494     0x1 << TrackIsolation_Photon;
00496   const unsigned int ISOLATION_PHOTON = 
00497     0x1 << Isolation_Photon ;
00499   const unsigned int CALOTRACKISOLATION_PHOTON = 
00500     CALORIMETRICISOLATION_PHOTON | TRACKINGISOLATION_PHOTON;
00501 
00503   const unsigned int TRACKMATCH_PHOTON =
00504     0x1 << TrackMatchEoverP_Photon  ;
00505 
00507   const unsigned int AMBIGUITYRESOLVE_PHOTON =
00508     0x1 << AmbiguityResolution_Photon;
00509 
00511   const unsigned int PhotonLooseAR = 
00512     CALOMIDDLE_PHOTONLOOSE | HADLEAKETA_PHOTONLOOSE | AMBIGUITYRESOLVE_PHOTON;
00514   const unsigned int PhotonTightAR = CALO_PHOTON | TRACKMATCH_PHOTON | AMBIGUITYRESOLVE_PHOTON;
00516   const unsigned int PhotonTightARIso = PhotonTightAR | ISOLATION_PHOTON;
00518   const unsigned int PhotonLoose = 
00519     CALOMIDDLE_PHOTONLOOSE | HADLEAKETA_PHOTONLOOSE;
00521   const unsigned int PhotonTight = CALO_PHOTON | TRACKMATCH_PHOTON ;
00523   const unsigned int PhotonTightIso = PhotonTight | ISOLATION_PHOTON;
00525   const unsigned int PhotonTightOLD = 
00526     CALONOISOOLD_PHOTON | CALORIMETRICISOLATION_PHOTON;
00527 
00528 
00529 
00530 
00532   /*
00533     --variables:
00534 
00535     ["FIRST_ENG_DENS"] =1;
00536     ["ENG_FRAC_MAX"]   =2;
00537     ["LONGITUDINAL"]   =4;
00538     ["SECOND_LAMBDA"]  =8;
00539     ["LATERAL"]        =16;
00540     ["SECOND_R"]       =32;
00541     ["CENTER_LAMBDA"]  =64;
00542     
00543     --Flavors
00544     Tight: All avriables except First_ENG_DENS
00545     Loose: SECOND_LAMBDA, SECOND_R, CENTER_LAMBDA 
00546   */
00547   
00548   const unsigned int frwdElectronTight = 126;
00549   const unsigned int frwdElectronLoose = 104;
00550 
00551   //
00552   //
00553   //    BEWARE 
00554   //    OBSOLETE only kept 
00555   //    not to crash users who have not changed their code accordingly)
00556   //    see egammaParameters for info on the variable definitions
00557   //
00558   //
00559   
00560 
00562   enum BitDef {
00563     // Cluster based egamma
00565     ClusterEtaRange        =  0,
00567     ClusterHadronicLeakage =  1,
00569     ClusterMiddleEnergy    =  4, 
00571     ClusterMiddleEratio37  =  5,
00573     ClusterMiddleEratio33  =  6,
00575     ClusterMiddleWidth     =  7,
00577     ClusterStripsEratio    =  8,
00579     ClusterStripsDeltaEmax2=  9,
00581     ClusterStripsDeltaE    = 10,
00583     ClusterStripsWtot      = 11,
00585     ClusterStripsFracm     = 12,
00587     ClusterStripsWeta1c    = 13,
00589     ClusterIsolation       = 14,
00591     ClusterStripsDEmaxs1  = 15,
00592     //Track based egamma
00594     TrackBlayer            = 16,
00596     TrackPixel             = 17,
00598     TrackSi                = 18,
00600     TrackA0                = 19,
00602     TrackMatchEta          = 20,
00604     TrackMatchPhi          = 21,
00606     TrackMatchEoverP       = 22,
00608     TrackTRThits           = 24,
00610     TrackTRTratio          = 25,
00612     TrackTRTratio90        = 26,
00614     TrackIsolation       = 27
00615   };
00616   //
00617   // old definition of cut bits, kept only not break codes 
00618   // It has to be used on "old" AODs produced with "rel 14"
00619   //
00621   const unsigned int HADLEAKETA = 
00622     0x1 << ClusterEtaRange        | 
00623     0x1 << ClusterHadronicLeakage;
00625   const unsigned int CALOSTRIPSOLD=
00626     0x1 << ClusterStripsEratio     |
00627     0x1 << ClusterStripsDeltaEmax2 |
00628     0x1 << ClusterStripsDeltaE     |
00629     0x1 << ClusterStripsWtot       |
00630     0x1 << ClusterStripsFracm      |
00631     0x1 << ClusterStripsWeta1c     ;
00633   const unsigned int CALOSTRIPS=
00634     0x1 << ClusterStripsEratio     |
00635     0x1 << ClusterStripsDeltaEmax2 |
00636     0x1 << ClusterStripsDeltaE     |
00637     0x1 << ClusterStripsWtot       |
00638     0x1 << ClusterStripsFracm      |
00639     0x1 << ClusterStripsWeta1c     |
00640     0x1 << ClusterStripsDEmaxs1    ;
00642   const unsigned int CALOMIDDLE=    
00643     0x1 << ClusterMiddleEnergy     |
00644     0x1 << ClusterMiddleEratio37   |
00645     0x1 << ClusterMiddleEratio33   |
00646     0x1 << ClusterMiddleWidth     ;
00648   const unsigned int CALOISO = 0x1 << ClusterIsolation ;
00650   const unsigned int CALONOISOOLD = HADLEAKETA | CALOSTRIPSOLD | CALOMIDDLE ;
00652   const unsigned int CALONOISO = HADLEAKETA | CALOSTRIPS | CALOMIDDLE ;
00654   const unsigned int CALOOLD = CALONOISOOLD | CALOISO ;
00656   const unsigned int CALO = CALONOISO | CALOISO ;
00657 
00659   const unsigned int TRACKINGNOBLAYER =     
00660     0x1 << TrackPixel   |
00661     0x1 << TrackSi      |
00662     0x1 << TrackA0     ;
00663   const unsigned int TRACKING = TRACKINGNOBLAYER |  0x1 << TrackBlayer;
00664   const unsigned int TRACKMATCHDETA =
00665     0x1 << TrackMatchEta;
00666   const unsigned int TRACKMATCH =
00667     0x1 << TrackMatchEta      |
00668     0x1 << TrackMatchPhi      |
00669     0x1 << TrackMatchEoverP  ;
00670   const unsigned int TRACKMATCHNOEOVERP =
00671     0x1 << TrackMatchEta      |
00672     0x1 << TrackMatchPhi     ;
00673   const unsigned int TRT = 
00674     0x1 << TrackTRThits   |
00675     0x1 << TrackTRTratio ;
00676   const unsigned int TRT90 = 
00677     0x1 << TrackTRThits   |
00678     0x1 << TrackTRTratio90 ;
00680   const unsigned int TRACKISO = 0x1 << TrackIsolation;
00682   const unsigned int ALLNOTRT= TRACKING | TRACKMATCH | CALO;
00684   const unsigned int ALLNOTRTOLD= TRACKING | TRACKMATCH | CALOOLD;
00686   //const unsigned int ALL= ALLNOTRT | TRT;
00687   const unsigned int ALL= 0xFFFFFFFF;
00689   const unsigned int ALLOLD= ALLNOTRTOLD | TRT;
00690 
00691   // old definitions of cuts as for AODS in rel<15.2.0
00692   const unsigned int ElectronLooseOLDRel = CALOMIDDLE | HADLEAKETA;
00693   const unsigned int ElectronMediumOLDRel = CALOOLD | TRACKINGNOBLAYER | TRACKMATCHDETA;
00694   const unsigned int ElectronMediumNoIsoOLDRel = CALONOISOOLD | TRACKINGNOBLAYER | TRACKMATCHDETA ;
00695   const unsigned int ElectronTightOLDRel = ALLOLD;
00696   const unsigned int ElectronTightTRTNoIsoOLDRel = TRACKING | TRACKMATCH | CALONOISOOLD | TRT90 ;
00697   const unsigned int ElectronTightNoIsolationOLDRel = ElectronTightTRTNoIsoOLDRel;
00698 
00699   const unsigned int PhotonTightOLDRel = CALOOLD;
00700 
00701   //
00702   // for object quality flags
00703   //
00704 
00705   enum BitDefOQ {
00707     DeadHVPS = 0,
00709     DeadHVS1S2S3Core = 1,
00711     DeadHVS1S2S3Edge = 2,
00712 
00714     NonNominalHVPS = 3,
00716     NonNominalHVS1S2S3 = 4,
00717 
00718 
00720     MissingFEBCellCore = 5,
00722     MissingFEBCellEdgePS = 6,
00724     MissingFEBCellEdgeS1 = 7,
00726     MissingFEBCellEdgeS2 = 8,
00728     MissingFEBCellEdgeS3 = 9,
00729 
00730 
00732     MaskedCellCore = 10,
00734     MaskedCellEdgePS = 11,
00736     MaskedCellEdgeS1 = 12,
00738     MaskedCellEdgeS2 = 13,
00740     MaskedCellEdgeS3 = 14,
00741 
00743     BadS1Core = 15,
00744 
00745 
00747     SporadicNoiseLowQCore = 16,
00749     SporadicNoiseLowQEdge = 17,
00750 
00752     HighQCore = 18,
00754     HighQEdge = 19,
00755 
00757     AffectedCellCore = 20,
00759     AffectedCellEdgePS = 21,
00761     AffectedCellEdgeS1 = 22,
00763     AffectedCellEdgeS2 = 23,
00765     AffectedCellEdgeS3 = 24,
00766 
00768     HECHighQ = 25,
00769 
00771     OutTime =26
00772   };
00773 
00776   const unsigned int BADCLUSELECTRON = 
00777     0x1 << MaskedCellCore |
00778     0x1 << MissingFEBCellCore |
00779     0x1 << MissingFEBCellEdgeS1 |
00780     0x1 << MissingFEBCellEdgeS2 |
00781     0x1 << DeadHVS1S2S3Core | 
00782     0x1 << DeadHVS1S2S3Edge ; 
00783   
00784  const unsigned int BADCLUSPHOTON = 
00785     0x1 << MaskedCellCore |
00786     0x1 << MissingFEBCellCore |
00787     0x1 << MissingFEBCellEdgeS1 |
00788     0x1 << MissingFEBCellEdgeS2 |
00789     0x1 << DeadHVS1S2S3Core | 
00790     0x1 << DeadHVS1S2S3Edge |
00791     0x1 << BadS1Core; 
00792   
00793 
00794 
00795   const unsigned int ALLOQ= 0xFFFFFFFF;
00796 
00797 
00798 }
00799 #endif // EGAMMAREC_EGAMMAPIDDEFS_H
00800 

Generated on Thu Jun 30 11:40:04 2011 for manTreeSFrame by  doxygen 1.4.7